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

Резултати

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

Търсене: #hugochavez

当前筛选 #hugochavez清除筛选
Venezuelanalysis

@venanalysis · Post #2304 · 13.03.2026 г., 00:49

🖊OPINION | Hugo Chávez: Truth as a Form of Struggle Former Vice President Elías Jaua reflects on the political style of Hugo Chávez, highlighting moments when the Venezuelan leader publicly explained major decisions and setbacks, from acknowledging the defeat of the 2007 constitutional reform referendum to announcing his cancer diagnosis on national television in 2011. Read the full opinion piece here: https://venezuelanalysis.com/opinion/hugo-chavez-truth-as-a-form-of-struggle/ #HugoChavez

Hashtags

Venezuelanalysis

@venanalysis · Post #1928 · 04.04.2025 г., 23:00

📝 INTERVIEW | Building Communal Hegemony: A Conversation with Robert Longa El Panal Commune’s main spokesperson talks about how communes might enter the Venezuelan constitution through an upcoming reform. 🔗 Read more in the latest VA interview here: https://venezuelanalysis.com/interviews/building-communal-hegemony-a-conversation-with-robert-longa/ #Communes#HugoChavez #USImperialism

Venezuelanalysis

@venanalysis · Post #2014 · 26.06.2025 г., 20:03

🎥 VIDEO | Chávez the Radical XXIX: ‘You Are Not Small Businesspeople’ One of the goals of capitalist ideology is to hide or downplay class struggle. Instead, it seeks to foster individualism over collective processes. Former Venezuelan President Hugo Chávez looked to dispel these myths in a 2012 speech, reminding those who take part in the informal economy that they are not small businesspeople but belong to the working class. 👉 Watch the full video here: https://shorturl.at/D1IgI #HugoChavez#ChaveztheRadical

Venezuelanalysis

@venanalysis · Post #1831 · 13.12.2024 г., 20:04

In the latest VA interview, Joel Suárez, a theologian from Cuba’s Martin Luther King Center, shares personal reflections on Hugo Chávez’s spiritual journey as a revolutionary man of faith, including his historic 1994 meeting with Fidel Castro. Suárez underscores the role of Liberation Theology in Chávez’s revolutionary praxis. Read the full interview here: https://venezuelanalysis.com/interviews/chavez-spirituality-and-revolution-a-conversation-with-joel-suarez-part-i/ #HugoChavez#Religion

Venezuelanalysis

@venanalysis · Post #2153 · 24.10.2025 г., 20:25

🗒️🗣️ INTERVIEW | ‘The Imperialist Offensive is Nothing New for the Bolivarian Revolution’: A Conversation with Ana Maldonado In the latest VA interview, Ana Maldonado — sociologist and coordinator for the Francisco de Miranda Front — discussed Washington’s renewed military escalation in the Caribbean. She warned that around 10,000 US troops are currently stationed in the region, signaling a revival of the Monroe Doctrine and a direct threat to Latin American sovereignty. Despite this, Maldonado stressed that Venezuelans continue their daily routines with calm and organization. “We are in a phase of maximum preparation,” she said, noting that millions have voluntarily joined the Bolivarian Militia to defend the homeland. 🔗 Read the full interview here 👉https://venezuelanalysis.com/interviews/the-imperialist-offensive-is-nothing-new-for-the-bolivarian-revolution-a-conversation-with-ana-maldonado #AntiImperialism#HugoChavez#USMilitaryThreats

Venezuelanalysis

@venanalysis · Post #2030 · 15.07.2025 г., 19:03

📑🖊 OPINION | Socialist Communes and Anti-Imperialism: The Marxist Approach Chris Gilbert analyzes when a commune or communal project can be considered anti-imperialist, drawing on Marx’s theoretical foundations. One expression of this framework came in 2024. According to Gilbert, it was exemplified when Palestinian revolutionary Leila Khaled visited the El Panal Commune in Caracas. She praised it as a concrete example of sovereignty under U.S. sanctions, drawing parallels with the Palestinian struggle for national liberation. That same year, Venezuela also deepened its communal strategy by launching quarterly consultations and expanding public funding to strengthen commune powers. Read the full opinion piece here: https://shorturl.at/eThgJ #antiimperialism#Communes#HugoChavez

Venezuelanalysis

@venanalysis · Post #2008 · 19.06.2025 г., 20:42

📝 INTERVIEW | Chávez and the Sowing of Values: A Conversation with Ana Sofía Cabezas 🗣 “We want future generations to know the Chávez we knew, not the one on Wikipedia.” The vice president of the Hugo Chávez Foundation, Ana Sofía Cabezas, speaks to Venezuelanalysis about the work being done to preserve and transmit the Comandante’s legacy. She explains how Chávez’s values—humility, responsibility, sovereignty—can still guide younger generations, and why maintaining access to this history is essential: “Just as capitalism and imperialism continue to exist, Chávez’s project remains valid and useful to confront reality and envision the future.” 🔗 Read the full interview here 👉🏽venezuelanalysis.com/interviews/chavez-and-the-sowing-of-values-a-conversation-with-ana-sofia-cabezas/ #HugoChavez#HugoChavezLegacy

Venezuelanalysis

@venanalysis · Post #1593 · 07.06.2024 г., 17:35

The Pancha Vásquez commune in Apure State, Venezuela, consisting of fourteen communal councils, embodies the region's deep-rooted traditions in agriculture and cattle rearing. It's also where Hugo Chávez sharpened his political vision from 1985-1988, intertwining his socialist ideals with the local folklore. From the legendary “El Silbón” to “La Sayona,” the tales Chávez encountered in Elorza have become a vital part of the area's folklore, reflecting the enduring impact of his legacy. Read the full interview here 👉🏼shorturl.at/jaxwE #communalresistanceseries#communes#HugoChavez

Venezuelanalysis

@venanalysis · Post #2272 · 09.02.2026 г., 17:21

🖊OPINION | One Hundred Years of British Interference in Venezuela Declassified UK documents detail how British governments sought to protect oil investments in Venezuela for over a century, including opposing nationalisation and lobbying during Hugo Chávez’s presidency in 2001. Read the full opinion piece here 👉🏽https://venezuelanalysis.com/analysis/one-hundred-years-of-british-interference-in-venezuela/ #HugoChavez#PDVSA#UnitedKingdom

Venezuelanalysis

@venanalysis · Post #2240 · 12.01.2026 г., 00:59

🖊OPINION | Hugo Chávez Predicted This US attacks against the Bolivarian Revolution did not begin on January 3, 2026. In this essay, Nuvpreet Kalra traces the different stages of US efforts to undermine Venezuela's revolutionary process and bring about regime change. Click here to read the article: https://venezuelanalysis.com/analysis/hugo-chavez-predicted-this/ #HugoChavez#Imperialism#NicolasMaduro#Sovereignty

Venezuelanalysis

@venanalysis · Post #2045 · 28.07.2025 г., 23:34

🗓️ MILESTONE | On July 28, we remember the birth of Hugo Chávez, born in 1954 in Sabaneta, Venezuela. A revolutionary leader who reshaped the nation’s political landscape, Chávez remains a defining figure in Latin American history and a lasting influence on global struggles for socialism, sovereignty, and social justice. 👉 Find out about his legacy in this infographic: https://venezuelanalysis.com/infographics/15574/ #HugoChavez#Socialism#Venezuela#LatinAmerica

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