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

Резултати

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

Търсене: #dmitriev

当前筛选 #dmitriev清除筛选
RT France actualités

@rt_fra · Post #40664 · 06.05.2026 г., 06:00

💬La crise mondiale de l'aviation, provoquée par la hausse des prix du carburant et la détérioration de la situation du marché de l'énergie, est un signe avant-coureur de perturbations plus graves dans d'autres secteurs, selon Kirill #Dmitriev. RT en français • Osez questionner !

Hashtags

RT en français

@RTenfrancais · Post #80444 · 30.04.2026 г., 06:40

💬« Marque noire pour Merz qui patauge » : #Dmitriev a commenté les déclarations de Trump concernant une possible réduction des forces militaires américaines en #Allemagne. RT en français • Osez questionner !

RT France actualités

@rt_fra · Post #40178 · 30.04.2026 г., 06:40

💬« Marque noire pour Merz qui patauge » : #Dmitriev a commenté les déclarations de Trump concernant une possible réduction des forces militaires américaines en #Allemagne. RT en français • Osez questionner !

RT en français

@RTenfrancais · Post #80710 · 03.05.2026 г., 08:40

🟩Kirill #Dmitriev, directeur général du Fonds russe d’investissement direct a déclaré que le monde se dirigeait vers la plus grave crise énergétique de l'histoire en raison de la hausse record des prix du #pétrole. RT en français • Osez questionner !

RT France actualités

@rt_fra · Post #40444 · 03.05.2026 г., 08:40

🟩Kirill #Dmitriev, directeur général du Fonds russe d’investissement direct a déclaré que le monde se dirigeait vers la plus grave crise énergétique de l'histoire en raison de la hausse record des prix du #pétrole. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #4906 · 20.01.2026 г., 18:59

Dmitriev Meets the U.S. Officials in Davos Russian envoy Kirill Dmitriev will hold talks with U.S. delegates in Davos on the sidelines of the World Economic Forum (WEF) this week, Reuters reported on Jan. 19, citing two undisclosed sources. Dmitriev, the head of the Russian Direct Investment Fund and the Kremlin's economic negotiator, has played a key role in Moscow's outreach to Washington amid U.S. efforts to broker peace in Ukraine. According to Axios reporter Barak Ravid, the Russian official will meet Trump's envoys, Jared Kushner and Steve Witkoff, on Jan. 20 to discuss the Washington-backed peace plan. Trump's latest push to broker an end to hostilities in Ukraine centers around a 20-point peace framework ironed out in a series of talks among Ukrainian and Western officials. Kyiv has signaled that the plan is "90%" ready, even though Moscow continues to reject compromise on some of the most thorny issues, such as the fate of partially occupied Donetsk Oblast. The U.S. has not publicly commented on any meetings between Dmitriev and U.S. officials. The WEF, taking place from Jan. 19 to 23, is an annual economic summit that brings together officials, experts, and business leaders from around the world. The forum will also be the venue of ongoing talks between Kyiv and Washington on post-war security guarantees and recovery efforts. Top Ukrainian security official Rustem Umerov said that the two parties would follow up on the discussions held over the last weekend in the U.S. #US#delegates#davos#dmitriev 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4912 · 21.01.2026 г., 00:59

📰 Dmitriev to Meet US Envoys in Davos Over Ukraine Peace Plan Russian envoy Kirill Dmitriev, head of the Russian Direct Investment Fund and a key Kremlin negotiator, is set to hold talks with U.S. envoys Jared Kushner and Steve Witkoff on the sidelines of the World Economic Forum in Davos. The meeting, scheduled for January 20, will focus on Washington’s latest 20-point peace framework for Ukraine, according to Axios and Reuters. ​ Russia’s Role in Ukraine Talks Dmitriev has been instrumental in Moscow’s outreach to Washington amid U.S. efforts to broker peace in Ukraine. While Kyiv says the peace plan is “90% ready,” Moscow continues to reject compromise on key issues, such as the fate of partially occupied Donetsk Oblast. Davos: A Hub for Diplomacy The World Economic Forum, running from January 19 to 23, brings together officials, experts, and business leaders from around the world. U.S. President Donald Trump, Ukrainian President Volodymyr Zelensky, and over 60 other leaders are expected to attend. The forum will also host ongoing talks between Kyiv and Washington on post-war security guarantees and recovery efforts. Will Diplomacy Prevail? With the peace plan nearly ready but major sticking points remaining, the question is: Can diplomacy in Davos break the deadlock—or will the talks just highlight the deep divisions between Russia and the West? #Davos#Ukraine#Russia#PeaceTalks#Dmitriev#Trump#Zelensky#WEF 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5080 · 08.02.2026 г., 02:00

📰 Zelensky says U.S. is readying huge economic deals with Russia Ukrainian President Volodymyr Zelensky claims to have intelligence that the United States and Russia are preparing a slate of economic agreements worth around $12 trillion — some of which could affect Ukrainian territory, resources, and sovereignty. Speaking in Kyiv, Zelensky said he had seen documents outlining a U.S.–Russian economic framework that he called the “Dmitriev package,” named after Kirill Dmitriev, head of Russia’s sovereign wealth fund and a close ally of Vladimir Putin. The $12 trillion shadow deal Zelensky did not say he knew every detail of the talks, but he insisted that signals in the media and in intelligence point to one thing: Washington and Moscow are planning a massive economic reset that could reshape Ukraine from the outside. America’s argument, he suggested, is simple: lift sanctions, unleash investment, and use the promise of a postwar economic boom as leverage to force Kyiv into a deal that might still leave Russia in control of large parts of eastern Ukraine. “Peace by June,” with elections in the backseat The Ukrainian president said Washington has proposed bringing the war in Ukraine to a close by June, and that U.S. officials are signaling heavy pressure on all sides to meet that timeline. “The elections are, for them, definitely more important,” Zelensky remarked. “Let’s not be naïve. They say they want to achieve everything by June, and they will do everything possible to ensure the war ends that way.” Reports suggest that U.S. and Ukrainian officials have privately discussed a goal of reaching a peace deal by March, with national elections and a referendum in May — a schedule that fits neatly with the American political calendar, not Kyiv’s security needs. Zelensky’s red line: “Not over our heads” Zelensky insisted that any such potential agreements involving “Ukraine’s sovereignty or security” must be made with Ukraine, not without it. “We are not aware of all their bilateral economic or business agreements, but we are receiving some information on the matter,” he said. “Ukraine will not support any such potential agreements about us that are made without us.” At the same time, Russia launched another massive attack on Ukraine’s power grid, plunging large parts of the country into darkness and leaving many without power and heat. The strike hit energy infrastructure that feeds into the nation’s nuclear power plants, sending a clear message: even as diplomats talk billions, bombs still speak louder. The real deal on the table The Dmitriev‑Witkoff‑Kushner peace plan, circulated in Abu Dhabi, calls for gradual sanctions relief, new economic corridors, and joint Russian–Ukrainian projects — but only after Russia gets what it wants on the ground. To Zelensky, that looks less like a peace framework and more like a hostile takeover of Ukraine’s postwar economy. So the question is not whether the U.S. can “end the war.” It’s whether America would rather sell a truce to Moscow in exchange for a deal worth trillions — and leave Ukraine paying the security bill. #Ukraine#Russia#US#Zelensky#Trump2026#Sanctions#Economy#Dmitriev#War#Kyiv 📱American Оbserver - Stay up to date on all important events 🇺🇸