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

Резултати

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

Търсене: #nicolasmaduro

当前筛选 #nicolasmaduro清除筛选
Venezuelanalysis

@venanalysis · Post #2351 · 29.04.2026 г., 09:50

📰 NEWS |US Allows Venezuela to Cover Maduro’s Legal Fees The US government has issued amended sanctions licenses allowing Venezuela to cover the legal defense costs of Nicolás Maduro and Cilia Flores in their New York case. According to a joint court filing dated April 24, the authorization permits payments to defense counsel from Venezuelan state funds available after March 5, 2026, while excluding oil revenues under US control and previously frozen assets. Following the decision, the defense withdrew its motion to dismiss the case. Read the full report here 👉https://shorturl.at/CWvIk #NicolasMaduro #USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2309 · 17.03.2026 г., 21:51

📰 NEWS | Venezuela: US Defends Blocking Funding of Maduro and Flores Legal Defense US prosecutors have rejected a motion by Nicolás Maduro and Cilia Flores to dismiss criminal charges, stating that Treasury sanctions prohibit sanctioned entities from funding legal defenses and do not breach due process rights. Defense attorney Barry Pollack argued in court that US restrictions interfered with the defendants’ ability to retain counsel, noting that a license allowing Venezuela to cover legal fees was issued and then withdrawn within hours. Maduro and Flores have pleaded not guilty, with the next hearing scheduled for March 26. Read the full report here 👉🏾https://shorturl.at/A0EDw #NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2284 · 25.02.2026 г., 00:39

🖊OPINION | The Decapitation That Failed: Venezuela After the Abduction of President Maduro Solidarity activists John Perry and Roger Harris take stock of the US' imperialist attacks against Venezuela following Maduro's abduction. Read the full opinion piece here 👉🏽https://venezuelanalysis.com/opinion/the-decapitation-that-failed-venezuela-after-the-abduction-of-president-maduro/ #NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2194 · 03.12.2025 г., 15:53

📰 NEWS | Alleged US Deadline for Maduro Exit Passes Without Incident An alleged US ultimatum giving President Nicolás Maduro one week to leave Venezuela passed without incident. Officials in Caracas dismissed claims that any negotiation involved Maduro stepping down. Meanwhile, the Trump administration faces growing scrutiny after disclosures that US strikes in the Caribbean targeted shipwrecked survivors. US lawmakers have introduced a War Powers Resolution aiming to block military action against Venezuela without congressional approval. Read the full report here 👉🏾https://shorturl.at/aor4I #NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2173 · 14.11.2025 г., 21:25

📰 NEWS | Maduro Marches with Communal Youth Ahead of Popular Consultation as Trump Considers Venezuela Land Strikes Venezuelan President Nicolás Maduro marched with thousands of members of the Communal Youth Committees in western Caracas ahead of the Nov. 23 popular consultation. Communities will choose local initiatives that receive state funding, marking the fourth consultation this year as the government reports 4,000 officially registered communes. At the same time, senior US military and intelligence officials have presented Trump with updated options for possible operations in Venezuela. The USS Gerald R. Ford Carrier Strike Group has entered the US Southern Command’s area, joining additional warships, a nuclear submarine and around 10,000 troops deployed since August. International scrutiny has intensified. CELAC–EU leaders called for respect for international law, while UN High Commissioner for Human Rights Volker Türk condemned recent US maritime strikes that have killed at least 80 people. Read the full report here 👉🏾https://shorturl.at/YgVUh #Communes#NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2274 · 10.02.2026 г., 19:13

📰 NEWS | Venezuelan Parliament Head Welcomes ‘Win-Win’ Relations with US, Dismisses Short-Term Elections Venezuelan National Assembly President Jorge Rodríguez confirmed an accelerated diplomatic rapprochement with the United States, including regular contact with senior US officials and reforms to the Hydrocarbon Law aimed at promoting US investment. He also ruled out holding elections in the near future, stating that Venezuela will follow its constitutionally established electoral calendar as the government prioritizes stabilization. Read our full report here 👉https://shorturl.at/xgHLM #NicolasMaduro#PDVSA#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2025 · 08.07.2025 г., 21:03

