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

Резултати

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

Търсене: #solidarity

当前筛选 #solidarity清除筛选
Venezuelanalysis

@venanalysis · Post #1992 · 30.05.2025 г., 19:02

📝 INTERVIEW | Venezuela’s Participatory Democracy and the Struggle Against Imperialism: A Conversation with Alison Bodine In the latest VA interview, international observer and activist Alison Bodine shares her reflections on Venezuela’s May 25 elections. She highlights the country’s participatory democracy, where political engagement goes far beyond the ballot box. Bodine also critiques the role of mainstream media and calls for coordinated international solidarity to confront US and Canadian sanctions. “Seeing the Bolivarian Revolution in action has profoundly shaped my political views,” she states. 🔗 Read the full interview here: https://venezuelanalysis.com/interviews/venezuelas-participatory-democracy-and-the-struggle-against-imperialism-a-conversation-with-alison-bodine/ #LegislativeRegionalElections2025#Sanctions#Solidarity

Venezuelanalysis

@venanalysis · Post #2073 · 23.08.2025 г., 20:39

📝 INTERVIEW | Empire, Colonialism and Solidarity: A Conversation with Nick Estes Historian and activist Nick Estes traces the continuities between US settler colonialism and its foreign interventions. He notes that attacks on Venezuela, Cuba, and Nicaragua reflect the same dispossession and violence historically inflicted on Indigenous nations in North America. Estes also highlights the integration of Indigenous communities into the Bolivarian process: the Pemón, for example, receive formal community healthcare training, vote by consensus, and have representation in Venezuela’s National Assembly, protections US Indigenous peoples do not have. 🔗 Read the full interview here: https://venezuelanalysis.com/interviews/empire-colonialism-and-solidarity-a-conversation-with-nick-estes #Imperialism#IndigenousPeoples#Solidarity

Venezuelanalysis

@venanalysis · Post #1854 · 16.01.2025 г., 21:21

Venezuelan President Nicolás Maduro celebrated the upcoming Hamas-Israel ceasefire, calling it a step toward peace and global diplomacy. The agreement, set to begin on January 19, 2025, includes: A 6-week cessation of hostilities, Israeli forces' withdrawal from northern Gaza and a prisoner exchange between Hamas and Israel. Maduro emphasized Venezuela's solidarity with Palestine and urged respect for life and international law. Meanwhile, humanitarian aid and discussions on Gaza's governance are set to follow. Read the full story here: https://venezuelanalysis.com/news/palestine-stopped-the-israeli-terrorist-regimes-genocide-venezuela-welcomes-ceasefire/ #Palestine#Peace#Solidarity

የሶማሊያው ፕሬዝዳንት ሀሰን ሼክ መሀሙድ በጋሞ ዞን በደረሰው አደጋ የተሰማቸውን ሀዘን ገለጹ ******************* የሶማሊያ ፕሬዝዳንት ሀሰን ሼክ መሀሙድ በደቡብ ኢትዮጵያ ክልል ጋሞ ዞን በደረሰው የመሬት መንሸራተትና የጎርፍ አደጋ ሕይወታቸውን ላጡና ለተጎዱ ዜጎች የተሰማቸውን ሐዘን ገልጸዋል። ፕሬዝዳንት ሀሰን ሼክ መሀሙድ ለጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) ባስተላለፉት የሐዘን መግለጫ መልዕክት፣ለኢትዮጵያ መንግሥትና ሕዝብ ልባዊ መጽናናትን ተመኝተዋል። ፕሬዝዳንቱ በአደጋው ሕይወታቸውን ላጡ ወገኖች ቤተሰቦችና በጉዳቱ ለተጎዱ ወገኖች ሁሉ ያላቸውን ጥልቅ ስሜትና አጋርነት ገልጸዋል። ሶማሊያ በዚህ አስቸጋሪ ወቅት ከኢትዮጵያ መንግሥትና ሕዝብ ጎን በጽናት እንደምትቆምም ፕሬዝዳንት ሀሰን ሼክ መሀሙድ አረጋግጠዋል። #EthiopianBroadcastingCorporation#Ethiopia#Somalia#Solidarity#Landslide

EU in Kazakhstan 🇪🇺🇰🇿

@euinkazakhstan · Post #124 · 25.02.2022 г., 08:39

