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

Резултати

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

Търсене: #sudan

当前筛选 #sudan清除筛选
White House Watch

@WhiteHouseWatch · Post #18049 · 09.03.2026 г., 18:49

#Sudan: Il Segretario di Stato Marco Rubio ha annunciato con un post su X che la branca sudanese di Fratellanza Musulmana è stata designata come "organizzazione terroristica estera" e "organizzazione terroristica particolarmente designata" dal Dipartimento di Stato americano, in quanto supportata ed addestrata dalle IRGC iraniane.

Hashtags

— 🇸🇩: Last week the UAE backed RSF militia kidnapped a girl from the Nahda neighbourhood of Nyala and forcibly detained her for five days. During this time, the victim was subjected to the most horrific forms of torture and gang rape, before being thrown onto a public road in a critical physical and psychological state. #Sudan @NewsfromSudan

Hashtags

POPULAR FRONT

@popularxfront · Post #5671 · 30.03.2026 г., 18:25

🇸🇩#Sudan: Two families (reportedly nine people) were killed after an artillery shell fired by the Rapid Support Forces (RSF) struck a residential neighborhood in the city of Dilling, South Kordofan State, yesterday. On March 28th, a partial blockade was reported in the area due to renewed clashes between the Sudanese Armed Forces and the RSF. The army was reportedly successful in repelling an attempted RSF advance. The rebels are attempting to re-establish control in the Kordofan area after the army broke an almost two-year-long siege in early January. (via @SudanTribune_EN on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #5054 · 20.02.2026 г., 09:50

🇸🇩#Sudan: Three aid workers were killed and four others were injured in a drone strike by the Rapid Support Forces (RSF) on an aid convoy in South Kordofan yesterday. The convoy, which was carrying food and other supplies, was hit while passing through the Kartala area. This would be the second strike on an aid convoy this month by the RSF. (via Al Jazeera)

Hashtags

POPULAR FRONT

@popularxfront · Post #4874 · 02.02.2026 г., 15:13

🇸🇩#Sudan: Sudanese Armed Forces have launched an offensive against Rapid Support Forces toward the Al-Rahad - Um Ruwaba axis in North Kordofan, capturing the Al-Uba area from RSF militants. Meanwhile, several drone strikes against RSF positions were also reported in Zalingei, western Sudan. (📹 via @Sudan_tweet on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4869 · 01.02.2026 г., 19:58

🇸🇩#Sudan: Aerial footage shows a drone operated by the Sudanese Armed Forces (SAF) dropping an explosive payload next to two trucks carrying Rapid Support Forces (RSF) militants. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #4832 · 31.01.2026 г., 10:27

🇸🇩#Sudan: Sudanese Armed Forces (SAF) have shot down three RSF kamikaze drones which were allegedly attempting to target civilian infrastructure in the city of Al-Ubayyid, North Kordofan State.

Hashtags

POPULAR FRONT

@popularxfront · Post #4820 · 30.01.2026 г., 11:37

🇸🇩#Sudan: Intense clashes continue between the Sudanese Armed Forces (SAF) and remnants of the Rapid Support Forces (RSF). Footage shows SAF Special Mission Forces (SMF) charging toward remaining RSF militants on the outskirts of South Kordofan, following weeks of heavy fighting in Dilling, where the RSF was recently pushed out. (📹 via @Sudanis0 on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4766 · 27.01.2026 г., 16:32

🇸🇩#Sudan: The Sudanese Armed Forces have reportedly broken through RSF lines and lifted the siege on the city of Dilling in South Kordofan after nearly two and a half years of blockade. The army says it reopened the Dilling road following intense clashes with RSF militants, claiming heavy losses were inflicted on the militia in both personnel and equipment. The RSF group has maintained a siege on Dilling since January 2024. (via @AfriMEOSINT & @Sudan_tweet on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4725 · 25.01.2026 г., 11:21

🇸🇩#Sudan: Rapid Support Forces (RSF) have recently shot down a SAF (Sudanese Armed Forces) drone. The drone was a Baykar Bayraktar TB2, which is supplied by Turkey. (via @war_noir)

Hashtags

POPULAR FRONT

@popularxfront · Post #4101 · 09.12.2025 г., 11:09

🇸🇩#Sudan: Videos show Rapid Support Forces (RSF) militants inside the Heglig oil fields and the SAF's 90th Brigade headquarters after taking full control of the area in West Kordofan, including the town and its oil infrastructure. Before the Sudanese Armed Forces pulled out, an official report states that operators in the area had already shut down their facilities and evacuated personnel to Unity State in South Sudan. Meanwhile, the oil field had been inactive since August, when a drone strike prompted authorities to suspend all work at the site. (via Al Jazeera; 📹 via @AFRIMEOSINT on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4013 · 29.11.2025 г., 19:21

🇸🇩#Sudan: Sudanese Armed Forces have shelled multiple Rapid Support Forces (RSF) positions across several axes in Kordofan. Reports also indicate Sudanese drone strikes earlier today in Al-Fula and Geneina in West Kordofan. In the footage, a reconnaissance drone can be seen coming down near the soldiers. (Via @Sudan_tweet on X)

Hashtags

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