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

Резултати

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

Търсене: #citizenship

当前筛选 #citizenship清除筛选
Borkena

@borkena · Post #5777 · 14.02.2026 г., 17:58

Dehumanization, structural violence and the collapse of citizenship : A sociological and social-psychological analysis of the situation of the Amhara population in Ethiopia። Read more. https://borkena.com/2026/02/14/dehumanization-structural-violence-and-the-collapse-of-citizenship-a-sociological-and-social-psychological-analysis-of-the-situation-of-the-amhara-population-in-ethiopia/#Ethiopia#politics#Amhara#citizenship

🛂🇺🇸RECORD 6,700 AMERICANS RENOUNCE CITIZENSHIP 🔹 2025 sees highest exodus in US history as wealthy Americans flee to tax havens overseas 🏝️💰 🔹 Switzerland, Singapore, UAE top destinations with total wealth transfer of $2.3 trillion 📊✈️ 🔹 IRS crackdown on overseas accounts drives surge alongside political polarization fears 🏛️⚖️ 🔹 Immigration lawyers report 300% increase in consultation calls from high-net-worth clients 📞💸 When the rich start running, what does that say about where we're headed? 🤔💭 American Dream or American Nightmare? You decide 🇺🇸🔥 #USNews#Citizenship#Taxes#WealthFlight @america

BadVolf

@badvolfnews · Post #1516 · 16.03.2024 г., 18:08

🇷🇺❤Today marks a monumental chapter in my journey, as I proudly announce that I've become a Russian citizen and participated in my very first election here. This significant step is more than just a formal process; it symbolizes my deep connection and commitment to my new home, its people, and its future. As I stood in the polling station, casting my vote, I was overwhelmed with a sense of responsibility and belonging. This act of civic engagement is a powerful reminder of the role we each play in shaping the course of our community and nation. It's a day filled with emotions - pride, hope, and anticipation for what lies ahead. Joining my fellow citizens in this democratic process, I felt a strong bond of unity and shared purpose. Here's to embracing new beginnings, contributing to the collective future, and making every moment count in this beautiful journey. #Citizenship#ElectionDay#NewChapter#RussianCitizen🇷🇺✨

NIDO Russia (НИДО)

@nido_russia · Post #1827 · 17.10.2024 г., 06:26

Documentation News: In Moscow, two men who failed to register for military service were stripped of their citizenship This was reported on the Telegram channel by the official representative of the Russian Ministry of Internal Affairs Irina Volk. Volk recalled that, in accordance with Russian law, every man with acquired citizenship must register for military service within two weeks. Violators face punishment. Our advise to members: 1. Comply with local laws. Register for military service if you are of draft age and have acquired citizenship. 2. Similarly, if you are of draft age and have no plans to register for military service, then you should consider not applying for citizenship. Like the popular saying goes, you can't eat your cake and have it. https://t.me/nido_russia/1827 #laws#naturaliation#documentation#passport#citizenship Source: Life(.ru)

NIDO Russia (НИДО)

@nido_russia · Post #1675 · 28.06.2024 г., 15:14

The Chairman of the Investigative Committee of the Russian Federation, Alexander Bastrykin, stated that more than 30 thousand migrants who recently received Russian citizenship and did not register for military service were "caught" in the country, about 10 thousand of them were sent to the special operation zone. Along with citizenship, according to him, they received "not only rights, but also a constitutional obligation to protect the country that accepted them." “Comrades, digging trenches and creating fortifications requires really good working hands. Today they are joining the ranks of our rear units that are building these fortifications.” he said. Migrants seeking citizenship must bear this in mind. Subscribe: @nido_russia https://t.me/nido_russia/1675 Sources: TASS, Yugopolis #citizenship#naturalisation#naturalization#Russia#Ukriane#svo

NIDO Russia (НИДО)

@nido_russia · Post #1661 · 23.06.2024 г., 12:26

📢 On July 1, 2024 , a law comes into force that provides for a 20% indexation of state fees. So from 1 July, state fees for a number of state services will increase: 🔸 Temporary residence permit: from 1600 to 1920 Rubles; 🔸 Residence permit: from 5000 to 6000 Rubles; 🔸 Russian citizenship: from 3500 to 4200 Rubles; 🔸 Registration at the place of residence: from 350 to 420 Rubles; 🔸 Visa renewal: from 1000 to 1200 Rubles; 🔸 Issuance of invitations to the Russian Federation: from 800 to 960 Rubles; 🔸 Work permit: from 3500 to 4200 Rubles; 🔸 Permit to hire foreign workers: from 10,000 to 12,000 Rubles; 🔸 Travel passport; from 5000 to 6000 Rubles; 🔸 Travel passport up to 14 years old: from 2500 to 3000 Rubles. ❗️ Make all relevant applications before 1 July, to avoid paying the new rate. #state_fee#госпошлина#TRP#RP#RVP#VNZH#citizenship#nido#nidorussia Subscribe: @nido_russia https://t.me/nido_russia/1661