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

Резултати

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

Търсене: #equality

当前筛选 #equality清除筛选

डॉ. बाबासाहेब अम्बेडकर का सामाजिक न्याय और समानता विज़न, एक समावेशी व कल्याणकारी समाज की दिशा में सरकार के प्रयासों को मार्गदर्शन प्रदान कर रहा है। #AmbedkarJayanti#SocialJustice#Equality

Paris officially ended the law requiring women to get police permission to wear pants on January 31, 2013. This change gave women the freedom to wear pants without asking for approval. 👖🚶‍♀🤸‍♀ [Read more] @googlefactss #Paris#WomenRights#History#Fact#Equality

The Bechdel-Wallace Test checks if a movie or story has at least two women who talk to each other about something other than a man. It shows how women are often missing or only shown in relation to men. Many films fail this simple test, highlighting the need for better female representation in media. 👱‍♀👩‍🦳🚫🤷‍♂ [Read more] [See more] @googlefactss #BechdelWallaceTest🎬#WomenInFilm#Representation#Equality

Egalitarianism is the belief that all people are born equal and should be treated equally. It supports equal rights, equal opportunities, and equal treatment. It includes economic equality, legal equality, political equality, and social equality. It teaches that all people have equal moral worth. ⚖️👥📚 [Read more] @googlefactss #Egalitarianism#Equality#HumanRights#Politics#SocialStudies

50 ዓመት የሴቶች ድምጽ ለእኩልነትና ለበለጸገች ኢትዮጵያ ******** የዘንድሮውን ዓለም አቀፍ የሴቶች ቀን ስናከብር፣ ባለፉት 50 ዓመታት ሴቶች ለሀገራችን ሁለንተናዊ ዕድገትና እኩልነት ያበረከቱትን ተጋድሎና ድል እያሰብን ነው። ለሀገር ኩራት ለሆናችሁ፣ ለጥንካሬያችን መሰረት እና ለበለጸገች ኢትዮጵያ ዋልታ ለሆናችሁ ሴቶች በሙሉ እንኳን አደረሳችሁ! #March8#InternationalWomensDay#IWD2026#EthiopianWomen#Equality#ሴቶች#ኢትዮጵያ

Gynecocracy = women rule. Gynocracy = women‑centered policy. Both disrupt old power structures — but justice needs checks, inclusion, and rights for everyone. [Learn more here] @googlefactss #PowerShift#Gynecocracy#Gynocracy#Equality#CivicThought

🇿🇦 This year’s opening meeting of the #G20 Foreign Ministers as part of the debut presidency of South Africa – a friendly country whose stance is in accord with #Russia’s – will take place in Johannesburg on February 20-21, a landmark event not only for Pretoria, but also for the entire African continent, which will host G20 events for the first time. 🇷🇺 Foreign Minister Sergey Lavrov plans to lead the Russian delegation. It is expected that most of the members of this major economic forum, as well as a wide range of invited states and international organisations, will be represented at a similar level. ☝️ The meeting will open with an address by President of South Africa Cyril Ramaphosa, which will set the general tone for discussing global challenges and threats. The discussion will particularly focus on the international situation, which is alarmingly deteriorating under the impact of the confrontational policy by the neoliberal Western elites. The participants will consider the current integrity and effective functioning of the global economic system. The priorities stated by the South African presidency are designed to encourage economic growth, reduce inequality and imbalances, and ensure equitable access to financing for countries in the Global South. 🤝 The South African presidency theme highlighting “solidarity, equality and sustainability” will provide solid framework for the consultations, essentially continuing in the same vein as its predecessors in 2022-2024 – Indonesia, India and Brazil, all of them Global Majority countries. In particular, this refers to the G20’s significant contribution during this period to strengthening the foundations of the multipolar world and making global economic institutions more democratic in the interests of new non-Western centres of influence, primarily the expanded #BRICS group. ❗️The upcoming anniversaries, such as the 80th anniversary of Victory in World War II and the foundation of the #UN, as well as the 65th anniversary of the Russia-sponsored Declaration on the Granting of Independence to Colonial Countries and Peoples adopted by the UN General Assembly to ensure Africa’s independence, should be seen as key benchmarks for the exchange of views. 👉 In his remarks, the Minister will provide a detailed analysis of the international situation underscoring the root causes of the current crisis, and outline specific steps to overcome the destructive phenomena. The Russian side will reaffirm its stance in favour of preserving the United Nations’ central role in global affairs. We will speak in support of strict compliance with the principles of the UN Charter in their entirety and interconnection. We will insist that there is no alternative to respectful interstate cooperation and ensuring equal and indivisible security for all. We will call for keeping the global economy open, rejecting trade wars, illegitimate sanctions and other unfair competition practices. We will cite examples of supranational associations that practice honest and productive cooperation without diktat or blackmail, such as the #EAEU, the #SCO and #BRICS. We will share the details of implementing the Russia-sponsored Greater Eurasian Partnership initiative. The Minister is expected to meet with several counterparts on the sidelines of the meeting. #G20SouthAfrica#BetterAfricaBetterWorld#solidarity#equality#sustainability

Crypto M - Crypto News

@CryptoM · Post #64717 · 09.04.2026 г., 15:44

🚀 NATO Shifts Toward Balanced Transatlantic Partnership, Says Mark Rutte NATO is transitioning from an 'unhealthy co-dependence' on the United States to a more balanced transatlantic alliance, according to Mark Rutte. Bloomberg posted on X that Rutte's comments came in response to U.S. President Donald Trump's criticism of the group regarding the Iran war. Rutte emphasized the importance of a partnership grounded in equality between Europe and the U.S. within NATO. #NATO#TransatlanticPartnership#MarkRutte#US#Europe#Alliance#InternationalRelations#Defense#Geopolitics#Equality

#Beijing_Review🇨🇳📕[PDF]⬇️ 30 #October2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines This issue honors the #UnitedNations at 80, calling it a cornerstone of global cooperation. The cover story explores China’s role as a builder of inclusive #GlobalGovernance and its blueprint for shared progress. From women’s empowerment in #Agriculture to structural resilience and economic elasticity, features reveal the new dynamics shaping the #GlobalSouth. Insights on #ChinaUSRelations, the #ChinaMexico partnership, and Hainan’s innovation wave highlight how diplomacy and commerce interconnect. The culture section revives #SilkRoad heritage and Beijing’s ancient treasures. A visionary issue linking history, equality, and collective resilience for a changing world. #Sustainability#Equality#UN80#AsiaVoice#BRInsights