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

Резултати

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

Търсене: #emercom

当前筛选 #emercom清除筛选
Russian Mission to ASEAN

@aseanrussia · Post #1574 · 15.04.2025 г., 09:00

On April 15, the Russian Emergencies Ministry (#EMERCOM) 🇷🇺 have delivered another batch of humanitarian aid to Myanmar 🇲🇲. The IL-76 aircraft delivered over 30 tons of supplies that included canned goods, cereals, sugar and medicine. @mchs_official

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1565 · 10.04.2025 г., 05:10

On April 9, two IL-76 aircrafts of the Russian Emergencies Ministry (#EMERCOM) 🇷🇺 have delivered additional 59 tons of humanitarian aid to Myanmar 🇲🇲. Russian rescuers handed over mobile power stations, tents and blankets, as well as basic necessities to the region affected by the devastating earthquake.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1556 · 07.04.2025 г., 07:41

📸 Footage of unloading the two IL-76 aircrafts of the Russian Emergencies Ministry (#EMERCOM) with humanitarian aid for Myanmar 🇲🇲. Aircrafts transported more than 68 tons of essential disaster relief supplies to the affected region - food, over 30 diesel generators, 150 tents and basic necessities. Three more special flights with a hundred tons of humanitarian aid are expected to arrive in the near future. @mchs_official

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1552 · 03.04.2025 г., 16:04

♥️ Locals of Mandalay 🇲🇲 thank Russian rescuers for their work A dozen local residents came to the field camp to see specialists from the Russian Ministry of Civil Defense, Emergencies and Disaster Relief (#EMERCOM). ⭕ Little residents of Mandalay prepared gifts for Russian rescuers. 🙏 In turn, the chief of staff of the joint detachment of the Russian Emergencies Ministry Dmitry Umanets addressed the audience: "We came to help you, and I will convey warm words of gratitude and gifts to the rescuers." ⭕ More than 260 specialists from the Ministry of Civil Defense, Emergencies and Disaster Relief of the Russian Federation (#EMERCOM) 🇷🇺 are eliminating the consequences of the disaster in Myanmar 🇲🇲: rescuers, dog handlers, psychologists and doctors. @mchs_official

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1551 · 03.04.2025 г., 15:19

The total area of more than 62 thousand m² affected by the earthquake has been examined by the Ministry of Civil Defense, Emergencies and Disaster Relief of the Russian Federation (#EMERCOM) 🇷🇺 rescue teams since the beginning of the search and rescue operations in Myanmar 🇲🇲. Russian rescuers immediately leave for the areas where people may still be trapped under rubble. The EMERCOM's rescue dogs are able to investigate thousands of m² of affected territory daily.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1545 · 01.04.2025 г., 14:32

The airmobile hospital of the Ministry of Civil Defense, Emergencies and Disaster Relief of the Russian Federation 🇷🇺 (#EMERCOM) has begun working in full in the central part of the city of Mandalay 🇲🇲, an area hit by the earthquake. Over 20 doctors are providing medical assistance to those in need. Therapeutic, surgical and intensive care units have received the first patients. The hospital will operate around the clock. The psychologists are also taking part in the mission. 🚑 The airmobile hospital is capable of operating autonomously for at least 14 days while receiving up to 200 patients a day. Meanwhile, its in-patient facility has 50 beds. The hospital has the necessary equipment for even the most complex surgeries.

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1541 · 01.04.2025 г., 14:03

❗❗❗ The Ministry of Civil Defense, Emergencies and Disaster Relief of the Russian Federation 🇷🇺 (#EMERCOM) has formed the largest group of rescuers to provide assistance to the population of Myanmar. A total of 264 Russian rescuers are currently involved in eliminating the consequences of the strongest earthquake in Myanmar. @mchs_official

Hashtags

Russian Mission to ASEAN

@aseanrussia · Post #1539 · 01.04.2025 г., 13:11

❗❗❗ An additional group of rescuers from the Ministry of Civil Defense, Emergencies and Disaster Relief of the Russian Federation 🇷🇺 (#EMERCOM) arrived in Myanmar on 31 March. Russian specialists are sent to the most affected areas, where previously arrived experts are already working. The group is equipped with the necessary gear, equipment and tools. @mchs_official

Hashtags

خانه روسی در تهران

@Rossotrudnichestvo_in_Iran · Post #864 · 21.09.2024 г., 07:57

Russia delivered 35 tons of humanitarian aid to Vietnam A cargo plane of the Russian Ministry of Emergency Situations delivered humanitarian aid to Vietnam on behalf of the President of the Russian Federation Vladimir V. Putin. 35 tons of cargo, which included food products, a mobile power plant and tents, will be transferred to the Vietnamese people affected by typhoon Yagi, which struck Southeast Asia last week. The event was implemented with the support of Rossotrudnichestvo and the "Russia is with you" project, which tells foreign citizens about the activities of the Russian Federation in the field of international development assistance. #Rossotrudnichestvo#RussianHouse#IDA#EMERCOM @rs_tehran

International News

@intnewsagency · Post #8833 · 23.03.2026 г., 12:02

Fire at Fuel Warehouse in Rostov Region Contained In Myasnikovsky District, Rostov Region, firefighters extinguished an open fire at a fuel storage warehouse in Krym village. The blaze covered 3,000 sq. meters, damaging several buildings. Thankfully, no casualties were reported. Emergency teams quickly contained the fire, preventing further spread. “The fire is contained, full extinguishing efforts continue,” said the regional Ministry of Emergency Situations. #RostovRegion#Fire#FuelStorage#EMERCOM The main news of Russia and the world ishere.

International News

@intnewsagency · Post #9027 · 29.03.2026 г., 14:20

Fire in Zhukovsky Apartment Building: Over 2,200 sq.m. Affected A fire broke out in a residential building in Zhukovsky, Moscow region, causing partial roof collapse. The blaze has been contained over an area exceeding 2,200 square meters, the Emergency Ministry reported. The cause remains unknown as specialists work on-site. District head Andronik Pak emphasized the importance of a swift investigation. #Zhukovsky#fire#EMERCOM#Moscow#emergency The main news of Russia and the world ishere.