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

Резултати

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

Търсене: #ireland

当前筛选 #ireland清除筛选
POPULAR FRONT

@popularxfront · Post #6122 · 01.05.2026 г., 18:26

🇮🇪#Ireland: A 66-year-old man has been arrested and charged after a car bomb exploded outside a police station in Dunmurry, west Belfast, last Saturday. The perpetrator allegedly hijacked a delivery driver’s car and forced him to drive it to the location, where a gas cylinder had been placed inside and later detonated remotely. While some sources report he has been charged with attempted murder, others say he is also facing terrorism-related offences. Police believe the attack may be linked to the dissident republican group known as the New IRA. (via The Guardian, BBC & birminghammail)

Hashtags

POPULAR FRONT

@popularxfront · Post #6034 · 25.04.2026 г., 23:42

🇮🇪#Ireland: A suspected car bomb has exploded outside a police station in Dunmurry, Northern Ireland. Regional reports, including those from the Belfast Telegraph, state that the vehicle had been hijacked before being driven next to the police station, where it subsequently exploded. Police have cordoned off streets in the Kingsway area and are treating the situation as a “security incident.” No further details have been released at this time. (via Belfast Telegraph & @spicebag32; 📹 via @NiResponsevids on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #5867 · 11.04.2026 г., 19:02

🇮🇪#Ireland: A man armed with a hammer breached security at Shannon Airport and climbed onto an American C-130 aircraft earlier today. Once on top of the plane, he attempted to damage it with the hammer. The man, who is in his 40s, was quickly arrested. No motive has been released, and his identity has not been disclosed.

Hashtags

POPULAR FRONT

@popularxfront · Post #5864 · 11.04.2026 г., 15:07

🇮🇪#Ireland: Up to 100 Gardaí were deployed to the Whitegate refinery, where protests have entered their fourth day amid rising fuel prices linked to the US and Israeli war against Iran. Footage shows Irish police forcibly attempting to remove trucks and tractors blocking the roads, with violent scenes breaking out. Officers can be seen kicking and stomping on farmers. Meanwhile, other videos appear to show protesters as young as 14 being pepper-sprayed by Gardaí.

Hashtags

POPULAR FRONT

@popularxfront · Post #5837 · 09.04.2026 г., 12:30

🇮🇪#Ireland: The Irish Army is set to be deployed across the country to remove heavy & agricultural vehicles blocking fuel depots, as protests over fuel prices enter their third day. Slow-moving convoys are targeting these sites over increasing fuel prices caused by the US and Israeli war against Iran. Police are now treating these actions as “blockades", with Gardaí (Irish police) reportedly requesting the assistance of the Irish army. In a statement, the Irish Minister for Justice said that once the army is deployed, people should not complain about any damage caused during the removal. (via CNN & limerickleader)

Hashtags

POPULAR FRONT

@popularxfront · Post #4697 · 24.01.2026 г., 11:11

🇮🇪#Ireland: ONH members fired a volley of shots in the Currynerin area of Derry last week. A 31-year-old man was arrested in connection with the event (though later released on bail) and a vehicle was seized. The PSNI have promised to increase ‘reassurance patrols as well as house-to-house enquiries and vehicle checkpoints in response. Repost via @spicebag32

Hashtags

POPULAR FRONT

@popularxfront · Post #4036 · 02.12.2025 г., 09:58

🇮🇪#Ireland: A new Irish militant group calling itself the "New Republican Movement" has announced its formation. In a video, where all members are armed, a masked man lists several motivations for creating the group, mostly focusing on mass immigration. They threaten Irish politicians with "immediate action", claiming to have their addresses. (via @real_eire on X)

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1298 · 10.02.2025 г., 13:14

📍Ireland’s architectural heritage – a journey back to the 19th century🇮🇪 📏 📏 📏 📏 📏 📏 📏 📏 🌟With its stunning castles, ancient ruins, and charming Victorian buildings, Ireland offers a glimpse into the past, where history and beauty come together in every stone. 📏 📏 📏 📏 📏 📏 📏 📏 #Ireland🇮🇪@voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1200 · 19.12.2024 г., 13:14

📍Ireland’s architectural heritage – a journey back to the 19th century🇮🇪 📏 📏 📏 📏 📏 📏 📏 📏 🌟With its stunning castles, ancient ruins, and charming Victorian buildings, Ireland offers a glimpse into the past, where history and beauty come together in every stone. 📏 📏 📏 📏 📏 📏 📏 📏 #Ireland🇮🇪 @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #761 · 17.02.2024 г., 13:04

Ireland, Rock of Cashel 🇮🇪 The Rock of Cashel is one of the most visited landmarks in Ireland, also known as St. Patrick's Rock. It is also referred to as the Rock of Kings. ⛰ 🏰 Located in the ancient Celtic cathedral in County Tipperary, Ireland. The castle, built in the 4th century, was the royal residence of the provinces of southern Ireland; after 100 years, St. Patrick settled there. After Cromwell's army attacked, the castle complex became a symbol of the resilience and courage of the Irish people. The castle grounds still preserve residential buildings, structures for agricultural purposes, and the ruins of the cathedral. #Ireland @voyage

Hashtags

ПредишнаСтр. 1 от 4Следваща