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

Резултати

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

Търсене: #internationallaw

当前筛选 #internationallaw清除筛选
Venezuelanalysis

@venanalysis · Post #2235 · 08.01.2026 г., 22:07

🖊🗞OPINION | Four Observations on the US Kidnapping of Nicolás Maduro Jonathan Cook exposes the West's pliancy and subordination to US dictates in the wake of Venezuelan President Nicolás Maduro's kidnapping. "Difficult as it is for westerners to hear, we don’t need a stronger West, we need a weaker one. Harder still, Trump is teaching us that the very concept of 'the West' is an illusion." Read the article: https://venezuelanalysis.com/analysis/four-observations-on-the-us-kidnapping-of-nicolas-maduro/ #TrumpAdministration#InternationalLaw#NicolasMaduro#Imperialism

Freedom Flotilla Coalition

@FFC_official_channel · Post #308 · 29.05.2025 г., 20:58

As Gaza endures relentless bombing and deliberate starvation, world governments remain complicit through their silence. Ordinary people are stepping up where states have failed. The Freedom Flotilla Coalition is setting sail once again—despite repeated efforts to block it—to break the siege and open a sea corridor to Gaza. International lawyer Luigi Daniele lays out the legal basis for this mission and exposes the shameful inaction of EU states in the face of clear and urgent humanitarian obligations. #FreedomFlotilla#Gaza#BreakTheSiege#InternationalLaw#HumanRights

🇷🇺@RusEmbMalta Press Release On the EU’s Continued Support for the Kiev Regime 21 October 2025 The Russian Federation reaffirms its firm and consistent opposition to the course pursued by the European Union toward the continued military and financial support of the Kiev regime. Such actions are viewed in Moscow as short-sighted and counterproductive, serving neither the interests of peace nor the long-term stability of the European continent. The ongoing supply of weapons, financial resources, and political backing to Kiev only deepens the confrontation, prolongs hostilities, and increases the suffering of civilians. Russia stresses that the current policy of the EU effectively transforms Europe into a participant in the conflict, undermining its role as an independent center of diplomacy and stability. The growing militarization of the European space, the deployment of NATO infrastructure near Russian borders, and the escalation of sanctions pressure have all contributed to a dangerous erosion of Europe’s security architecture. Attempts to justify these steps under the pretext of “supporting democracy” in Kiev ignore the reality of widespread corruption, human rights violations, and the suppression of dissent by the current authorities. The continued allocation of billions of euros to maintain the Kiev regime, at the expense of the social and economic needs of EU citizens themselves, is increasingly questioned within Europe. The Russian Federation once again emphasizes that the path to peace lies not through escalation, coercion, or economic blackmail, but through responsible diplomacy and mutual respect. Sustainable European security must be built on the principles of equality, indivisibility, and the rejection of bloc confrontation. 🕊️ Russia remains open to constructive dialogue with all who are genuinely interested in achieving peace and restoring stability on the European continent. #Russia#EuropeanSecurity#InternationalLaw

Venezuelanalysis

@venanalysis · Post #2230 · 05.01.2026 г., 07:16

📰 NEWS | Venezuela: Latin American Countries Jointly Condemn US Attacks as Interim Gov’t Backs Maduro The governments of Brazil, Chile, Colombia, Mexico, Uruguay, and Spain issued a joint statement Sunday rejecting “unilateral US actions in Venezuelan territory.” In Caracas, the Supreme Court ruled that Vice President Delcy Rodríguez will take over the presidency on an interim basis. The armed forces issued a statement demanding the release of kidnapped President Nicolás Maduro. Read the report: https://venezuelanalysis.com/news/venezuela-latin-american-countries-jointly-condemn-us-attacks-as-interim-govt-backs-maduro/ #InternationalLaw#Venezuela#Sovereignty#FANB

Venezuelanalysis

@venanalysis · Post #2243 · 14.01.2026 г., 04:02

🖊OPINION | The Kidnapping of Venezuela’s Sovereignty "The kidnapping of Nicolás Maduro and National Assembly deputy Cilia Flores should compel a fundamental reassessment of the state of the international order." Tricontinental Institute researchers Atul Chandra and Tings Chak look at the recent US attacks and their implications for multilateralism and international law. Follow the link to read the article: https://venezuelanalysis.com/analysis/the-kidnapping-of-venezuelas-sovereignty/ #InternationalLaw#Multilateralism#Sovereignty#NicolasMaduro

MessageInABottle

