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 подобни публикации

Търсене: #stateduma

当前筛选 #stateduma清除筛选
AREA

@area_eng · Post #25 · 27.07.2024 г., 13:58

Babakov stated the need to create investment banks Deputy Chairman of the State Duma Alexander Babakov said that when supplying equipment to Africa, there is a problem associated with the Western banks and funds that will never finance the African continent in these areas. "We believe that it is necessary to organize investment and clearing banks adjusted by the standards of the Bank of Russia. The formation of a new currency, even in electronic form, with the still disputed provision of this currency, will allow accumulating so-called soft currencies so that this new financial system can export capital to primarily African countries," he said at a "Strategic session on legislative support for economic cooperation with countries Africa in the energy sector", which was held in the State Duma. #Africa#Russia#energy#StateDuma

AREA

@area_eng · Post #24 · 27.07.2024 г., 11:12

Morocco plans to implement energy projects In the State Duma, at the "Strategic Session on legislative support for economic cooperation with African countries in the energy sector", Chairman of the Russian-Moroccan Business Council Yuri Sharov spoke about promising energy projects in Morocco. Among those: 🔹Projects in the field of renewable energy and energy efficiency, such as solar and wind power plants, biomass and geothermal energy. 🔹 Creation of a coal hub in Morocco, which will become a key element of the region's energy infrastructure. 🔹Seawater desalination projects. Morocco is interested in companies with their own know-how, as well as the supply of equipment. 🔹 Resumption and development of cooperation with the National Electricity and Water Supply Authority of Morocco on projects for the construction of new power plants. #Africa#Russia#energy#StateDuma

AREA

@area_eng · Post #19 · 25.07.2024 г., 19:06

Berg stated the need to consolidate efforts in Africa During the "Strategic session on legislative support for economic cooperation with African countries in the energy sector", which was held in the State Duma, Director of IBAC LLC Yulia Berg said that strategic work is underway within the framework of the Association to establish relations between Russia and Africa. "The applied value and experience of our companies, both public and private, will be an important factor. Since this experience is unique, we would like them to share it in order to consolidate efforts so that each new company does not have to pave this path themselves, so that they can learn from the mistakes of others," she said. Berg concluded that "the future belongs to those who make plans for it." #Africa#Russia#energy#StateDuma

AREA

@area_eng · Post #18 · 25.07.2024 г., 18:06

The State Duma discussed the possibilities of cooperation between Russia and Africa in the field of energy On the topic of comprehensive cooperation between Russia and the African continent, the State Duma hosted a round table "Strategic session on legislative support for economic cooperation with African countries in the energy sector", organized by the Expert Council under Deputy Chairman of the State Duma Alexander Babakov and the African-Russian Energy Association. At the moment, the work of Russian energy companies on the territory of the African continent is complicated both due to the geopolitical situation and due to the lack of relevant experience and sufficient support measures. One of the main tasks of the round table was to identify current problems and barriers that impede the implementation of energy projects on the territory of the African continent. Andrey Gromov, a member of the Board of the African-Russian Energy Association, noted that in order to develop an integrated approach, it is necessary to work out a development roadmap. "We have already concluded partnership agreements with African business associations, which number several million enterprises across the continent, as well as with energy associations and a number of bilateral contracts at the country level of relations," he said. #Africa#Russia#energy#StateDuma

AREA

@area_eng · Post #15 · 19.07.2024 г., 20:50

The State Duma will discuss the development of energy projects in Africa On July 25, the State Duma will host a "Strategic session on legislative support for economic cooperation with African countries in the energy sector." During the event, legislators, representatives of major companies, officials and experts will answer questions regarding systemic barriers that trouble implementation of joint projects and which measures can be proposed to support and stimulate Russian energy companies to effectively implement infrastructure projects on the African continent. One of the main objectives of the round table is to identify current problems and barriers that impede implementation of energy projects on the territory of the African continent. Approaches to international cooperation in the framework of energy projects will also be developed. The event is organized by the Expert Council on the Development and Support of Comprehensive Partnership with African Countries of the Deputy Chairman of the State Duma of the Federal Assembly of the Russian Federation A.M. Babakov and the African-Russian Energy Association (AREA). #Africa#Russia#energy#StateDuma

International News

@intnewsagency · Post #8672 · 19.03.2026 г., 17:31

