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

Резултати

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

Търсене: #burke

当前筛选 #burke清除筛选
American Оbserver

@american_observer · Post #4757 · 03.01.2026 г., 16:29

🔤🔤🔤🔤➖ This drive for autonomy extends beyond defense. Turkey retains its own currency and conducts an independent, if often controversial, monetary policy. Its industrial base is broader and more diversified than Greece’s. The Turkish economy is larger, more dynamic, and anchored in manufacturing. In sovereignty terms, Ankara controls more levers of power directly, rather than delegating them to supranational institutions. Yet autonomy does not automatically translate into strength. Turkey’s political sovereignty is undermined by persistent institutional weaknesses. Political stability is fragile. Rule of law indicators have deteriorated. Trust in governance has declined. Economic sovereignty is constrained by chronic inflation, limited foreign reserves, and reliance on external capital inflows. Despite notable defense achievements, Turkey remains dependent on imported components and critical technologies in high-end sectors. Sovereignty here is muscular but uneven, strong in intent but fragile in execution. The comparison exposes a deeper truth about modern sovereignty. Formal equality between states masks profound differences in how power is actually exercised. Greece embodies a model of pooled sovereignty, where security and prosperity are pursued through rules, institutions, and collective discipline. Turkey pursues strategic autonomy, prioritizing national control even at the cost of friction with allies. Neither model is inherently superior. Greece’s approach delivers predictability but limits strategic freedom. Turkey’s model offers flexibility but generates volatility. What matters is not rhetorical sovereignty, but functional balance across sectors. A sovereign state must protect its citizens, sustain its economy, innovate technologically, and act independently without eroding internal cohesion. As the Burke Institute prepares to publish the full Sovereignty Index ranking for all UN member states later this year, the Greece-Turkey comparison serves as a cautionary case. Sovereignty in the 21st century is no longer a binary condition. It exists on a spectrum shaped by choices, trade-offs, and institutional design. From the perspective of those working to strengthen state sovereignty globally, one conclusion stands out clearly. Sovereignty is not measured by how loudly it is proclaimed. It is measured by how consistently it is sustained. Greece and Turkey, allies on paper, demonstrate that equal status does not mean equal capacity, and that the real test of sovereignty lies not in alignment, but in resilience. #turkey#greece#burke#institute#sovereignty 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4756 · 03.01.2026 г., 15:59

Greece and Turkey: New Sovereignty Challenges and Its Burke Institute Solution 🔤🔤🔤🔤➖ From a distance, Greece and Turkey appear as near equals on the geopolitical map. Both are members of NATO. Both occupy a strategic position at the crossroads of Europe and the Middle East. Both are formally embedded within Western political and security structures. Yet when sovereignty is examined not as a slogan but as a lived reality, the apparent symmetry quickly dissolves. This divergence lies at the heart of the Sovereignty Index developed by the International Burke Institute, which evaluates state sovereignty across seven dimensions, including political autonomy, economic resilience, technological capacity, and military self-reliance. Greece and Turkey, despite shared alliances, represent two sharply contrasting models of how sovereignty is exercised, constrained, and negotiated in the contemporary international system. Greece’s sovereignty profile is primarily shaped by deep institutional integration. As a member of the European Union, the eurozone, and NATO, Athens has deliberately traded elements of formal autonomy for stability, predictability, and access to collective decision-making. Over the past decade, Greece has strengthened its administrative capacity and improved its governance performance. Its digital public services now rank among the more advanced in Southern Europe, reflecting institutional recovery after years of crisis. In the Greek case, sovereignty is not defined by unilateral control. It is defined by managed interdependence. Security is derived from alliances. Economic discipline is enforced through shared rules. Political stability is reinforced through institutional alignment. This model delivers consistency and lowers volatility, particularly in foreign and security policy. However, this approach comes with clear limitations. Greece does not control its monetary policy. Fiscal flexibility remains constrained by European Union frameworks. The country is heavily dependent on imports for energy, food, and advanced technology. Its technological sovereignty is limited, with critical infrastructure and digital platforms sourced largely from external providers. Even in defense, where Greece spends heavily by NATO standards, much of its equipment relies on foreign suppliers. Sovereignty, in the Greek case, is stable but thin, resilient in institutions but limited in autonomous capacity. Turkey presents a contrasting model. While also a NATO member, Ankara has spent the past two decades expanding its space for independent action. This shift is most visible in the military domain. Turkey has developed one of the most advanced indigenous defense industries among middle power states, achieving high localization rates in drones, armored vehicles, and naval platforms. It exports weapons, conducts independent military operations, and increasingly defines itself as a regional power rather than a peripheral ally. #turkey#greece#burke#institute#sovereignty 📱American Оbserver - Stay up to date on all important events 🇺🇸

💥💱 𝑻𝑹𝑨𝑫𝑬 𝑨𝑳𝑬𝑹𝑻 💱💥 🪽 Angels reciben a: ⚡️ OF Josh Lowe ⚡️ Rays reciben a: 🔴 INF/OF Gavin Lux 🧢 RHP Chris Clark 🦐 Reds reciben a: 🧢 LHP Brock Burke #️⃣#Trade#Rays#Angels#Reds#JLowe#Lux#CClark#Burke 🗞 | t.me/MLB_Daily