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 подобни публикации

Търсене: #bricsplus

当前筛选 #bricsplus清除筛选

📹 Russia's Foreign Minister Sergey Lavrov’s video message to the participants in the 6th BRICS+ Young Diplomats’ Forum (August 28, 2024) 💬 I would like to begin by offering my heartfelt greetings to the participants in the 6th Young Diplomats’ Forum which is taking place in the #BRICSplus format. It was the Foreign Ministry’s Council of Young Diplomats that initiated the first event of this kind in Ufa as part of Russia’s 2015 chairmanship. Since then, this platform has emerged as an effective tool for promoting horizontal ties between the BRICS foreign ministries. It is worth noting that Ufa, the capital of Bashkortostan, has been selected to host the 2024 meeting. It stands at the crossroads of civilisations, and people representing various religions, creeds and ethnic groups have been living here in peace and harmony for many centuries. This offers a vivid example of the way ethnic, religious and cultural diversity can serve as a foundation for promoting long-term development and sustaining mutual understanding. #BRICS countries have been relying on these very principles in their relations. 👉 The Forum’s main topic is The Role of Young Diplomats in Strengthening Multilateralism for Fairness in Global Development and Security. It covers a wide range of major issues for BRICS states, as well as for other like-minded countries. I welcome the fact that all partners share the association’s approaches to working together when responding to present-day global challenges. BRICS attracts more and more attention, which is a clear sign that our aspirations to build a fairer global architecture in international relations are aligned with deep-running and objective geopolitical shifts. The Global Majority has been very receptive to this vision, which demonstrates that what we do together is highly relevant and important. I am certain that your forum will contribute in its own way to strengthening the comprehensive partnership, atmosphere of friendship and trust between our countries and their people. 🌐 I wish all the participants every success, good health and fruitful work. Read in full #BRICS2024

Russian Embassy in Asmara

@rusembasmara · Post #428 · 28.08.2024 г., 16:19

📹 Russia's Foreign Minister Sergey Lavrov’s video message to the participants in the 6th BRICS+ Young Diplomats’ Forum(August 28, 2024) 💬 I would like to begin by offering my heartfelt greetings to the participants in the 6th Young Diplomats’ Forum which is taking place in the #BRICSplus format. It was the Foreign Ministry’s Council of Young Diplomats that initiated the first event of this kind in Ufa as part of Russia’s 2015 chairmanship. Since then, this platform has emerged as an effective tool for promoting horizontal ties between the BRICS foreign ministries. It is worth noting that Ufa, the capital of Bashkortostan, has been selected to host the 2024 meeting. It stands at the crossroads of civilisations, and people representing various religions, creeds and ethnic groups have been living here in peace and harmony for many centuries. This offers a vivid example of the way ethnic, religious and cultural diversity can serve as a foundation for promoting long-term development and sustaining mutual understanding. #BRICS countries have been relying on these very principles in their relations. 👉 The Forum’s main topic is The Role of Young Diplomats in Strengthening Multilateralism for Fairness in Global Development and Security. It covers a wide range of major issues for BRICS states, as well as for other like-minded countries. I welcome the fact that all partners share the association’s approaches to working together when responding to present-day global challenges. BRICS attracts more and more attention, which is a clear sign that our aspirations to build a fairer global architecture in international relations are aligned with deep-running and objective geopolitical shifts. The Global Majority has been very receptive to this vision, which demonstrates that what we do together is highly relevant and important. I am certain that your forum will contribute in its own way to strengthening the comprehensive partnership, atmosphere of friendship and trust between our countries and their people. 🌐 I wish all the participants every success, good health and fruitful work. Read in full #BRICS2024

🇷🇺🇲🇳 President of Russia Vladimir Putin and President of Mongolia Ukhnaagiin Khurelsukh held a meeting in Ulaanbaatar. 💬President Putin: First of all, I want to thank you for the invitation. It has, in fact, become a good tradition for us to meet in Mongolia every five years to mark the remarkable highly significant events in our shared history. You have listed the dates we will be commemorating this year. Each of these dates holds special significance for both Russia and Mongolia. I would like to add that Erdenet, which you have mentioned, was planned by architects from Leningrad. I am also pleased to note that the Russian-Mongolian relations have been developing on a new foundation. Our countries have experienced growth in trade, despite the various challenges we have faced, including those you have mentioned, such as COVID. In fact, relations between our countries are progressing well across all areas. Apart from the economy and politics, where we continue to cooperate quite actively, I would like to highlight the successful collaboration in culture and education. The Intergovernmental Commission has been working proactively and there are good results. During our discussions today, we will undoubtedly touch upon the key trends in our economic collaboration. To conclude my opening remarks, I would like to extend an invitation for you to visit Kazan, Russia, where the #BRICS Summit will be held later this year. This will be the first top-level event following the recent expansion of the association. I hope you will take part in the #BRICSOutreach – #BRICSplus format. We look forward to seeing you in Russia. International consultations began with a conversation between the two Leaders in a restricted format, followed by a meeting with the participation of the two countries’ delegations. ✍️ A set of documents was signed following talks. The Government of the Russian Federation and the Government of Mongolia signed agreements on the development of basic project documentation for the reconstruction of the TPP-3 thermal power plant in Ulaanbaatar, as well as on cooperation in the supply of oil products and on providing Mongolia with aviation fuel. The Russian Federal Service for the Oversight of Consumer Protection and Welfare and the Ministry of Health of Mongolia signed an Agreement on cooperation to ensure epidemiological welfare with regard to plague. In addition, the Russian Federation Ministry of Natural Resources and Environment and the Ministry of Environment and Climate Change of Mongolia signed a Memorandum of Understanding on cooperation in the conservation of Lake Baikal and the Selenga River. Presidents Vladimir Putin and Ukhnaagiin Khurelsukh also made statements to the media. #RussiaMongolia

