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 подобни публикации

Търсене: #usimperialism

当前筛选 #usimperialism清除筛选
Venezuelanalysis

@venanalysis · Post #2091 · 07.09.2025 г., 19:56

📑🖊 OPINION |The United States Uses a Fabricated Drug Charge for a Potential Strike on Venezuela Vijay Prashad situates the US military buildup in the Caribbean within the Trump administration’s broader offensive against Venezuela. Seven warships and a nuclear-powered submarine are off Venezuela, even though most drugs reach the US via the Pacific. The US also doubled the reward on President Maduro to $50M for alleged ties to the “Cartel of the Suns,” described as a phenomenon rather than a cartel. 🔗 Read the full opinion piece here: https://venezuelanalysis.com/opinion/the-united-states-uses-a-fabricated-drug-charge-for-a-potential-strike-on-venezuela #DonaldTrump#USImperialism

Venezuelanalysis

@venanalysis · Post #2213 · 19.12.2025 г., 23:23

🗒️🗣️ INTERVIEW | Solidarity with Venezuela in the Belly of the Beast: A Conversation with Elizabeth Blaney Organized opposition to US aggression against Venezuela is growing inside the United States, particularly among working-class and immigrant communities. In the latest VA interview, Los Angeles tenant organizer Elizabeth Blaney explains that communities facing ICE raids, Medicaid cuts, and housing insecurity see a direct connection between repression at home and war abroad. Blaney also discusses the recent People’s Assembly for Peace and Sovereignty in Caracas, attended by 600–800 delegates despite major travel obstacles. Participants linked sanctions and military escalation against Venezuela to global consequences, including rising housing costs, energy insecurity, and the diversion of public resources away from social needs. Read the full interview here 👉🏾https://shorturl.at/ZySYh #InternationalSolidarity#USImperialism

Venezuelanalysis

@venanalysis · Post #2092 · 08.09.2025 г., 15:34

📑🖊 OPINION | All Elements in Place for a US Strike on Venezuela On September 2, the US military destroyed a vessel in the Caribbean without attempting to stop or search it, killing 11 people. Washington claimed the boat came from Venezuela and was carrying drugs. The latest opinion piece by Emersberger and Harris points to escalating US actions: troop deployments in the Caribbean, a $50M bounty on Maduro, expanded sanctions, and a sustained military presence. These steps, they argue, set the stage for a possible strike targeting Venezuela’s leadership. 🔗 Read the full piece here: https://shorturl.at/c6udQ #DonaldTrump#USImperialism#USMilitaryThreats

Venezuelanalysis

@venanalysis · Post #2198 · 05.12.2025 г., 20:25

🗒️🗣️ INTERVIEW | ‘Venezuela, the Threat of a Good Example’: A Conversation with Geraldina Colotti In a world turned upside down, Italian activist Geraldina Colotti argues that no good deed and no sovereign project goes unpunished. She links the latest US escalation against Venezuela to what she describes as a broader imperial strategy amid a global capitalist crisis, citing sanctions, psychological operations, and an expanded US military footprint across Latin America and the Caribbean. For Colotti, Venezuela remains a target because it disrupts this dynamic. Before the blockade, the country had nearly achieved the UN Millennium Goals, a record she says turned Venezuela into “the threat of a good example” that Washington moved to contain. Read the full interview here 👉🏾https://shorturl.at/4H7sB #MediaCoverage#USImperialism

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 #2206 · 13.12.2025 г., 23:55

🗒️🗣️ INTERVIEW | Puerto Rico, US Imperialism and Venezuela’s Defiant Sovereignty: A Conversation with Déborah Berman Santana From within a US colony, Puerto Rican geographer and activist Déborah Berman Santana argues in the latest VA interview that Washington’s “new” strategy closely resembles the old one. The United States’ latest National Security Strategy refocuses on the Western Hemisphere, reaffirming claims to dominance over Latin America and the Caribbean. In Berman Santana’s assessment, the document openly restates a historic objective: hemispheric control, with Venezuela at the center due to its insistence on sovereignty and control over its resources. She explains that Puerto Rico’s status as an unincorporated US territory enables this strategy in practice. With six US military bases on the island and a recent increase in air and naval activity, including the takeover of former civilian facilities, the United States can deploy forces across the Caribbean without consultation, using military pressure to influence Venezuela and signal limits on regional sovereignty. Read the full interview here 👉🏾https://shorturl.at/NkaUd #Caribbean#DonaldTrump#USImperialism

Venezuelanalysis

@venanalysis · Post #1783 · 23.10.2024 г., 20:01

Steve Ellner counters critics who distort Gramsci’s concepts to frame the second wave of Latin America's Pink Tide as capitulation, asserting that governments like Venezuela's still play a pivotal role in resisting US imperialism. Read the full analysis here 👉🏼https://shorturl.at/yMlcG #PinkTide#USImperialism

Venezuelanalysis

@venanalysis · Post #2174 · 17.11.2025 г., 13:28

🗒️🗣️ INTERVIEW | Grenada, Venezuela and the Logic of Empire: A Conversation with Chester Humphrey In the latest VA interview, veteran Grenadian revolutionary Chester Humphrey draws stark parallels between the 1983 U.S. invasion of Grenada and today’s military buildup against Venezuela. He warns that the narrative of “narco-terrorism” echoes the fabricated pretexts of the past, and reveals that Washington is pressuring Grenada to host radar infrastructure tied to potential military action. Humphrey also calls for unity among revolutionary movements and emphasizes deepening people-to-people solidarity throughout the Caribbean. Read the full interview here 👉🏾https://shorturl.at/z1TuF #Caribbean#InternationalSolidarity#USImperialism

Venezuelanalysis

@venanalysis · Post #1553 · 03.05.2024 г., 18:14

Llanisca Lugo, a Cuban intellectual and Representative in Cuba's Popular Power National Assembly, discusses the impact of imperialist blockades on Cuba and Venezuela, highlighting the significance of Venezuelan communes as models of collective organization. "We are also inspired by the Venezuelan communes. While they may not be perfect, it's clear that when people organize themselves, collectively manage day-to-day affairs, and produce the goods they need, then a community of equals emerges," Lugo emphasizes. Read the full interview here 👉🏼https://shorturl.at/awy23 #Cuba#Venezuela#Sanctions#USImperialism

Venezuelanalysis

@venanalysis · Post #2137 · 13.10.2025 г., 12:53

📝 INTERVIEW | A Geopolitical Analysis of the Imperialist Buildup Against Venezuela: A Conversation with Ana Esther Ceceña US escalation in the Caribbean is not an isolated move. According to Mexican economist and geopolitical analyst Ana Esther Ceceña, Washington aims to tighten control over Latin America’s natural resources and curb China and Russia’s expanding role in the region. Ceceña also underscores Venezuela’s distinctive strength: a politically conscious people united in defending national sovereignty. Read the full interview here 👉https://shorturl.at/MT4YG #Oil#Sovereignty#USImperialism#USMilitaryThreats

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 #2097 · 10.09.2025 г., 20:42

🎥 VIDEO |“They [the US] are looking for oil. It’s not drug trafficking. It’s the oil,” President Nicolás Maduro told Rafael Correa during an interview on Tuesday. Maduro recalled that Venezuela has the world's largest proven oil reserves, estimated at 303 billion barrels, as well as the fourth-largest gas reserves, and potentially the world's largest gold reserves. He stated that these vast resources were the primary reason for the Trump administration’s ramped-up threats of regime change against Venezuela. #Venezuela#US#drugtrafficking#USImperialism

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