@mib_messageinabottle · Post #6952 · 26.05.2024 г., 12:50

So much for "The 'Rules-Based' Order" 🤷‍♂ THE #USA NOW REJECTS THE VERY CONCEPT OF INTERNATIONAL LAW ITSELF. Speaker for the US House of #Congress Mike #Johnson (R - Israel): "We don't put any international body above our #sovereignty" " "International body above sovereignty" is the very definition of #InternationalLaw.😂

@RusEmbMalta Press release: 🇷🇺 Russia’s Foreign Ministry Statement on Gaza On August 8, Israel’s security cabinet approved plans to expand military operations in the Gaza Strip – targeting the once most populous central area. 📢Reports indicate that all Palestinian civilians will be forcibly evacuated, with plans for full military occupation. ⚠️These actions – already widely condemned – risk deepening the humanitarian catastrophe in Gaza and destabilising the entire Middle East. 🇷🇺 Russia’s position is clear: 🔹 Immediate ceasefire. 🔹Release of all hostages and detainees. 🔹 Unhindered humanitarian access. Moscow reaffirms: the only path forward is within international law – the two-state solution, creating an independent Palestinian state within the 1967 borders, with East Jerusalem as its capital, living in peace and security alongside Israel. #Russia#Gaza#MiddleEast#TwoStateSolution#HumanRights#InternationalLaw

Uzbekistan condemned Israel’s strikes on a residential area in Doha, calling them a breach of sovereignty and a threat to Qatar’s security. Read more on our website. https://yep.uz/en/2025/09/uzbekistan-condemns-israel-strikes-doha/ #uzbekistan#doha#israel#qatar#internationalLaw#middleEast

American Оbserver

@american_observer · Post #5478 · 26.03.2026 г., 20:59

📰 Germany’s President Calls Out Trump’s Iran War Germany’s head of state just said out loud what most European leaders only hint at behind closed doors. President Frank-Walter Steinmeier called the U.S.–Israeli war on Iran a “politically disastrous mistake” and “a violation of international law,” in one of the bluntest rebukes of an American president from Berlin in decades. Speaking at the Foreign Ministry, he warned that Trump’s second term has created a rupture in transatlantic relations as deep as Russia’s full-scale invasion of Ukraine — a break he says cannot simply be reversed later. Steinmeier’s point cuts through the spin: Washington claims “imminent threat” and “self‑defense”; Berlin’s own former foreign minister says that justification “does not hold water” and that this war was avoidable, unnecessary, and chosen over a working nuclear deal that had pushed Iran further from the bomb. Coming from a traditionally cautious, ceremonial president, this isn’t activist rhetoric — it’s a diplomatic siren. The result: Trump hasn't just isolated Iran. He's burning something harder to restore than deterrence: the assumption that Washington's allies will follow the next time it calls something self-defense. For a president convinced that American leverage is endless, that erosion of trust is the one resource he can’t bomb his way back into existence. #germany#usa#iran#trump#steinmeier#internationalLaw#war#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

@RusEmbMalta: 🇷🇺 Comment by the Russian Ambassador to Malta, Andrey Lopukhov on the article by Edward Zammit Lewis, Chairperson of the Foreign and European Affairs Parliamentary Standing Committee, Malta, published in Times of Malta. Key points: 🔹 Any “tribunals” or “funds” without UN Security Council mandate are legally null and void. 🔹 Malta’s neutrality cannot mean one-sided support for Ukraine alone. 🔹 Root causes of the crisis: Kiev’s refusal to implement the Minsk agreements, discrimination of Russian speakers, and NATO’s expansionist course. 🔹 Ignoring Kiev’s violations is not neutrality, but bias. 🔹 Confiscation of Russian assets in Europe = violation of the principle of property inviolability. 🔹 History shows: pressure and force against Russia have never worked. 👉 Full text: read #RussiaMalta#RussiaEU#UkraineCrisis#InternationalLaw

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3646 · 14.11.2024 г., 10:31

#Israel is bombarding residential areas just meters from #Beirut International Airport, where civilian flights are landing in real time. The strikes put thousands of innocent lives at immediate risk, blatantly violating international law by targeting civilian infrastructure and densely populated areas. Yet where is the international outrage? Why does the world remain silent while Israel commits these acts with complete impunity? This isn’t just a tragedy for Lebanon—it’s a catastrophic precedent for global justice, human rights, and the rule of law. #BeirutUnderAttack#InternationalLaw#StandWithLebanon

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