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

Резултати

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

Търсене: #germany

当前筛选 #germany清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #11899 · 13.03.2026 г., 10:02

#Germany 🦇 A €200 million railway section in Germany is stalled because of bats In Baden-Württemberg, residents of the Calw district are waiting for train traffic to resume on a railway section and tunnel whose repair took decades and cost over €200 million. But there is one insurmountable obstacle — more than 1,000 bats living in the tunnel between Calw and Weil der Stadt stations. These animals are under strict protection, so they cannot be removed. An unusual solution was found — to build a protective concrete wall inside the tunnel. On one side, trains will run; on the other, the bats can sleep undisturbed. This will require 300 concrete blocks and about €80 million. Additionally, ultrasonic sensors will be installed to help the bats navigate their new shelter. However, it is still unknown how quickly they will adapt to the new structure, and this will determine when the tunnel can reopen. ⚠️ This is not an isolated case: in Kiel, 900 bats prevented the demolition of an old swimming pool because the animals refused to move to new shelters. 🦇 Sometimes even very small creatures can have a big impact on massive infrastructure projects! ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

Hashtags

POPULAR FRONT

@popularxfront · Post #5751 · 04.04.2026 г., 19:33

🇩🇪#Germany: Men in Germany aged 17 to 45 are required to obtain approval from the Bundeswehr (German armed forces) career center before leaving the country for more than three months, whether for study, work, or travel. The provision was included in a broader military reform package approved in December, but went largely unnoticed until it was reported by the German outlet Frankfurter Rundschau. The measure received little public attention at the time and was not widely discussed. Despite the law being in place, it remains unclear how this requirement will be implemented in practice, particularly for individuals who were unaware of it or who have already left the country.

Hashtags

"We cannot remain silent. No-one can remain silent when there is an ongoing genocide and when people are denied the most basic human needs ... To stand with Palestine is to be human." Greta Thunberg calls out Israel's genocide during a speech in Leipzig, #Germany. https://t.me/YediotNewsChat

Hashtags

International Geographic

@internationalgeographic · Post #5479 · 07.03.2025 г., 23:30

Heidelberg, #Germany🇩🇪 Heidelberg was not affected by the bombing of the Second World War, so it was preserved in its original medieval form - a castle, numerous churches and abbey, ancient streets.

Hashtags

International Geographic

@internationalgeographic · Post #5477 · 07.03.2025 г., 04:22

Nuremberg, #Germany🇩🇪 Every year in Nuremberg, the largest Christmas fair is held throughout Europe. Nuremberg is the city of inventors. It was he who gave the world things such as pocket watches, a globe, a compass, a pelting and a current machine.

Hashtags

POPULAR FRONT

@popularxfront · Post #4567 · 17.01.2026 г., 21:32

🇩🇪#Germany: A knife attack took place during an anti-Iranian regime protest in Hamburg. A man went on a stabbing spree targeting protesters, reportedly deliberately targeting anti-regime demonstrators. He managed to stab two protesters. One victim is in serious condition in hospital, while the second received medical aid at the scene after being stabbed in the leg. (via @froopashee2)

Hashtags

POPULAR FRONT

@popularxfront · Post #4208 · 19.12.2025 г., 15:56

Repost via @ben_ditto on IG 🇩🇪#Germany: Cockroach swarm agents 🪳 Swarm Biotactics, a deep tech start-up based in Kassel, Germany, specialising in “bio-robotics”: putting miniature sensor backpacks on cockroaches and then sending these as swarms into environments inaccessible for conventional robots, drones, or humans such as collapsed structures following natural disasters, GPS-denied areas, or contested warfare zones. The swarm of roaches act as real-time data agents 🪳 The company has received €13 million in funding so far from a consortium of international investors, including Vertex Ventures US, Possible Ventures, and Capnamic 🪳 Footage of cockroaches taken from 60 Minutes on CBS.

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1524 · 08.08.2025 г., 12:14

❄️ A breathtaking winter at Lake Eibsee! 🏔️ 🟠Snowy peaks, crystal-clear water, and a magical winter wonderland. Simply stunning! 📏 📏 📏 📏 📏 📏 📏 📏 #Germany | @voyage

Hashtags

123•••10•••1617
ПредишнаСтр. 1 от 17Следваща