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

Резултати

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

Търсене: #cameroon

当前筛选 #cameroon清除筛选
POPULAR FRONT

@popularxfront · Post #5052 · 19.02.2026 г., 23:01

🇨🇲#Cameroon: ISWAP militants have attempted to storm a new position of The Rapid Intervention Battalion (Bataillon d'intervention rapide - BIR, a special forces unit of the Cameroonian Armed Forces) in the town of Bargaram, near the Nigerian border. At least five militants were killed in the failed attack, including one who was reportedly a foreigner. Footage shows the equipment that the BIR captured from the dead militants, including a camera which was supposed to be used in order to film the attack as further propaganda. (via @BrantPhilip_ on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4727 · 25.01.2026 г., 16:39

🇨🇲#Cameroon: ISWAP militants claimed responsibility today for the burning of a Cameroonian military outpost in the town of Darak, in northern Cameroon, on Thursday. (via @AIW898)

Hashtags

Reuters: World

@reutersworldchannel · Post #149398 · 15.10.2021 г., 11:16

Cameroon officer lynched for killing five-year-old A mob lynched a military police officer after he killed a five-year-old girl when he fired on a car at a checkpoint in the capital of Cameroon's English-speaking South West Region, the defense ministry said. #News#Reuters#Cameroon#mob Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

Addis Standard

@addisstandardeng · Post #21602 · 04.03.2026 г., 06:54

#UK to end study visas for #Sudan, #Cameroon, Myanmar, Afghanistan students ⁠The United Kingdom says it will end study visas for students from #Afghanistan, Cameroon, #Myanmar and Sudan, and work visas for Afghans, amid a rise in anti-immigration sentiment ⁠in the country. The UK Home Office said in a statement on Tuesday that “an ’emergency brake’ on visas has been imposed for the first time on nationals from four countries”, following a surge in asylum claims by students on study visas. The Home Office said the number of asylum applications by students from Afghanistan, Cameroon, Myanmar and Sudan had “rocketed” by more than 470 percent between 2021 and 2025. “Britain will always provide ⁠refuge to people fleeing war and persecution, but our visa ⁠system must not be ⁠abused,” Secretary of State for the Home Department Shabana Mahmood said. “That is why I am taking the unprecedented...... https://www.aljazeera.com/news/2026/3/4/uk-to-end-study-visas-for-myanmar-afghanistan-cameroon-sudan-students

Russian Embassy in Asmara

@rusembasmara · Post #536 · 11.11.2024 г., 18:24

#Day1 🗓 On November 9, Russia's Foreign Minister Sergey Lavrov held a series of bilateral meetings with his counterparts from the African nations on the sidelines of the First Ministerial Conference of the Russia-Africa Partnership Forum in Sochi, including: #RussiaMali 🇷🇺🇲🇱 Minister of Foreign Affairs and International Cooperation of the Republic of #MaliAbdoulaye Diop. The Parties discussed a range of issues concerning the further strengthening of Russian-Mali relations, which are traditionally friendly in nature. In this context, they examined in detail various aspects of enhancing bilateral trade and economic and investment partnership. Moscow and Bamako also reaffirmed their unwavering commitment to deepening political dialogue and enhancing coordination on key issues within the global and regional agendas at the United Nations and in other multilateral formats. #RussiaUganda 🇷🇺🇺🇬 Minister of Foreign Affairs of the Republic of #Uganda Gen. Jeje Odongo. The Sides discussed in detail the key trends in furthering Russian-Ugandan multifaceted cooperation with a focus on enhancing the mutually beneficial trade, economic and investment partnership, as well as developing joint projects in energy, mining, agriculture, science, education, medicine, and digital technologies. They also reaffirmed the intent of Moscow and Kampala to strengthen constructive interaction and coordination at the UN and other international venues. #RussiaCameroon 🇷🇺🇨🇲 Minister of External Relations of the Republic of #CameroonLejeune Mbella Mbella. The Parties discussed a range of issues concerning the further strengthening of the traditionally friendly Russia-Cameroon relations. This includes enhancing bilateral trade, economic cooperation and investment partnership, as well as improving the legal framework and implementing promising joint projects. Moscow and Yaounde also reaffirmed their commitment to deepening their trust-based political dialogue and closer coordination on topical international and regional issues at the United Nations and in other multilateral formats. #RussiaCAR 🇷🇺🇨🇫 Minister of Foreign Affairs, Francophonie and Central Africans Abroad of the Central African Republic Sylvie Baipo-Temon. The Sides discussed in detail a range of issues related to advancing the traditionally friendly Russian-Central African relations, focusing on promoting promising projects in mineral exploration and production, agriculture, healthcare, and personnel training. They also reaffirmed Moscow and Bangui’s intent to intensify political dialogue and close coordination at the UN and other multilateral formats while addressing global and regional problems based on the fundamental principles of international law and the UN Charter. Sergey Lavrov and Sylvie Baipo-Temon signed an Agreement between the Government of the Russian Federation and the Government of the Central African Republic on the Mutual Cancellation of Visa Requirements for Holders of Diplomatic and Service Passports, as well as a Memorandum on Consultations between the Ministry of Foreign Affairs of the Russian Federation and the Ministry of Foreign Affairs, Francophonie and Central Africans Abroad of the Central African Republic. #RussiaRwanda 🇷🇺🇷🇼 Minister of Foreign Affairs and International Cooperation of the Republic of #Rwanda Olivier Nduhungirehe. The Parties discussed a range of issues pertaining to further strengthening the friendly Russian-Rwandan relations, with a particular focus on expanding cooperation in trade, the economy, investment, humanitarian matters. Moscow and Kigali also reaffirmed their commitment to deepening political dialogue and maintaining close coordination at the UN to address global and regional issues. The Ministers signed a Russian-Rwandan intergovernmental agreement on visa-free travel for holders of diplomatic or service passports. #RussiaAfrica