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

Резултати

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

Търсене: #announcement

当前筛选 #announcement清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #29657 · 04.05.2026 г., 13:03

#Announcement 🎙 On Thursday, May 7, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕙 10.00 am MSK 🕖 7.00 am GMT 🕗 8.00 am CET 🕒 3.00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until May 5, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #29528 · 27.04.2026 г., 12:02

#Announcement 🎙 On Wednesday, April 29, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕐 1:00 pm MSK 🕙 10:00 am GMT 🕚 11:00 am CET 🕕 6:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until April 28, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #29497 · 25.04.2026 г., 08:34

#Announcement 💐 As the 81st anniversary of Victory Day approaches, marking the end of the Great Patriotic War of 1941–1945 within the wider context of the Second World War, it offers a moment for quiet reflection. The courage and sacrifice of Soviet citizens and Allied nations brought one of humanity’s most devastating conflicts to a close. One initiative associated with this commemorative date is the Immortal Regiment, established to honour those who experienced that wartime period. In support of this effort, activists from the Russian-speaking community have recently launched a digital platform, moypolk.uk, dedicated to preserving the legacy of all Second World War veterans. It recognises both Soviet soldiers, whose descendants now live in the United Kingdom, and British servicemen and women who fought bravely against fascism. The archive already includes records of more than 900 veterans. Members of the public are invited to contribute by sharing family histories, photographs, and details of wartime service. The platform also offers the option to take part in the Immortal Regiment march online. Find out more

Russian MFA 🇷🇺

@MFARUSSIA · Post #29370 · 20.04.2026 г., 14:59

#Announcement 🎙 On Friday, April 24, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. The off-site briefing will be held in a hybrid format in Izhevsk, Udmurt Republic. 🕚 11.00 am MSK 🕗 8.00 am GMT 🕘 9.00 am CET 🕓 4.00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until April 22, 15:00 pm MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #29223 · 13.04.2026 г., 16:31

#Announcement 🗓On April 17, the first meeting of the CIS Council of Foreign Ministers in 2026 will be held in Moscow. Russia will be represented by Foreign Minister Sergey Lavrov. The Foreign Ministers of the Commonwealth countries will review the results of inter-ministerial cooperation in 2025 and discuss prospects and key objectives for advancing integration ties, including in the context of implementing the priorities of Turkmenistan’s current chairmanship of the Organization and the 35th anniversary of the CIS, which is being marked in 2026. An exchange of views is also expected on pressing international and regional issues. 📃 The meeting is expected to adopt a number of decisions aimed at strengthening foreign policy coordination and cooperation in the cultural, humanitarian, law-enforcement and other spheres.

Russian MFA 🇷🇺

@MFARUSSIA · Post #29194 · 13.04.2026 г., 09:33

#Announcement 🎙 On Thursday, April 16, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕒 3:00 pm MSK 🕛 12:00 pm GMT 🕐 1:00 pm CET 🕗 8:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until April 14, 12:00 pm MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #29085 · 06.04.2026 г., 21:33

#Announcement 🎙 On Wednesday, April 8, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕐 1:00 pm MSK 🕙 10:00 am GMT 🕚 11:00 am CET 🕕 6:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until April 7, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #28925 · 30.03.2026 г., 13:03

#Announcement 🎙 On Wednesday, April 1, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕛 12:00 pm MSK 🕘 9:00 am GMT 🕙 10:00 am CET 🕔 5:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until March 31, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #28846 · 23.03.2026 г., 22:59

#Announcement 🎙 On Wednesday, March 25, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕐 1:00 pm MSK 🕙 10:00 am GMT 🕚 11:00 am CET 🕕 6:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until March 24, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #28711 · 16.03.2026 г., 08:31

#Announcement 🎙 On Wednesday, March 18, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕐 1:00 pm MSK 🕙 10:00 am GMT 🕚 11:00 am CET 🕕 6:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until March 17, 10:00 am MSK

Russian MFA 🇷🇺

@MFARUSSIA · Post #28653 · 11.03.2026 г., 17:59

#Announcement 🗓The International Security Forum held under the auspices of the Security Council of the Russian Federation is scheduled to take place on May 26-29, 2026, at the ‘Live Arena’ multifunctional complex and the ‘Patriot’ Central Park. The Forum to feature the following events: • the XIV International Meeting of High-Ranking Officials Responsible for Security Matters • a variety of thematic sessions (scientific conferences, roundtables, briefings, presentations) • bilateral and multilateral meetings • exhibitions devoted to specific areas of activity of relevant Russian agencies and organizations 👉The Forum's Core Events (.doc file) More than 180 delegations from foreign states and international organizations have been invited to participate in the Forum. Secretaries of security councils, national security advisors to heads of state, directors of law enforcement agencies and special services, and general secretaries of international organizations are expected to attend. Ambassadors of foreign states, representatives of the academia, and security experts will also participate in the event. 👉Russian government agencies and ministries, organizations and companies featured at the Forum Total number of participants is expected to be as high as 5,000 people. Forum's working languages: Russian, Arabic, Chinese, English, Farsi, French, Serbian, and Spanish (simultaneous interpretation will be provided). 👉Accreditation & registration for the Forum's participants (starts on March 17) 👉Accreditation for media representatives

Russian MFA 🇷🇺

@MFARUSSIA · Post #28636 · 10.03.2026 г., 12:59

#Announcement 🎙 On Thursday, March 12, Russia’s Foreign Ministry Spokeswoman Maria Zakharova will hold her weekly briefing on current foreign policy issues. 🕙 13:30 am MSK 🕗 10:30 am GMT 🕘 12:00 pm CET 🕓 7:00 pm CST For accreditation inquiries, please contact the MFA Press Centre. Accredited journalists will receive details on the technical aspects of submitting questions. The Foreign Ministry Spokeswoman will answer media questions received by the call centre. ❗️Accreditation is open until March 11, 9.00 am MSK

123•••10•••1617
ПредишнаСтр. 1 от 17Следваща