Today, in Nur-Sultan, the Embassy of Poland, as a current chair country at the OSCE, organized a special meeting in #solidarity and full #support for the sovereignty and territorial integrity of #Ukraine. Charge’Daffaires a.i. of European Union in Kazakhstan Maciej Madalinski présented the audience the position of the EU voiced recently by the HRVP Josep Borrell on behalf of the EU. Also, French Ambassador to Kazakhstan Didier Canesse presented the Council’s position. *** Бүгін Нұр-Сұлтанда ЕҚЫҰ-ға төрағалық ететін Польша елшілігінің ұйымдастыруымен Украинаның егемендігі мен аумақтық тұтастығына ынтымақтастық пен толық қолдау білдіру мақсатында арнайы жиын өтті. Қазақстандағы ЕО Өкілдігінің Уақытша сенімді өкілі Мачей Мадалински Еуроодақтың Жоғары өкілі Жозеп Боррелдің жақында айтылып өткен ЕО ұстанымымен таныстырды. Сондай-ақ, Кеңестің ұстанымын Францияның Қазақстандағы Елшісі Дидье Канесс қауым назарына ұсынды. *** Сегодня в г. Нур-Султан состоялась специальная встреча, организованная Посольством Польши, как страны-председателя ОБСЕ в знак солидарности и полной поддержки суверенитета и территориальной целостности Украины. Временный поверенный в делах Представительства ЕС в Казахстане Мачей Мадалински представил позицию Евросоюза, недавно озвученную Верховным Представителем Жозепом Боррелем от имени ЕС. Также позицию Совета представил Посол Франции в Казахстане Дидье Канесс. #StandwithUkraine

Venezuelanalysis

@venanalysis · Post #2071 · 23.08.2025 г., 05:37

📰 NEWS | ALBA-TCP Condemns US Military Buildup Near Venezuela as China and Regional Allies Back Maduro An extraordinary summit of the ALBA-TCP alliance condemned the US' military buildup in the Caribbean to threaten Venezuela and ratified the region's commitment to peace. China likewise criticized Washington's escalation and urged respect for international law. Follow the link to read the report: https://venezuelanalysis.com/news/alba-tcp-condemns-us-military-buildup-near-venezuela-as-china-and-regional-allies-back-maduro/ #Venezuela#ALBA#China#Solidarity

Venezuelanalysis

@venanalysis · Post #2239 · 11.01.2026 г., 22:43

🖊OPINION | Who Is Really Running Venezuela? Following the January 3 bombings and kidnapping of President Nicolás Maduro, US officials have paraded making claims that Washington will assume some sort of colonial tutelage over Caracas. In this article, activists Medea Benjamin and Nicolas Davies look back at the US' aggression against Venezuela and the reaction from the Venezuelan government. Read the article here: https://venezuelanalysis.com/opinion/who-is-really-running-venezuela/ #TrumpAdministration#Venezuela#NeoColonialism#Solidarity

Venezuelanalysis

@venanalysis · Post #2074 · 24.08.2025 г., 22:02

🎙PODCAST | Is the US Preparing to Invade Venezuela? The US war drums are beating louder with a Caribbean military deployment, but Caracas has responded with defiance and mobilization. In our latest podcast episode, host José Luis Granados Ceja is joined by fellow VA member Andreína Chávez Alava to take stock of recent US policies against Venezuela, including dubious "narco-terrorism" charges and a crackdown on migrants. Follow the link to subscribe and listen: https://www.patreon.com/posts/137258196 #Venezuela#AntiImperialism#Resistance#Solidarity

Venezuelanalysis

@venanalysis · Post #2180 · 19.11.2025 г., 18:18

📰 NEWS | Venezuela Allies Urge US to Cease Military Hostilities, Warn of ‘Spill-Over Effect’ The Non-Aligned Movement and the Group of Friends in Defense of the UN Charter issued statements condemning the US military escalation in the Caribbean, warning that any attack on Venezuela could trigger a regional “spill-over effect.” They also raised concern over the US 22nd Marine Expeditionary Unit conducting joint drills with Trinidad and Tobago and noted that Washington will designate the alleged “Cartel de los Soles” as a Foreign Terrorist Organization on November 24, despite the absence of court-tested evidence. Read the full report here 👉🏾https://venezuelanalysis.com/news/venezuela-allies-urge-us-to-cease-military-hostilities-warn-of-spill-over-effect/ #Caribbean#UNCharter#Solidarity#USVenezuelaRelations

