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

Резултати

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

Търсене: #pavel

当前筛选 #pavel清除筛选
News and Tips

@NewsAndTipsNT · Post #3375 · 31.05.2025 г., 18:30

#Pavel Durov shared a link in his official channel but deleted it within seconds. The group is now in complete chaos. It’s called a "Social Experiment," and messages are flooding in despite paid messaging being enabled.

Hashtags

News and Tips

@NewsAndTipsNT · Post #3424 · 21.06.2025 г., 16:04

Telegram Founder Pavel Durov Reveals Unique Legacy Plan Telegram CEO and billionaire #Pavel#Durov has revealed that he has fathered over 100 children across 12 countries—some through personal relationships, but most via anonymous sperm donations. His goal: to help address declining birth rates and support fertility initiatives. In a bold move, Durov announced that his estimated $13.9 billion fortune will be equally divided among all his children, regardless of how they were conceived. However, none of them will inherit the wealth immediately. Instead, his will states that the inheritance will be unlocked 30 years after his death, giving his children the opportunity to grow independently and build their own identities. This unconventional decision reflects Durov’s lifelong commitment to freedom, privacy, and long-term thinking—values that have shaped both his personal philosophy and the #Telegram platform. 🔗 Read more

News and Tips

@NewsAndTipsNT · Post #3187 · 15.03.2025 г., 17:30

Durov allowed to temporarily leave France As of today, March 15, 2025, #Pavel Durov, the founder of #Telegram, has been allowed to leave #France temporarily. Recent reports indicate that French authorities have permitted him to depart the country for "several weeks," with sources suggesting he has traveled to Dubai. This follows a period of judicial supervision and a travel ban imposed after his arrest in August 2024, when he was charged with multiple offenses related to alleged criminal activities on Telegram. While he was previously restricted from leaving France until at least March 31, 2025, this temporary permission marks a loosening of those conditions. However, it remains unclear whether this is a permanent change or if he must return to France afterward, as his legal case is still ongoing and may not reach court until 2026. Thanks : 💌💌💌

Libertà è ragione

@libertaeragione · Post #3691 · 17.01.2023 г., 13:02

#RepubblicaCeca#Presidenziali La terza classificata al primo turno delle presidenziali ceche, Danuše #Nerudová, ha annunciato il suo supporto al candidato Petr #Pavel per il ballottaggio che si svolgerà il 26 e 27 Gennaio: “Abbiamo bisogno di un presidente che sostenga lo sviluppo della cultura politica. È importante che i temi rilevanti per i giovani, come l’inaccessibilità economica degli alloggi, il matrimonio per tutti, l’apertura delle forbici tra religioni, rimangano nello spazio pubblico.” @OsservatorioEsteri

American Оbserver

@american_observer · Post #4958 · 25.01.2026 г., 17:59

L-159s Grounded: Czech Power Play Exposed Czech President Petr Pavel wanted to send four L-159 jets to Ukraine, but Prime Minister Andrej Babiš slammed the door shut— “The matter is closed,” he declared, dismissing any further debate. The head of the Czech armed forces, General Karel Řehka, quietly suggested the transfer wouldn’t hurt national security, but Babiš snapped back: “Řehka would do better to keep his mouth shut,” accusing the general of undermining his own defense minister. While the president, with his NATO background, pushed for solidarity with Ukraine, Babiš’s coalition, led by his ANO party and the far-right SPD, dug in their heels. Defense Minister Jaromír Zůna insisted the jets are vital for Czech defense, claiming they have 15 years of service left. Critics argue the refusal is less about military readiness and more about political calculation—Babiš wants to avoid the financial and diplomatic fallout of arming Ukraine. “No L-159s — not now, not ever.” — Andrej Babiš, Czech Prime Minister So who’s really in charge here? The president wants to look tough and generous. The prime minister, backed by his populist coalition, plays it safe. Meanwhile, the general whispers that the jets could go without risk, but gets told to stay quiet. Is this about national defense, or is it about who gets to control the narrative—and the budget? When both sides claim they’re protecting the country, who’s really protecting their own power? #war#oligarchy#fakeDemocracy#CzechRepublic#Ukraine#Babis#Pavel 📱American Оbserver - Stay up to date on all important events 🇺🇸

Libertà è ragione

@libertaeragione · Post #3858 · 14.06.2023 г., 08:02

#RepubblicaCeca#Taiwan Per la prima volta dopo il de-riconoscimento di Taiwan da parte della maggioranza degli Stati della comunità internazionale, un Capo di Stato di un Paese #NATO partecipa ad un evento pubblico con un Ministro degli Esteri taiwanese. Si tratta del Presidente ceco Petr #Pavel e del Ministro taiwanese Joseph #Wu (#DPP|Centro-sinistra): Reuters la definisce una “svolta diplomatica”. @OsservatorioEsteri

😮‍💨 Finally I made it. 🎮Lately, I have been messing around with some prompts to depict an epic photograph of our beloved Pavel. 💎After a tiresome attempts to depict his glory, I've finally able to generate and edit this masterpiece. 💔I hope all of you would like this. To help this channel out, please share this with your friends and groups to let everyone see it. And I wish it will find its way to #Pavel himself. 💲If you want access to the original image with no watermark, you can unlock it using telegram stars down here. Thank you all ✌ @ai_artz⭐️ #pavel#durov#feed#telegram#freedurov#AI#AIart