TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #721 · 26.12

Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev

Hashtags

Резултати

Намерени 18 подобни публикации

Търсене: #vapodcast

当前筛选 #vapodcast清除筛选
Venezuelanalysis

@venanalysis · Post #1569 · 17.05.2024 г., 22:26

🎙We're hosting a first live Q&A on spaces in a couple of days! It’s set for next Monday at 6 ET. Set your reminders and reply here with your questions 👉🏽https://x.com/venanalysis/status/1791586519398171078?s=46&t=XS9Dg5c2R2mjKeBd5qmeTQ #VAPodcast

Hashtags

Venezuelanalysis

@venanalysis · Post #1562 · 14.05.2024 г., 21:44

Join us for our upcoming Q&A Space on X! An open forum for discussing VA Podcast Episode 24, 'Building Socialism to Resist Sanctions.' It's happening next Thursday, May 16th. 🔔 Click here to set a reminder 👉🏽https://twitter.com/i/spaces/1YqKDgnodVNxV #VAPodcast#Sanctions

Venezuelanalysis

@venanalysis · Post #1644 · 10.07.2024 г., 19:26

🎙 A special episode of the Venezuelanalysis Podcast is now available! VA members José Luis Granados Ceja and Andreína Chávez Alava discuss soft power, cultural imperialism and corporate media propaganda ahead of Venezuela's presidential elections. Click here to listen to the full episode 👉🏼shorturl.at/FkBrG #presidentialelections2024#vapodcast

Venezuelanalysis

@venanalysis · Post #1747 · 18.09.2024 г., 19:38

🎙 Episode 26 of the Venezuelanalysis Podcast is here! Host José Luis Granados Ceja is joined by editor Ricardo Vaz to break down the electoral aftermath in Venezuela, covering renewed U.S. sanctions, Edmundo González's exile, aircraft piracy, and more. After a brief hiatus, we’re back with a new format—featuring VA staff more prominently and, for the first time, available on video! Click here to listen and watch the full episode 👉🏼https://shorturl.at/ivof8 #vapodcast#presidentialelections2024#sanctions

Venezuelanalysis

@venanalysis · Post #1523 · 03.04.2024 г., 23:02

🎙New podcast episode just dropped! In our latest podcast episode, we tackle cultural production, its importance and challenges in the context of the Bolivarian Process. Host José Luis Granados Ceja is joined by activist and culture worker Luigino Bracci Roa and by fellow VA member Andreína Chávez Alava to discuss everything from state policies to imperialist propaganda. Click here to listen to the full episode 👉🏼https://shorturl.at/hrCHN #culture#vapodcast

Venezuelanalysis

@venanalysis · Post #2322 · 31.03.2026 г., 01:21

🔈PODCAST | Venezuela After January 3: A New Stage of US Imperialism The VA Podcast is back. In our Season 3 premiere, we tackle the fallout of the January 3rd military escalation against Caracas, an event that marks a volatile new chapter in the long history of US intervention in the region. Join Venezuelanalysis Chief Editor Ricardo Vaz, Associate Editor Lucas Koerner, and VA Founder Greg Wilpert as they break down the geopolitical shift from "maximum pressure" to direct confrontation. This episode goes beyond the headlines to analyze the underlying causes and the global consequences of Washington’s renewed focus on "its" hemisphere. Follow the link for early access to this episode: https://www.patreon.com/venanalysis #USVenezuelaRelations#USmilitaryattack#VAPodcast

Venezuelanalysis

@venanalysis · Post #2320 · 29.03.2026 г., 00:25

🎙🔊Season 3 of the Venezuelanalysis Podcast is coming soon!!! The new season takes stock of a shifting political moment marked by escalating US aggression and its global impact, alongside major developments inside Venezuela: from the January 3 US military strikes to international solidarity efforts, as well as broader economic reforms and debates over sovereignty and national control of resources. Each month, we will bring independent, on-the-ground reporting and analysis of Venezuela and the Bolivarian Process, alongside coverage of grassroots movements. 🎧 Subscribe to the Venezuelanalysis Podcast on YouTube, Spotify, Apple Podcasts, or your preferred platform. #podcast#VAPodcast#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #1587 · 29.05.2024 г., 22:11

🎙 Episode 25 of the Venezuelanalysis Podcast is now available! Venezuela’s revolutionary leader Hugo Chávez defined the commune as the “unit cell” for the construction of socialism. But the road ahead is full of challenges, even more so in a context of imperialist sanctions. In this episode, host José Luis Granados Ceja is joined by fellow VA member Cira Pascual Marquina and by Communard Union communications coordinator Juan Lenzo to discuss the present struggle to strengthen the communal economy and uphold the socialist horizon. Click here to listen to the full episode 👉🏼https://shorturl.at/gf26s #communardunion#communes#vapodcast

Venezuelanalysis

@venanalysis · Post #1837 · 19.12.2024 г., 21:26

🎙 Last VA Podcast of 2024 is live! In our yearly review, the Venezuelanaysis editorial team examines Venezuela's economic challenges, grassroots efforts, and the aftermath of the 2024 presidential election. We also discuss what 2025 might bring for the country and the Bolivarian Process. Watch now 👉🏼https://youtu.be/p3gzIhkykuc #VAPodcast#2024Recap

Venezuelanalysis

@venanalysis · Post #1782 · 23.10.2024 г., 13:28

A crowdfunded mercenary plot? 🤔 Venezuelanalysis members José Luis Granados Ceja and Ricardo Vaz have a little fun at the expense of a crowdfunding initiative for a coup led by mercenary poster boy Erik Prince. Watch the full podcast episode here 👉🏼youtu.be/hD4Ds9Xc1ho #vapodcast#sanctions#imperialism#citgo

Venezuelanalysis

@venanalysis · Post #2324 · 01.04.2026 г., 22:38

🎙🔊 Episode 43 of the VA Podcast is live! The Venezuelanalysis Podcast is back. In our new season premiere, we tackle the fallout of the January 3rd military escalation against Caracas, an event that marks a volatile new chapter in the long history of US intervention in the region. Join Venezuelanalysis Lead Editor Ricardo Vaz, Associate Editor Lucas Koerner, and VA Founder Greg Wilpert as they break down the geopolitical shift from "maximum pressure" to direct confrontation. This episode goes beyond the headlines to analyze the underlying causes and the global consequences of Washington’s renewed focus on "its" hemisphere. Watch the full episode here 👉https://youtu.be/NKuCNIxn2MA #Venezuela#USImperialism#usvenezuelarelations#USmilitaryattack#VAPodcast

Venezuelanalysis

@venanalysis · Post #2374 · 19.05.2026 г., 00:28

🔈PODCAST | International Solidarity in the Belly of the Beast [EARLY ACCESS] What does meaningful international solidarity with Venezuela look like from inside the US empire? In Episode 45 of the Venezuelanalysis podcast, Ricardo Vaz speaks with Austin Cole of the Black Alliance for Peace and Michela Martinazzi of Brooklyn Against War and the International League of Peoples’ Struggle about organizing against imperialism from “the belly of the beast.” The conversation looks at escalating attacks abroad, repression at home, the challenges facing solidarity movements, and how to build broad coalitions without falling into the bipartisan trap. Get early access to the episode and support independent anti-imperialist journalism 👉🏽patreon.com/c/venanalysis #InternationalSolidarity#AntiImperialism#Podcast#VAPodcast

12
ПредишнаСтр. 1 от 2Следваща