የኢትዮጵያ ሁለንተናዊ የሉዓላዊነት ጉዞና የብሪክስ ስትራቴጂካዊ ፋይዳ ************** ኢትዮጵያ ከውስጥ ግንባታ እስከ ዓለም አቀፍ መሪነት የምታደርገው የሁለንተናዊ ሉዓላዊነት ጉዞ አዲስ የታሪክ ምዕራፍ እየከፈተ ይገኛል፡፡ በአሁኑ ወቅት በሀገራችን እየታየ ያለው የኮሪደር ልማት የከተማና የገጠር ትስስርን በማጠናከር የዜጎችን የኑሮ ዘይቤ ከመቀየሩ ባለፈ የ"መደመር" ፍልስፍናን በተግባር እያሳየ የሚገኝ ስኬት ነው፡፡ በጤናው ዘርፍም በቂሊንጦ ልዩ የኢኮኖሚ ዞን አማካኝነት የተጀመረው የሀገር ውስጥ መድኃኒት ምርት የውጭ ጥገኝነትን በመቀነስ ረገድ ትልቅ ተስፋ ሆኗል፡፡ በዲፕሎማሲው ረገድ ኢትዮጵያ የብሪክስ+ አባል መሆኗ በዓለም አቀፍ መድረክ ያላትን ተሰሚነት ከማሳደጉም በላይ የባሕር በር ጥያቄዋንና የንግድ ጥቅሟን ለማስከበር ትልቅ ስትራቴጂካዊ አቅም ፈጥሮላታል፡፡ ይህ ሁሉ የብልፅግና ሰንሰለት ዘላቂ የሚሆነው በሰለጠነ የፖለቲካ ተሳትፎና በዴሞክራሲያዊ ግንባታ በመሆኑ፣ እየተቃረበ ለሚገኘው 7ኛው ጠቅላላ ምርጫ ካርድ በመውሰድ በሐሳብ ውድድር ላይ የተመሰረተች ሀገርን ለመገንባት የሁላችንም ሉዓላዊ መብትና ኃላፊነት ነው፡፡ ኢትዮጵያ በጀመረችው ሁለንተናዊ ንቅናቄ ወደ ተሟላ ሉዓላዊነትና ብልፅግና እያመራች በመሆኗ በዚህ ታሪካዊ ጉዞ ላይ ሁላችንም አሻራችንን እናሳርፍ፡፡ ሙሉ ትንታኔውን ለማግኘት ሊንኩን ይጫኑ https://www.ebc.et/Home/NewsDetails?NewsId=4831 በሰለሞን ገዳ #Ethiopia#Sovereignty#BRICSPlus#EconomicGrowth#Medemer#Development#AfricaRising

🧪1 ноября | Первый день Международного научного фестиваля “НАУКА 0+” ✨Сегодня в Ташкентском филиале Российского химико-технологического университета им. Д. И. Менделеева стартовал Международный научный фестиваль “НАУКА 0+”! С самого утра кампус филиала наполнился атмосферой открытий, экспериментов и ярких эмоций. 👩‍🔬 Школьники, студенты и родители приняли участие в мастер-классах и химических опытах, которые проводили преподаватели, задействованные в проекте «Менделеевские школы» — совместной инициативе Центра международного сотрудничества Минпросвещения России и филиала РХТУ в Ташкенте. 🧫 Особый интерес вызвали занятия: «Химия в цвете (Mendeleev Kids)» — где даже самые юные участники создавали красочные реакции; «Свойства металлов» и «Ионно-обменные реакции» — с эффектными химическими превращениями; «Изготовление мыла в лаборатории» — где каждый сделал себе маленький научный сувенир. 🎓 В рамках лектория прошли выступления преподавателей филиала: «Наука Узбекистана: от минеральных удобрений до атомной промышленности» «Химия вокруг нас» — о том, как химия меняет мир и повседневную жизнь. 📸 Первый день фестиваля доказал, что наука — это не скучно, а вдохновляюще! 📍 Ташкент | РХТУ им. Д. И. Менделеева #НАУКА0ПЛЮС#BRICSplus#МенделеевскаяШкола#РХТУ#РоссияУзбекистан#РоссийскийУчительЗаРубежом#НаукаВТвоейСтране

🔬 2 ноября | Второй день и завершение фестиваля “НАУКА 0+” Сегодня в Ташкентском филиале РХТУ им. Д. И. Менделеева прошёл второй день Международного фестиваля “НАУКА 0+”, ставший ярким завершением научного марафона! 👨‍🔬 Участники продолжили знакомство с химией — выполняли опыты, работали с лабораторным оборудованием и микроскопами, создавали собственное мыло и участвовали в квесте «Найди элемент». Все активности проходили при поддержке преподавателей, работающих в проекте “Менделеевские школы”, которые помогали школьникам почувствовать себя настоящими исследователями. 🎥 В актовом зале состоялся показ короткометражного фильма «Равновесие» о роли науки в сохранении экологии. 👩‍🏫 А для педагогов прошёл тренинг «Современные подходы к обучению химии и биологии», вызвавший большой интерес и обмен опытом. 👏 Фестиваль “НАУКА 0+” успешно завершился! Два дня доказали: интерес к науке в Узбекистане растёт, а молодёжь готова исследовать, изобретать и создавать будущее. 💙 Благодарим всех участников, преподавателей проекта «Менделеевские школы», волонтёров и организаторов за их вклад в развитие научной культуры! 📍 Ташкент | РХТУ им. Д. И. Менделеева #НАУКА0ПЛЮС#МенделеевскаяШкола#РХТУ#РоссияУзбекистан#BRICSplus#ЦМС#РоссийскоеОбразование#НаукаВТвоейСтране