@WorldNews · Post #74378 · 26.04.2026 г., 01:29
Poland's Tusk warns Russia could attack NATO in months [Read FullArticle] @WorldNews#PolandNews#RussiaNATO#GlobalSecurity
TGINSIGHT SIMILAR POSTS
Изходен канал @clockstackwheels · Post #721 · 26.12
Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev
Hashtags
Търсене: #russianato
@WorldNews · Post #74378 · 26.04.2026 г., 01:29
Poland's Tusk warns Russia could attack NATO in months [Read FullArticle] @WorldNews#PolandNews#RussiaNATO#GlobalSecurity
@rusconsdanang · Post #72 · 05.03.2022 г., 16:35
🇷🇺 Foreign Minister Sergey Lavrov’s #interview with TV channels RT, NBC News, ABC News, ITN, France 24 and the PRC Media Corporation, Moscow, March 3, 2022. ❓#Question: Unprecedented sanctions pressure is being exerted on the Russian Federation due to the recent events, primarily “on the ground.” Has Russia changed its position? Does the world hear what Russia is saying? What do you think about the ongoing talks in Belarus? What should we expect from the next round? 💬 Sergey #Lavrov: This is a comprehensive question. You have touched on many issues. I am sure the world is listening to Russia, but it is difficult to say at this point the extent to which it hears us. The majority may understand what this is about, but they have to obey the toughest dictate. Speaking frankly, it is of course bad when people die: military servicemen and civilians (women and children). This has been happening in #Donbass for eight years and is now happening during Russia’s special military operation. The goal of this operation is to stop any war that could take place on Ukrainian territory or that could start from there. I have no doubt that a solution will be found. Our minimum terms are well known. They are being discussed, in part, at the talks with Ukrainian representatives. Talks were held in Gomel and new talks were supposed to take place today. However, the Kiev team has again found some reason to postpone the talks. There is no doubt whatsoever that #Ukraine receives instructions from Washington; they are not independent at all. Nevertheless, talks must take place. I will not go into the details of the agenda; they are well known. We can no longer tolerate the threat of direct attack on the Russian Federation from the territory of Ukraine. Such threats are fixed in the current doctrinal documents of the Kiev regime. One of the main reasons is Ukraine’s unrelenting desire to join NATO and the reluctance of the Alliance’s members to fulfil their commitments that they do not take any measures that would enhance their security at the expense of the security of others. In the final analysis, this is not just the situation in Ukraine, the efforts to demilitarise and de-Nazify it, to prevent the continuing manifestations of genocide on its territory, putting a stop to any violence and ensuring for the Ukrainians an opportunity to decide their destiny themselves; no, it is the world order that is at stake. This is for a reason that the West is avoiding, in any way it can, giving a response to our implicit, clear-cut proposals on the security system in Europe that rely on existing agreements. I mentioned the core principle endorsed at the top level by the OSCE which underlies #RussiaNATO relations. Each country has the right to choose alliances. However, no country can strengthen its security at the expense of the security of any other country. No organisation can claim dominance in the Euro-Atlantic space, which is exactly what NATO is doing now. The West strengthening its security at the expense of Russia’s security has become proverbial. We are being told “not to worry because Ukraine or any other country joining NATO will not pose a threat to Russia’s security.” Why should the West tell us what our security needs are? Just like the Americans decided for Germany and Europe what was needed for European energy security. They decided that Nord Stream 2 was something that the EU did not need for its energy security, which would be ensured instead by supplies of liquefied natural gas from the United States at multiple times the cost. The fact is that we are being listened to, but not heard. They are trying in every possible way to impose on us their idea of how to continue living in Europe. The comparison suggests itself. In their time, Napoleon and Hitler set out to subjugate Europe. Now, the United States has taken it over. There was no question about #NATO, and the European Union was shown its place. The story of Nord Stream 2 vividly illustrated the EU’s actual place in the international arena.