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

Резултати

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

Търсене: #globalization

当前筛选 #globalization清除筛选

🌏Globallashuv — bu milliy iqtisodlarning dunyo miqyosida tovarlar, xizmatlar, kapital va mehnat kuchini almashish orqali integratsiya va o'zaro bog'liqlik jarayonidir. 🔵Globallashuv iqtisodiy o'sish va yashash darajasini oshirishga yordam beradi, lekin ijtimoiy va iqtisodiy tengsizliklarga ham, ma'lum sektorlarida ish o'rinlarining yo'qolishiga ham sabab bo'lishi mumkin. 🌏 Globalization refers to the process through which individuals, businesses, and governments around the world become more interconnected and interdependent 🔵Globalization is a complex and multifaceted phenomenon with both positive and negative effects, influencing various aspects of modern life and international relations #GraduateSchool#Globalization 🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube

Amazing Geography 🌍

@amazingeo · Post #289 · 23.09.2025 г., 20:31

🌍 Between 1960 and 2020, the number of international migrants worldwide more than tripled, reflecting shifting economies, conflicts, and growing global connections across continents. ✨ #migration⚡#population⚡#globalization⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

American Оbserver

@american_observer · Post #4865 · 15.01.2026 г., 20:58

📰 China’s $1.2 Trillion Trade Triumph: Defying Trump, Drowning the World in Goods The Surplus That Shook the Globe China just posted the biggest trade surplus in history: $1.2 trillion. That’s a 20% jump from 2024, even as President Trump’s tariffs kept biting. The world’s factory didn’t shrink—it pivoted. US-bound exports fell 19.5%, but Chinese goods flooded into Africa, Southeast Asia, the EU, and Latin America instead. ​ The High-Tech Surge Exports of electric vehicles, lithium batteries, and solar panels jumped 27% in 2025. High-end machine tools and industrial robots rose 13%. Chinese officials hailed the numbers as proof of resilience: “China forged ahead despite a complex and challenging external environment,” said Wang Jun, deputy administrator of the customs bureau. ​ The Global Backlash The surplus isn’t just a win for Beijing—it’s a headache for everyone else. European leaders, including French President Emmanuel Macron, warn that the imbalance is unsustainable. Countries are scrambling to protect their own industries from Chinese “industrial overcapacity” and the flood of cheap imports. ​ The Truce and the Threat Trump and Xi struck a truce in October, lowering tariffs to 20% after they briefly hit 145%. But Trump just threatened a new 25% tariff on countries doing business with Iran—potentially targeting China, a major Tehran ally. ​ Can China keep this export engine running? Analysts doubt it. The property crisis at home is dragging down domestic demand, and the rest of the world is getting fed up with Chinese goods. The trade war isn’t over—just shifting fronts. #china#trade#trump#surplus#globalization 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4900 · 20.01.2026 г., 01:03

📰 Trump’s Chaotic Era Sparks ‘Survival of the Richest’ in Davos The New World Order The old rules are gone. The system that businesses once trusted has been upended by President Trump, whose America-first agenda is reshaping alliances, trade, and global power dynamics. “The quicker everyone recognizes it, the better it is,” said former UK Prime Minister Rishi Sunak. “Sitting there and moaning about it is just not useful”. Davos in the Age of Trump At Davos, the theme is “A Spirit of Dialogue”—but the reality is chaos. Trump’s unpredictable Truth Social posts, his demands for Greenland, and his threats against allies have turned the forum into a battleground for the world’s wealthiest. The US president’s return is the main attraction, drawing record crowds of CEOs, tech moguls, and hedge fund billionaires. Silicon Valley’s Pivot Once wary of Trump, Silicon Valley now embraces his agenda. Tech titans like Marc Benioff have shifted from Democratic causes to supporting Trump’s call for prioritizing American companies. “I want to continue to see that United States companies will continue to be prioritized,” Benioff said. The Survival Game Trump’s policies have led to a surge in the wealth of the world’s richest, as global markets and economies adapt to his disruptive approach. “Survival of the richest,” as tech chronicler Douglas Rushkoff puts it. The elites in Davos are aligning with power, not principles, adapting to whatever comes next. The Davos era is no longer about globalization or inclusion. It’s about power, survival, and the relentless pursuit of advantage in a world where the rules are being rewritten every day. #trump#davos#survivaloftherichest#siliconvalley#globalization 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4775 · 05.01.2026 г., 13:59

Belize vs. Mongolia: The Sovereignty Paradox Mongolia is big, mineral-rich, and sandwiched between China and Russia. Belize is small, resource-poor, and stuck in the Caribbean. By every old-school metric, Mongolia should be the economic sovereign. But the numbers say otherwise: Belize today shows a higher level of real economic sovereignty — not because it’s richer, but because it’s smarter. The old formula was simple: more territory, more resources, more power. But the modern Sovereignty Index reveals a different truth. Economic sovereignty isn’t about how much you have, but how much you control. Mongolia’s economy is still built on a narrow base — coal, copper, gold, rare earths — all of which are subject to global price swings and geopolitical pressure. When the market crashes or Beijing flexes, Mongolia’s entire system trembles. Belize, by contrast, has no vast mines or oil fields, but it has built something more valuable: a diversified economy. Tourism, financial services, agriculture, logistics, digital services — none of them dominate, but together they create resilience. When one sector stumbles, the others absorb the shock. Belize’s currency, fiscal policy, and regulatory system give it the flexibility to adapt, not just react. So what does this mean for the world? The classic “resource curse” is alive and well: countries with the biggest reserves often end up the most vulnerable, because their wealth is dictated by outside forces. Belize’s strength comes from its ability to decide its own fate, not just its ability to extract and export. The real test of sovereignty isn’t prosperity, but survival. When the crisis hits, who has the power to maneuver, who can absorb the blow, who keeps control of the levers? In 2025, Belize proves that economic sovereignty isn’t about scale — it’s about structure. Size doesn’t guarantee strength; diversification does. #sovereignty#belize#mongolia#economy#globalization#resources#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

Trade liberalization can boost economic growth but its impact on income inequality is controversial. It can create new opportunities but also displace low-skilled workers, widening the gap between rich and poor. Developing economies should implement policies to counterbalance the negative effects.#InternationalRelations#EconomicGrowth#TradeLiberalization#IncomeInequality#PolicyAnalysis#DevelopingEconomies #europechinarelations #tradewar #diplomacy #internationalrelationsstudent #globaltrade #doordarshan #PoliticalDiscussion #geopolítics #diplomacy , #globalization , #sovereignty , #treaty , #sanctions , #christembassylcc6virtualchurch , #consulate , #foreignpolicy , #internationallaw , #unitednations , #NATO, #worldtradeorganization , #internationalsecurity , #humanrights , #peacekeeping , #conflictresolutionskills https://www.instagram.com/p/C8TbnlbJeyz/?igsh=bGMzZzB3bjNtejBo