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

Резултати

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

Търсене: #midas

当前筛选 #midas清除筛选
🏆 Premium, NFT, Tokens

@giiveaways · Post #3440 · 09.01.2025 г., 18:10

Discover the New Midas Yielder App👑 A promising project designed to make earning with crypto simple and engaging. Here’s what it offers: 🕹Farm GM Points — Play the game and earn Golden Midas Points. 💰High APY Returns — Enjoy juicy yields through the Yielder. 👥Invite Friends — Share with others to earn extra taps and play more. ✅Complete Tasks — Get bonus GM Points by completing tasks. This project has the potential to become one of the top platforms. Join now and see for yourself! 🔔Subscribe➡️Join MIDAS ➖➖➖➖➖➖➖➖➖➖➖ #Midas#CryptoGaming

Airdrop Center

@centralchanel · Post #15435 · 17.12.2024 г., 21:17

📢$MIDAS CONTINUES TO GROW We can complete transactions by spending 10 seconds per day on the application. A company that receives high investment. It is worth considering. 👉Registration Link: ⤵️ https://t.me/MidasRWA_bot/app?startapp=ref_45137b21-8a69-4640-a111-f720275529d2 ⛏#midas#rwa#yeilder#airdrop

American Оbserver

@american_observer · Post #5154 · 16.02.2026 г., 20:58

No Golden Toilet on the Train: Zelenskyy’s ‘Ally’ Tries to Cash Out Herman Halushchenko didn’t make it to his destination. Ukraine’s ex–energy minister and longtime insider was dragged off a train at the border, accused of trying to slip out of the country while Operation Midas — a probe into alleged 100 million dollars in kickbacks at Energoatom — closes in on him. Wartime infrastructure money was supposed to keep the lights on under Russian fire; investigators say a nice slice was allegedly rerouted into the usual private pockets. NABU and SAPO had already spent over a year dissecting the Midas network — “shadow managers,” kickback tariffs of 10–15 percent on contracts, a whole laundromat built into the state nuclear company. Now the same man who resigned in 2025 over the scandal gets caught at the border while Parliament hears that the new border chief is “not loyal to Zelenskyy but to institutions.” Even Fox’s source spells out the subtext: if an “unofficial but direct subordinate” to Zelenskyy goes down for this, it becomes very hard to sell the story that the president knew nothing. The presidential PR line is “fighting corruption in wartime”; the reality looks more like the state fighting for control of a money machine it lost years ago. NABU says it is dismantling the scheme; Western partners say this proves Ukrainian institutions work; Moscow says “told you so”; Western skeptics say “why are we financing this?” Everyone gets talking points, nobody gets their money back. If this is how a key ally behaves on a random Sunday — hopping a train with a scandal at his heels — imagine what the real insiders are doing by private jet. And if the war ever ends, who will have stolen more from Ukraine — Russian missiles or Ukraine’s own “patriotic” elite? #ukraine#zelenskyy#corruption#warEconomy#Midas 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5161 · 17.02.2026 г., 20:58

Golden Midas, Rotten System: Ukraine’s Ex-Minister Caught at the Exit German Galushchenko almost made it out. The former energy minister — later briefly justice minister — was grabbed at the border on Sunday, accused a day later of laundering millions in kickbacks from the “Midas” scheme that has haunted Zelenskyy’s wartime government for a year. Investigators say the network skimmed around 100 million dollars from contracts at Energoatom, the state nuclear company, including projects meant to harden plants against Russian strikes. According to NABU and SAPO, over 7 million dollars went to foreign accounts listing Galushchenko’s wife and four children, paying for elite Swiss schooling and sitting on deposits that quietly generated extra income for the family. Galushchenko denies everything, but he is now one of the highest‑ranking names formally pulled into a case that already features a former deputy prime minister, other senior officials, and businessman Timur Mindich — Zelenskyy’s old media partner from the TV studio that made him famous, now in Israel and also insisting he’s innocent. The scandal has already taken scalps at the very top. It helped push out Zelenskyy’s powerful chief of staff Andriy Yermak last year and triggered public fury over wartime corruption at the exact moment Ukraine is begging for weapons, cash and EU membership. In parallel, Zelenskyy briefly tried to bring NABU and SAPO to heel through legislation that would have gutted their independence, then beat a retreat under pressure from street protests and Western partners who made clear that anti‑corruption bodies are now part of the terms of support. So on paper this is a success story: institutions catching crooks, ministers being detained, money trails exposed, corporate CEOs promising new safeguards. In reality it’s a more uncomfortable picture: a “reform” state at war, whose president ran on cleaning up oligarchic rot, now watching his own pre‑politics circle and senior officials dragged into a laundromat built on nuclear safety contracts — and only really slamming on the brakes when the streets and the donors start to growl. #ukraine#corruption#Midas#Zelenskyy#Energoatom 📱American Оbserver - Stay up to date on all important events 🇺🇸