State Duma Deputy: Telegram Works Through Parliamentary Wi-Fi Deputy Mikhail Delyagin revealed that Telegram operates freely on the State Duma’s Wi-Fi network. Previously, both mobile and fixed internet, including messengers, were inaccessible in the building. This contrasts sharply with the ongoing Telegram ban for the Russian public, raising security concerns, especially in Belgorod region. Why is Telegram prioritized for lawmakers but blocked for ordinary citizens? #StateDuma#Telegram#InternetBan#Russia The main news of Russia and the world ishere.

AREA

@area_eng · Post #40 · 13.10.2024 г., 18:40

Cooperation between Russia and Africa in the area of mineral resources requires legislative support Round table "Legislative support for economic cooperation with African countries in the area of subsoil use" will be held on October 14. During the event, representatives of government bodies, scientific organizations, business structures, development institutions, and state corporations will discuss possible measures to establish joint work between our country and the states of the continent. As part of the round table, Andrey Gromov, member of the board of AREA, founder of the consulting agency GR-Group, will present his vision. ❗️The purpose of the discussion is to develop proposals aimed at stimulating the development of economic relations between Russian companies and African partners in the field of subsoil use. 🗓Date and time: 14.10.2024, 14:00. The broadcast will be available on the website of the State Duma. #AREA#RussiaAfrica#cooperation#StateDuma

International News

@intnewsagency · Post #8532 · 16.03.2026 г., 18:16

Key Updates at 21:00: State Duma Debates Exit Fee The State Duma is reviewing a new fee for leaving Russia. Trump urges China, Japan, and South Korea to help unblock the Strait of Hormuz and seeks to involve allies in the Iran conflict. Airstrikes hit Kabul, Afghanistan’s capital. The leader of the Svintsov party faces possible expulsion due to a clash with Telegram. Trump declined to comment on deploying 5,000 US troops to the Middle East. #Russia#InternationalNews#Trump#StateDuma#Afghanistan The main news of Russia and the world ishere.

International News

@intnewsagency · Post #9407 · 28.04.2026 г., 17:40

Russia Proposes Unified Pet Registry The St. Petersburg Legislative Assembly has initiated a bill to create a unified registry for pets, requiring mandatory registration and tagging. The draft law is now in the State Duma. Owners must register their animals, aiding quick recovery if lost and identifying owners in case of damage. The government will approve which animals must be registered. A similar proposal led by deputy Nina Ostanina previously gained committee support. #Russia#pets#registry#law#StateDuma The main news of Russia and the world ishere.

NIDO Russia (НИДО)

@nido_russia · Post #1886 · 20.11.2024 г., 10:00

🇷🇺🇳🇬NIDO Russia represented by its Chairman, Dr. Godwin Ibe honours the privilege to be part of the work group at the National Legislature to regulate infobusiness and blogosphere in Russia in the interests of Russia and by extension Nigerian residents in Russia. More details to come soon! Dr. Godwin Ibe, Chairman, NIDO Russia ------------------------------------------ 🇷🇺🇳🇬НИДО в лице ее председателя, Ибе Годвин Е., удостоен чести быть частью рабочей группы в Законодательном собрании штата по регулированию инфобизнеса и блогосферы в России в интересах России и, соответственно, нигерийских резидентов в России. Скоро появятся подробности! https://t.me/nido_russia/1886 Доктор Годвин Е. Ибе, Председатель, NIDO Russia #stateduma#duma#gosdum#ГосДум#infobusiness#blogosphere

NIDO Russia (НИДО)

@nido_russia · Post #1728 · 22.07.2024 г., 19:41

🇷🇺🇳🇬The State Duma extends hand of friendship to Bloggers/Influencers/Team Leaders/Organisation Heads During the focus group session at the state Duma, we discussed ways of promotion and self regulation of the information space to promote information exchange, consultation and education, as well as to prevent fraud/propaganda. The legislative arm of the government (State Duma) made commitments to work together with bloggers, influencers and consider all their suggestions. The Federal tax service present at the meeting also threw more light on favourable tax policies for bloggers. NIDO Russia encourages all influencers and bloggers amongst us to come together to organise/prioritise the dissemination of information in our interests to take advantage of new and existing state policies related to the information space and ensure our collective socioeconomic development. Yours in service, Dr. Godwin Ibe Chairman, NIDO Russia Subscribe: @nido_russia https://t.me/nido_russia/1728 #stateduma#duma#госдума#дума#nido#nidorussia#blog#infospace#infotech#Nigeria#Russia