ዮርዳኖስና ቱርክዬ በጋሞ ዞን በደረሰው አደጋ ለኢትዮጵያ ያላቸውን ሐዘን ገለጹ ************************ የዮርዳኖስ የውጭ ጉዳይ ሚኒስቴር በጋሞ ዞን በደረሰው የጎርፍ መጥለቅለቅ እና የመሬት መንሸራተት አደጋ ለኢትዮጵያ መንግሥትና ሕዝብ የተሰማውን ጥልቅ ሐዘንና ልባዊ አጋርነት ገልጿል። በደቡብ ኢትዮጵያ ክልል በጣለው ከባድ ዝናብ ምክንያት የተከሰተው ይህ አደጋ ለሰው ሕይወት መጥፋትና መፈናቀል ምክንያት በመሆኑ፣ የዮርዳኖስ መንግሥት በዚህ አስቸጋሪ ወቅት ከኢትዮጵያ ጎን መቆሙን የሚኒስቴሩ ቃል አቀባይ አምባሳደር ፉአድ አል-ማጃሊ አረጋግጠዋል። አምባሳደሩ ለተጎጂ ቤተሰቦች መጽናናትን የተመኙ ሲሆን፣ አደጋ ለደረሰባቸውም ፈጣን ማገገምን እንዲሁም የጠፉ ዜጎች እንዲገኙ ያላቸውን ምኞት ገልጸዋል። በተመሳሳይ የቱርክዬ መንግሥት በአዲስ አበባ በሚገኘው ኤምባሲዋ ሰንደቅዓላማዋን ዝቅ አድርጋ እንዲውለበለብ በማድረግ ለደረሰው አደጋ ያላትን ጥልቅ ሐዘንና አጋርነት ገልጻለች። ይህ ዓለም አቀፍ የሐዘን መግለጫና አጋርነት በኢትዮጵያ ላይ ለደረሰው አደጋ ያለውን ትኩረትና የወንድማማችነት ትስስር የሚያሳይ ነው። በቢታኒያ ሲሳይ #EthiopianBroadcastingCorporation#Ethiopia#Gamo#Jordan#Türkiye#Solidarity

Venezuelanalysis

@venanalysis · Post #2009 · 20.06.2025 г., 19:59

📰 NEWS | Venezuelans March to Show Unwavering Solidarity With the Iranian and Palestinian Peoples Thousands of Venezuelans took to the streets on Thursday to express support for Iran and condemn Israel's ongoing military escalation in the region. Iranian ambassador Ali Chegini praised Venezuela for being on the right side of history in backing his country's right to self-defense. 🔗 Full story here: https://shorturl.at/3EyRg #Iran#Resistance#AntiImperialism#Solidarity

Sos Donbass

@sos_donbass · Post #1391 · 25.11.2024 г., 12:11

🎄Offrons un Noël aux Enfants du Donbass Comme vous le savez, Noël est un moment de partage et de générosité, et nous avons le pouvoir de faire une différence dans la vie de ces enfants qui méritent tant de bonheur. 💝Nous avons pour objectif de rassembler des fonds pour acheter au moins 300 coffrets cadeaux en Russie, contenant des bonbons dans un emballage musical. 💶Le coût d'un coffret est de 4,3€, ce qui nous amène à un total de 1500€ pour atteindre notre objectif. 🕊Nous faisons appel à votre générosité pour nous aider à réaliser ce projet. Chaque don, quel que soit son montant, compte et nous rapproche un peu plus de notre but. 🚛La livraison des cadeaux sera effectuée par nos bénévoles sur place, et nous nous engageons à partager des photos et des témoignages de distribution sur nos réseaux sociaux, comme l’année dernière. 🙏🏻Ensemble, faisons de ce Noël un moment inoubliable pour ces enfants. Merci de votre soutien et de votre solidarité ! Pour faire un don, veuillez suivre le lien https://franco-slave.assoconnect.com/.../496093-h-cadeaux... Avec toute notre gratitude, L’équipe Sos Donbass #cadeaux#noel#donbass#solidarite#solidarity#sosdonbasshttps://franco-slave.assoconnect.com/collect/description/496093-h-cadeaux-de-Sos?fbclid=IwY2xjawGxSLhleHRuA2FlbQIxMQABHYd-Agry_cFLU1NBleWDDU3qonMx-NiDrxFxbcSMtKvlIFcenr2gsZq_5A_aem_sJ-Ti_KNj7rMKvKBOP3v5Q

ПредишнаСтр. 1 от 3Следваща