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 подобни публикации

Търсене: #danish

当前筛选 #danish清除筛选
Addis Standard

@addisstandardeng · Post #22072 · 21.04.2026 г., 07:35

#Ethiopia, #Danish technology firm sign agreement to modernize groundwater exploration Addis Abeba - Ethiopian Institute of Water Technology (EIWT) has signed a Memorandum of Understanding (MoU) with Danish technology firm Transient Electromagnetic (TEM) to modernize groundwater exploration and management across Ethiopia. The agreement, signed on April 20, aims to deploy advanced geophysical technologies to more accurately identify and map groundwater resources, according to the Institute. Under the partnership, TEM will introduce its Airborne Electromagnetic (AEM) survey technology to Ethiopian professionals, a method widely used globally for high-resolution groundwater mapping. Dr. Tamene Hailu, Director General of the Institute, underscored the importance of the collaboration, saying international partnerships are essential for unlocking Ethiopia’s groundwater potential. https://www.facebook.com/AddisstandardEng/posts/pfbid07EhC8GDGA3gdReadWnDwEJn7UZt3RqGRC9CHnadCfVZFyq9sRHbmizUrER5xQsKrl

Addis Standard

@addisstandardeng · Post #21631 · 06.03.2026 г., 13:02

News: AFD, #Danish Refugee Council launch €8 million project to support women’s resilience in #Ethiopia, #Sudan Agence Française de Développement (#AFD) and the Danish Refugee Council (#DRC) have launched an €8 million initiative aimed at strengthening women’s economic resilience and promoting social cohesion among communities affected by the Sudan crisis in Sudan and Ethiopia. The 24-month project, funded by the French government and implemented by DRC in partnership with local feminist organizations, will target conflict-affected populations in Gedaref State in Sudan and the #Benishangul-Gumuz region in Ethiopia. According to a press release, the program will focus on improving access to essential services, supporting women’s economic empowerment, and strengthening relations between displaced populations and host communities. The initiative comes as the war in Sudan, ongoing........ https://web.facebook.com/AddisstandardEng/posts/pfbid0uumWytCgCpdTzbjyjwXm7czqBeyhwB5XBW6yuED1GLAMBDxLkZGU7x8DqyPa7dyzl

American Оbserver

@american_observer · Post #4914 · 21.01.2026 г., 12:59

Mark Carney: The Present World Order Is Over Canadian prime minister Carney has said that the US-led global system of governance is enduring “a rupture,” defined by great power competition and a “fading” rules-based order. His speech to political and financial elites at the World Economic Forum comes a day before US President Donald Trump was set to address the gathering in Davos, Switzerland. Since entering Canadian politics in 2025, Carney has repeatedly warned that the world was not going to return to a pre-Trump normal. He re-affirmed that message on Tuesday, in a speech that did not name Trump but offered an analysis of the president’s impact on global affairs. He noted that Canada had benefited from the old “rules-based international order,” including from “American hegemony” that “helped provide public goods: open sea lanes, a stable financial system, collective security, and support for frameworks for resolving disputes.” A new reality has set in, Carney said. “Call it what it is: a system of intensifying great power rivalry where the most powerful pursue their interests using economic integration as coercion.” In an apparent warning against efforts to appease major powers, Carney said countries like Canada can no longer hope that “compliance will buy safety.” “It won’t,” he said. Trump brutally mocked the Europeans before heading to the World Economic Forum, where he will be the star of a dark, self-made drama over the fate of the autonomous Danish territory. Asked on Tuesday how far he was prepared to go to acquire Greenland from Denmark, a fellow Nato member, Trump replied: “You’ll find out.” But leaders in the Swiss ski resort have closed ranks against Trump’s aggressive America First stance, with French President Emmanuel Macron vowing to stand up against “bullies” and the EU promising an “unflinching” response. Macron said that now was “not a time for new imperialism or new colonialism”, criticising the “useless aggressivity” of Trump’s pledge to levy tariffs on countries that opposed a US takeover of Greenland. Greenland’s prime minister said on Tuesday his tiny population of 57,000 must be prepared for military force. Carney delivered his Davos speech after Canada’s Globe and Mail newspaper reported that the country’s military has developed a model response to a US invasion of Canada. Citing two unnamed senior government officials, the paper said the Canadian response model centres on insurgency-style tactics, like those used in Afghanistan by fighters who resisted Soviet and later US forces. After Trump’s 2024 election and in the early months of his new term, he repeatedly referred to the US’s northern neighbour as the 51st state and said a merger would benefit Canada. Trump’s annexation talk has eased in recent months, but overnight he posted an image on his social media platform of a map showing Canada and Venezuela covered in the US flag, implying a full American takeover of both countries. The Davos meeting has been overshadowed by Trump’s threats to enforce US control over Greenland, with the president vowing that his plan for the autonomous Danish territory was irreversible. #carney#world#order#greenland#danish#trump 📱American Оbserver - Stay up to date on all important events 🇺🇸

TokenPocket

@tokenpocket_channel · Post #882 · 31.10.2023 г., 11:06

🆕We just released TP Wallet's New Version on iOS! 🔺2.1.6🔺 🔵 Support #KeyPalCard. KeyPalWallet 🔵 Support #BTC#Nostr Protocol. 🔵 KeyPal Hardware Wallet supports #BTC#Taproot address. KeyPalWallet 🔵 Support zksync Era MultiSig wallet. 🔵 Support unisat_wallet's new signature protocol. 🔵 Support the entry points for more tools on the Assets page. 🔵 Support #Malaysian, #Danish, and #Hungarian. 👉https://tokenpocket.pro 【Details】https://twitter.com/TokenPocket_TP/status/1719309177485766701 【Powered By】Crypto Box

Desi Memes Funny Jokes

@desi_memes_funny_jokes · Post #5209 · 18.08.2024 г., 05:04

Related 😂💥 #viveknation⚡#danish_zehen#fambruh#fambruharmy#baroda#vadodara#travelgram#travelblogger#model#scarlettjohansson#danish#streetphotography#sections#style#exploremore#keepgoing#explore#ganeshnation🌙️#ourvadodara#foryou#reactionboi#keepmovingforward#keepitsimple#keepsupporting#keepfollowing👣#photography#instagood#motivation