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

Резултати

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

Търсене: #popularpower

当前筛选 #popularpower清除筛选
Venezuelanalysis

@venanalysis · Post #1539 · 20.04.2024 г., 21:09

Sunday's countrywide vote will lead to the selection of 4,500 local projects that will be assigned US $10,000 each. Local organizations have held assemblies to identify the most pressing needs for communities. Read the full story here: https://venezuelanalysis.com/news/venezuela-national-popular-consultation-sees-voters-choose-state-funded-projects/ #Venezuela#Communes#PopularPower

Venezuelanalysis

@venanalysis · Post #1869 · 04.02.2025 г., 21:10

🆕 NEWS | Venezuelans Vote in Third ‘National Popular Consultation’ to Select State-Funded Projects 🇻🇪 The grassroots electoral process was held in 5,334 communal circuits, where voters chose from over 36,600 proposals. Winning initiatives will receive USD 10,000 and be executed by grassroots collectives. The consultation is the first of six planned for 2025. 🔗 Read the full report here: https://shorturl.at/S90an #Communes#NationalPopularConsultation#PopularPower

Venezuelanalysis

@venanalysis · Post #2042 · 27.07.2025 г., 22:13

With today's electoral process winding down, VA's Cira Pascual Marquina files this report from the combative, working-class barrio 23 de Enero in western Caracas. Participation, as always in this Chavista bastion, has been positive throughout the day. #Venezuela#PopularPower#LocalElections

Venezuelanalysis

@venanalysis · Post #1885 · 20.02.2025 г., 20:23

🆕 NEWS | Maduro Presents Constitutional Reforms Package to Amplify Democracy and Chart ‘Sustainable’ Economic Course President Nicolás Maduro has introduced an 80-article constitutional reform proposal, emphasizing participatory democracy and a long-term economic roadmap. A National Commission has been formed to lead the process, and a public consultation will take place before a national referendum. A final proposal is expected in 90 days. 🔗 Read the full report here: https://shorturl.at/IVq9h #Constitution#NicolasMaduro#PopularPower

Venezuelanalysis

@venanalysis · Post #2046 · 29.07.2025 г., 20:06

🎙️ Episode 39 of the VA Podcast is out now! This episode examines the role of Venezuelan communes in socialist construction and anti-imperialist struggle, with guests Chris Gilbert and Cira Pascual Marquina. Both were guest editors of Monthly Review's latest issue, "Communes in Socialist Construction". The conversation covers the meaning of communes, Marx’s theory of the commune, and the political relevance of the slogan “Commune or Nothing!” 🎧 Watch here: https://youtu.be/u0RyfxgQgfc #Communes#PopularPower#VAPodcast#AntiImperialism#Venezuela

Venezuelanalysis

@venanalysis · Post #1830 · 13.12.2024 г., 13:59

Upcoming Elections in Venezuela: On Dec. 15, more than 4,000 communal circuits nationwide will host elections to select 30,000 peace judges. These officials, chosen through popular vote, will mediate community disputes and address local governance issues under newly reformed laws. Over 4,817 polling centers have been set up, and candidates present their plans in community assemblies and door-to-door campaigns. This initiative is part of Venezuela's broader efforts to advance grassroots democracy and participatory governance. Read the full report here: https://venezuelanalysis.com/news/venezuela-prepares-for-election-to-select-local-peace-judges/ #elections#participatorydemocracy#popularpower#communes

Venezuelanalysis

@venanalysis · Post #2347 · 25.04.2026 г., 20:21

🗒️🗣️ INTERVIEW | Heyerde López: ‘Our Challenge Is Staying True as a Left-Wing Organization’ In the latest VA interview, activist Heyerde López reflects on the structural challenges facing grassroots organizing in Venezuela, pointing to the difficulty of sustaining long-term projects while maintaining political coherence. López, a member of "Fundación Nativa Crea" in Guarenas, frames this as a central tension: “The main challenge is staying true to our identity as a left-wing organization,” he says, highlighting mounting economic pressures and contradictions in the relationship between popular power initiatives and state institutions. US sanctions and restrictions on wheat imports forced the closure of the group’s community bakery and café, key nodes in its local production network. The experience underscores how external constraints continue to impact grassroots economic initiatives. The collective is now working to relaunch these projects, with an emphasis on rebuilding communal forms of production and strengthening local productive capacity. Despite these setbacks, "Fundación Nativa Crea" remains embedded in broader networks of communes and social movements, while expanding its work in political education, communications, and grassroots production. Read the full interview here 👉https://venezuelanalysis.com/interviews/heyerde-lopez-our-challenge-is-staying-true-as-a-left-wing-organization/ #Art#Communes#NationalPopularConsultation#PopularPower

Venezuelanalysis

@venanalysis · Post #2037 · 24.07.2025 г., 19:41

📝 INTERVIEW | Building Communal Power from the Mayor’s Office: A Conversation with Lisbed Carolina Parada With municipal elections scheduled for Sunday, July 27, VA interviewed Lisbed Carolina Parada, mayoral candidate in the town of Urachiche, Yaracuy state. A longtime communal activist, Parada discussed the need to put institutional spaces at the service of popular power in the territories. Follow the link to read the interview: https://venezuelanalysis.com/interviews/building-communal-power-from-the-mayors-office-a-conversation-with-lisbed-carolina-parada/ #MunicipalElections#PopularPower#Urachiche#Communes

Venezuelanalysis

@venanalysis · Post #2083 · 01.09.2025 г., 18:13

📰 NEWS | Venezuela: Popular Organizations Push Direct Distribution Routes to Boost Food Security Pueblo a Pueblo and the Communard Union are providing affordable access to fish and vegetables by connecting popular organizations. Pueblo a Pueblo delivered 1,000 packs of fish and seafood, each weighing 3.8 kilograms, in Caracas, Yaracuy, Lara and Trujillo. The packages, sold at $13, represented savings of 50–60% compared to local markets. At the same time, the Communard Union transported 3.5 tons of vegetables from Trujillo to communes in Lara state. Between 500 and 600 people purchased potatoes, carrots, onions and tomatoes at prices around 40% below market levels. Both initiatives strengthen direct distribution routes between producers and communities. 🔗 Read the full report: https://shorturl.at/3HDgP #CommunardUnion#FoodSovereignty#PopularPower#PuebloaPueblo

Venezuelanalysis

@venanalysis · Post #1997 · 05.06.2025 г., 19:39

🖊 COLUMN | Venezuela, Popular Power and Coffee Jessica Dos Santos' latest column showcases how 18 communes in Sanare, Venezuela, launched the “Enriquito Colmenárez” coffee-roasting plant after receiving it from the Agriculture Ministry. The grassroots initiative supports campesinos with subsidies, training, and direct diesel access, while preparing to export robusta beans to the US and Russia. The plant will also host a soil lab through a partnership with the United Nations Food and Agriculture Organization (FAO). 🔗 Read the full VA column here: https://shorturl.at/EAU4t #Coffee#Peasants#Campesinos#PopularPower#TalesofResistance