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

Резултати

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

Търсене: #eritrea

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

@addisstandardeng · Post #21348 · 09.02.2026 г., 12:03

#Eritrea rejects #Ethiopia’s accusations as “false and fabricated” amid rising diplomatic tensions Eritrea has dismissed recent accusations by Ethiopia as “patently false and fabricated,” rejecting claims made by Ethiopia’s Foreign Minister and describing them as part of what it called a prolonged pattern of hostility toward Asmara. In a statement issued Monday, 09 February 2026 Eritrea’s Ministry of Information said the accusations were “astounding in tone and substance” and questioned what it described as the underlying motivations behind the claims. The statement characterized the allegations as “yet another deplorable act in a pattern and spiral of hostile campaigns against Eritrea for more than two years now.” https://addisstandard.com/?p=55101

Tibicen

@world_music_geek · Post #1186 · 28.03.2026 г., 18:03

Царь Давид играет на бегене. Из неизвестного эритрейского манускрипта. #begena#Eritrea

Addis Standard

@addisstandardeng · Post #21478 · 21.02.2026 г., 05:41

#Ethiopia faces renewed strain with #Tigray and #Eritrea Across the northern Tigray region, citizens are bearing the burden of political fractures and rising tensions. Diplomats are urging restraint amid a troop buildup along the borders with Tigray and neighboring Eritrea. A sense of anxiety is hard to miss in Tigray. Though the 2022 Pretoria peace agreement brought an end to fighting between the Ethiopian National Defense Force (ENDF) and the Tigray People's Liberation Front (TPLF), many in Tigray say life today is like walking on eggshells. The TPLF, once the dominant party in Ethiopia's ruling coalition (EPRDF) and the region's political anchor, has split into rival factions competing for influence, leaving residents unsure who truly speaks for them. The political division has created a vacuum. Meanwhile, Ethiopia's federal government accuses Eritrea of supporting the TPLF, an accusation the TPLF and Asmara deny. https://www.dw.com/en/ethiopia-faces-renewed-strain-with-tigray-and-eritrea/a-76056011

Addis Standard

@addisstandardeng · Post #21454 · 19.02.2026 г., 13:29

Rising tensions among #Ethiopia, #Eritrea, #Tigray Region raise fears of renewed conflict, International Crisis Group warns Tensions between Ethiopia’s federal government, Eritrea, and the Tigray region are rising sharply, raising concerns about a possible return to large-scale conflict three years after the end of the Tigray war, the International Crisis Group warned in a new analysis. The group said the fragile peace that followed the November 2022 Pretoria agreement faces multiple stress points and warned that miscalculation could trigger renewed violence with regional consequences. The report recalls that the war pitted the Tigray People’s Liberation Front against Ethiopian federal forces, Eritrean troops, and regional militias, leaving tens of thousands dead, hundreds of thousands displaced, and infrastructure heavily damaged. While the peace deal halted major fighting, the group said it left unresolved political and security tensions both within Tigray and across the Horn of Africa. According to the analysis, relations among the key actors have since deteriorated. Prime Minister Abiy Ahmed’s pursuit of sovereign sea access is viewed by Eritrea as a potential threat, while Addis Abeba has accused Tigrayan actors of coordination with Eritrean elements and local militias. Internal divisions in Tigray have also intensified, including rivalry between factions linked to Debretsion Gebremichael and those associated with former interim leader Getachew Reda, with sporadic clashes reported in disputed areas. The group added that broader regional dynamics heighten the risks. The ongoing conflict in Sudan, competing alliances involving Egypt, and allegations of links with the Rapid Support Forces could further complicate the security landscape. Despite rising tensions, Crisis Group noted signs of restraint, citing economic costs, military fatigue, and internal divisions as factors limiting immediate escalation. However, it warned that continued military posturing, proxy alignments, and unresolved territorial and political disputes could quickly destabilize the situation, urging urgent diplomatic engagement by African and international partners to prevent renewed conflict. https://www.crisisgroup.org/brf/africa/ethiopia-eritrea/b210-ethiopia-eritrea-and-tigray-powder-keg-horn-africa

Addis Standard

@addisstandardeng · Post #21107 · 17.01.2026 г., 11:12

#EU urges leaders to exercise responsibility amid #Ethiopia–#Eritrea tensions The European Union has called on Ethiopia and Eritrea to ease rising tensions through diplomacy and cooperation, warning against a return to conflict in the Horn of Africa. Speaking to journalists in Addis Ababa, Olaf Skoog, Deputy Secretary-General of the European External Action Service, said disputes should be resolved “through diplomacy in good faith,” as concerns grow over Red Sea security. Addressing escalating rhetoric between Addis Ababa and Asmara, particularly over access to the Red Sea, Skoog urged both sides to step back from confrontational language and pursue cooperative approaches. He said the EU is ready to support de-escalation efforts and act as an “honest broker.” On Somaliland, Skoog reaffirmed the EU’s support for Somalia’s sovereignty and territorial integrity, rejecting recognition and warning against actions that could further destabilize the region. Watch https://www.youtube.com/watch?v=YsYxNFHqJgM

123•••89
ПредишнаСтр. 1 от 9Следваща