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

Резултати

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

Търсене: #nuclear

当前筛选 #nuclear清除筛选
Indian Development News 🇮🇳

@developmentnewsindia · Post #43878 · 21.04.2026 г., 07:25

Major Development: Adani Power Expands into #Nuclear Sector with New Subsidiary Adani Power Limited has announced the incorporation of a wholly owned subsidiary, Rawatbhata-Raj Atomic Energy Limited (RRAEL). The subsidiary's primary objective is to generate, transmit, and distribute power derived from nuclear and atomic energy

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #43752 · 18.04.2026 г., 01:43

India to invite bids in 3–6 months for 220 MWe BSMR-200 SMR. ₹30 crore/MW cost; ₹5,960 crore project; 60–72 months build. ₹20,000 crore #Nuclear Energy Mission targets ≥5 SMRs by 2033; 100 GW nuclear capacity by 2047. Foreign bidders

Hashtags

Indian Development News 🇮🇳

@developmentnewsindia · Post #43417 · 09.04.2026 г., 17:53

NTPC signed MoU with EDF to assess EPR #nuclear projects in India; targets 30 GW nuclear capacity by 2047. India aims ~100 GW nuclear under roadmap; pact covers localisation, tariffs, and site evaluation amid policy changes to enable private/foreign participation.

Hashtags

Mártir Ayatolá Jameneí

@khamenei_es · Post #4392 · 06.06.2025 г., 16:04

⭕️ «Irán, gracias al empeño de sus científicos, logró hacerse poseedor del ciclo completo del combustible #nuclear. - En todo el mundo, el número de países que poseen esta capacidad acaso no llegue al de los dedos de ambas manos....» (04/06/2025). 🔗 LEER 👉spanish.khamenei.ir/news/6729 ✅@khamenei_es KHAMENEI.IR | 𝕏 | Facebook| TikTok

Hashtags

@RusEmbMalta Press release: Excerpts from the Basic Principles of State Policy of the Russian Federation on #Nuclear Deterrence, approved on November 19, 2024 by Russia's President Vladimir Putin General Provisions: 1. The present Basic Principles are a strategic planning document in the defence sphere and reflect the official views on the essence of nuclear deterrence; they define military dangers and threats, whose neutralisation is the aim of nuclear deterrence, as well as the principles of nuclear deterrence and the conditions under which the Russian Federation will transition to using nuclear weapons. 2. The assured deterrence of a potential adversary from launching an aggression against the Russian Federation and/or its allies ranks among the top state priorities. Deterring an aggression shall be ensured by the entire combined military power of the Russian Federation, including its nuclear weapons. <...> The essence of nuclear deterrence 9. The Russian Federation exercises nuclear deterrence with regard to a potential adversary understood as individual states and military coalitions (blocs, alliances), which regard the Russian Federation as a potential adversary and possess nuclear and/or other types of mass destruction weapons, or a considerable combat potential in the shape of general-purpose forces. Nuclear deterrence is also exercised with regard to states which provide the territory, airspace and/or maritime space under their control, as well as resources, for preparing and carrying out an aggression against the Russian Federation. 10. An aggression by any state member of a military coalition (bloc, alliance) against the Russian Federation and/or its allies shall be considered as an aggression by this coalition (bloc, alliance) as a whole. 11. An aggression against the Russian Federation and/or its allies by any non-nuclear state with the participation of or support from a nuclear state shall be considered as their joint assault. <...> Conditions for the Russian Federation’s transition to the employment of nuclear weapons 18. The Russian Federation reserves the right to use nuclear weapons in response to nuclear and/or other types of mass destruction weapons being used against it and/or its allies, as well as in the case of an aggression with the use of conventional weapons against the Russian Federation and/or the Republic of Belarus as a member of the Union State, an aggression creating a critical threat to their sovereignty and/or territorial integrity. 19. The conditions determining the possibility of nuclear employment by the Russian Federation are as follows: a) arrival of reliable information on the launch of ballistic missiles attacking the territories of the Russian Federation and/or its allies; b) an adversary’s use of nuclear or other types of mass destruction weapons against the territories of the Russian Federation and/or its allies, military units and/or facilities of the Russian Federation, located outside of its territory; c) an adversary’s attack on critically important state or military facilities of the Russian Federation, whose incapacitation will lead to the disruption of retaliatory actions by the nuclear forces; d) aggression against the Russian Federation and/or the Republic of Belarus as a member of the Union State with the use of conventional weapons, which creates a critical threat to their sovereignty and/or territorial integrity; e) arrival of reliable information about a massed launch (takeoff) of aerospace assault weapons (strategic and tactical aircraft, cruise missiles, and unpiloted, hypersonic or other air vehicles) and their crossing of the state border of the Russian Federation. 20. The decision on using nuclear weapons shall be taken by the President of the Russian Federation. <...>

Hashtags

Communia

@communia · Post #37777 · 30.12.2023 г., 09:28

Purga militar masiva al más alto nivel en #China con centro en los administradores del armamento #nuclear. «Además de perder su calificación como representantes nacionales, quienes ocupaban escaños en los comités legislativos pertinentes también fueron destituidos de sus cargos, anunció el viernes el Comité Permanente de la Asamblea Popular Nacional (APN). No dio ninguna razón para las descalificaciones. Entre los despedidos se incluyen cinco altos comandantes anteriores o actuales de la Fuerza de Misiles del EPL, un componente clave del arsenal nuclear del país, y un ex comandante de la Fuerza Aérea» https://www.scmp.com/news/china/politics/article/3246738/china-removes-nine-pla-generals-top-legislature-sign-wider-purge

🚨🇺🇸TRUMP ANNOUNCES IRAN NUCLEAR MATERIAL DEAL BREAKTHROUGH 🔹 Iran agrees to immediately cease ALL uranium enrichment activities under 24/7 Space Force satellite surveillance 🛰️ 🔹 American teams will excavate approximately 440kg of 60% enriched uranium from Isfahan facility 💣 🔹 Defense Secretary Pete Hegseth confirms: 'We know the exact location of every Iranian stockpile' 🎯 🔹 Trump imposes immediate 50% tariffs on China & Russia for continuing to arm Iranian forces 💰 🔹 Historic deal follows two-week ceasefire after Operation Rising Lion destroyed Fordow facility 🚀 Tehran finally blinks first in Trump's biggest foreign policy victory yet! 🏆🔥 #USNews#Iran#nuclear @america

Indian Development News 🇮🇳

@developmentnewsindia · Post #44201 · 29.04.2026 г., 17:46

Powering India’s #Nuclear Future ⚛️ NFC-Kota has received operational clearance from the Atomic Energy Regulatory Board AERB, marking a decisive milestone in strengthening India’s nuclear fuel cycle and clean energy momentum. With this approval, the Nuclear Fuel Complex (NFC), the power reactor fuel and structural component manufacturing arm of DAE, is now fully geared to supply 500 TPY of nuclear fuel for 700 MWe indigenous PHWRs of Nuclear Power Corporation of India Limited (NPCIL) #Energy

123•••78
ПредишнаСтр. 1 от 8Следваща