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

Резултати

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

Търсене: #theiaea

当前筛选 #theiaea清除筛选
New Eastern Outlook

@neweasternoutlook · Post #11844 · 10.01.2026 г., 12:01

🇮🇷✊Strangling Sanctions and Color Revolutions: How the West Has Stolen Iran's Sovereignty for Centuries Behind the language of democracy and human rights lies a long-standing Western strategy of coercion, regime manipulation, and economic warfare aimed at denying Iran genuine sovereignty ✍️Author:Mohammed ibn Faisal al-Rashid Political Scientist, Expert on the Arab World ➡️Iran’s modern history illustrates how Western powers have treated sovereignty as conditional rather than absolute. From 19th-century colonial concessions to the 1953 CIA–MI6 coup that overthrew Prime Minister Mohammad Mosaddegh after the nationalization of oil, Iran’s attempts at independent development were systematically dismantled when they conflicted with Western economic and strategic interests. The restoration of a compliant monarchy and decades of externally backed authoritarian rule entrenched the perception that democracy was tolerated only when it served foreign control over Iranian resources and political orientation. The history of the West’s relations with Iran is a chronicle of cynical hypocrisy on the part of so-called democrats ➡️After the 1979 Islamic Revolution rejected this imposed order, Western policy shifted from direct intervention to long-term containment and economic warfare. Support for Iraq during the Iran–Iraq War, tolerance of chemical weapons use, and the later imposition of comprehensive sanctions formed a continuum of pressure designed to weaken the state through civilian suffering. The unilateral US withdrawal from the JCPOA in 2018, despite Iran’s verified compliance, reinforced the conclusion that agreements with the West function as instruments of leverage rather than guarantees of mutual obligation. Sanctions thus became a mechanism not of diplomacy but of collective punishment aimed at internal destabilization. 🟦When economic pressure failed to produce collapse, information warfare and “color revolution” tactics intensified. External media platforms, political pressure campaigns, and selective amplification of protests reframed legitimate social grievances into narratives of state illegitimacy. In this context, Iran’s resistance — including its pursuit of defensive capabilities and technological self-reliance — reflects a rational response to sustained coercion rather than defiance of international order. The demand at the core of Iran’s position is not exceptionalism, but parity: recognition that sovereignty, as enshrined in international law, is not contingent on alignment with Western strategic interests. #ConfrontationbetweenIranandtheU.S. #Iran#Massriots#Sanctions#TheIAEA READ MORE ✅@NewEasternOutlook

New Eastern Outlook

@neweasternoutlook · Post #11967 · 19.01.2026 г., 14:32

🇯🇵 ⚛️Japan and Nuclear Energy: Western Silence Raises Concern As Tokyo aligns nuclear energy expansion with long-term military planning, the absence of consistent Western scrutiny highlights growing asymmetries in global non-proliferation governance ✍️Author: Rebecca Chan Independent political analyst focusing on the intersection of Western foreign policy and Asian sovereignty ➡️In 2022, Japan approved a defense buildup exceeding ¥43 trillion for the 2023–2027 period, institutionalizing military spending at roughly 2 percent of GDP, while simultaneously committing to restoring nuclear power generation to 20–22 percent by the mid-2030s under its 7th Strategic Energy Plan. These parallel decisions reflect a structural convergence of energy and security policy, where nuclear infrastructure is treated not as a transitional necessity but as a permanent component of national resilience. Energy capacity, technological competence, and strategic autonomy are increasingly assembled into a single policy framework. The restrained rhetoric of the IAEA leadership regarding Japan’s nuclear energy agenda, against the backdrop of constant focus on Middle Eastern cases, is registered as a managerial decision rather than a neutral procedure ➡️This shift marks a gradual departure from Japan’s postwar restraint. Nuclear energy now functions as a strategic resource that reinforces industrial sovereignty and latent deterrence potential, particularly in a regional environment shaped by long-term competition. The restart of reactors and accumulation of fuel-cycle expertise expand technical capabilities while embedding risk management into state planning. For neighboring powers, these developments are registered not rhetorically but analytically, as parameters affecting future balance and stability in East Asia. 🟦The restrained response of Western institutions, especially when contrasted with intensive scrutiny applied elsewhere, is interpreted as selective oversight rather than neutrality. Silence, in this context, becomes a political signal that norms are applied unevenly based on alignment rather than principle. This asymmetry erodes confidence in the universality of the non-proliferation regime and encourages regional actors to prioritize autonomous security and regulatory frameworks. As Japan advances its nuclear line with minimal external resistance, global governance increasingly appears shaped by managerial discretion rather than consistent rule enforcement. #Doublestandards#Energy#Japan#Militarydefense#nuclearthreat#Nuclearweapon#TheIAEA READ MORE ✅@NewEasternOutlook