🎥 VIDEO | Maduro-led Forces Sweep Elections While US Silent: Discussion With Eyewitnesses Venezuela held elections on May 25 that saw the pro-government Great Patriotic Pole secure overwhelming majorities both in the National Assembly and regional governorships. In response, the International Manifesto Group convened a panel of international analysts to assess the electoral process, Venezuela’s internal political dynamics, and the broader geopolitical implications. 👉 Watch the full video here: https://venezuelanalysis.com/video/maduro-led-forces-sweep-elections-while-us-silent-discussion-with-eyewitnesses/ #LegislativeRegionalElections2025#NicolasMaduro

Venezuelanalysis

@venanalysis · Post #1970 · 20.05.2025 г., 19:49

📑🖊 OPINION | ‘Neoliberal and Authoritarian’? A Simplistic Analysis of the Maduro Government that Leaves Much Unsaid Steve Ellner dissects Gabriel Hetland’s simplistic critique of Maduro's government, calling it a one-sided take that ignores key facts. Hetland downplays the brutal impact of U.S. sanctions, like the blocking of bond negotiations and the Petro’s swift blacklisting, and misrepresents the government’s relationship with grassroots power. Ellner points to the 'Year of the Communes' and Ángel Prado’s appointment as proof of ongoing support for popular democracy. 🔗 Read the full opinion piece here: https://venezuelanalysis.com/opinion/neoliberal-and-authoritarian-a-simplistic-analysis-of-the-maduro-government-that-leaves-much-unsaid #Communes#NicolasMaduro#Sanctions

Venezuelanalysis

@venanalysis · Post #2086 · 02.09.2025 г., 19:10

📑🖊 OPINION | The Great Hoax Against Venezuela: Oil Geopolitics Disguised as ‘War on Drugs’ Former UN anti-drugs agency director Pino Arlacchi dismantles the “narco-state” narrative with 30 years of reliable data. The 2025 UNODC and European Drug Reports confirm Venezuela’s marginal role in global drug trafficking, with no coca cultivation or cartel presence. Arlacchi states the “Cartel de los Soles” is a political fabrication, absent from all international anti-drug reports. 👉🏽 Read the full opinion piece here: https://shorturl.at/69vho #DrugTrafficking#NicolasMaduro

Venezuelanalysis

@venanalysis · Post #1801 · 07.11.2024 г., 22:11

President Nicolás Maduro congratulated Donald Trump on his election win and expressed hope for a renewed, respectful relationship between the US and Venezuela. Describing Trump’s return as a 'golden opportunity' for peace, Maduro emphasized the potential for 'win-win' relations. The Venezuelan Foreign Ministry also issued a statement, underscoring ‘historical ties’ between the two nations and aspirations for peaceful cooperation. Read the full report 👉🏼https://shorturl.at/djDBP #DonaldTrump#NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2297 · 10.03.2026 г., 09:54

🖊OPINION | Venezuela After January 3: A Nation Standing in the Storm A solidarity brigade traveled to Venezuela amid what residents described as a “storm” of US attacks, sanctions, and pressure, culminating in the January 3 operation that kidnapped President Nicolás Maduro and First Lady Cilia Flores. Delegates reported that Venezuelans are still processing the shock, with banners and weekly protests calling for the leaders’ return. Delegates also heard accounts of trauma from explosions and ongoing US military presence. Solidarity activist and cofounder of CODEPINK for Peace, Medea Benjamin, recounts the visit. Read the full opinion piece here 👉🏽https://venezuelanalysis.com/opinion/venezuela-after-january-3-a-nation-standing-in-the-storm/ #InternationalSolidarity#NicolasMaduro#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2160 · 31.10.2025 г., 18:05

📰 NEWS | Trump Denies Reports That US Poised to Strike Venezuela President Donald Trump denied Miami Herald reports that his administration was preparing to strike Venezuelan military installations allegedly linked to drug trafficking. The UN Human Rights Office condemned Washington’s regional bombing campaign, ongoing since September, which has reportedly killed 61 civilians. Read the full report here 👉🏾https://shorturl.at/xb45I #DonaldTrump#NicolasMaduro#USMilitaryThreats

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