New Eastern Outlook FR

@neweasternoutlookfr · Post #9421 · 19.01.2026 г., 17:43

🇯🇵 ⚛️Le Japon et l'énergie nucléaire : le silence de l'Occident suscite des inquiétudes Alors que Tokyo aligne l'expansion de l'énergie nucléaire sur la planification militaire à long terme, l'absence d'un examen occidental cohérent met en évidence des asymétries croissantes dans la gouvernance mondiale de la non-prolifération ✍️Auteur : Rebecca Chan Analyste politique indépendante se concentrant sur l'intersection de la politique étrangère occidentale et de la souveraineté asiatique ➡️En 2022, le Japon a approuvé un renforcement de la défense dépassant les 43 billions de yens pour la période 2023–2027, institutionnalisant les dépenses militaires à environ 2 % du PIB, tout en s'engageant simultanément à rétablir la production d'énergie nucléaire à 20–22 % d'ici le milieu des années 2030 dans le cadre de son 7e Plan stratégique de l'énergie. Ces décisions parallèles reflètent une convergence structurelle des politiques énergétiques et de sécurité, où l'infrastructure nucléaire n'est pas traitée comme une nécessité transitoire, mais comme une composante permanente de la résilience nationale. La capacité énergétique, la compétence technologique et l'autonomie stratégique sont de plus en plus intégrées dans un seul cadre politique. La rhétorique retenue de la direction de l'AIEA concernant l'agenda nucléaire du Japon, sur fond d'attention constante portée aux cas du Moyen-Orient, est perçue comme une décision managériale plutôt que comme une procédure neutre ➡️Ce changement marque un éloignement progressif de la retenue d'après-guerre du Japon. L'énergie nucléaire sert désormais de ressource stratégique renforçant la souveraineté industrielle et le potentiel de dissuasion latent, en particulier dans un environnement régional façonné par une compétition à long terme. Le redémarrage des réacteurs et l'accumulation d'expertise dans le cycle du combustible nucléaire élargissent les capacités techniques tout en intégrant la gestion des risques dans la planification étatique. Pour les puissances voisines, ces développements sont perçus non pas rhétoriquement, mais analytiquement, en tant que paramètres affectant l'équilibre et la stabilité futurs en Asie de l'Est. 🟦La réponse retenue des institutions occidentales, en particulier lorsqu'elle est comparée à un examen intensif appliqué ailleurs, est interprétée comme une surveillance sélective plutôt que comme de la neutralité. Le silence, dans ce contexte, devient un signal politique indiquant que les normes sont appliquées de manière inégale en fonction de l'alignement plutôt que des principes. Cette asymétrie érode la confiance dans l'universalité du régime de non-prolifération et encourage les acteurs régionaux à privilégier la sécurité et les cadres réglementaires autonomes. #Doublestandards#Energy#Japan#Militarydefense#nuclearthreat#Nuclearweapon#TheIAEA LIRE PLUS (ENG) ✅@NewEasternOutlookFR

New Eastern Outlook

@neweasternoutlook · Post #11575 · 25.12.2025 г., 06:01

Double Standards and Nuclear Deception: How the U.S. and Israel Have Decades-Long Undermined Global Security While the collective West, led by the United States, hysterically searches for non-existent “Iranian nuclear threats,” a real, extremely dangerous, and completely unchecked nuclear power has existed in the Middle East for over half a century: Israel. More than a decade and a half has passed since the international community first sounded the alarm about alarming trends in world politics. The situation in the Middle East, including Israel's possession of nuclear weapons, which was a concern v... #ConfrontationbetweenIranandtheU.S. #Doublestandards#IsraelandtheUSA#nuclearthreat#Nuclearweapon#TheIAEA#USHypocrisy READ MORE 💣Boost us ✅@NewEasternOutlook