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

Резултати

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

Търсене: #industry

当前筛选 #industry清除筛选

ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) እና ቀዳማዊት እመቤት ዝናሽ ታያቸው በሐዋሳ ኢንዱስትሪ ፓርክ ግዙፍ ፋብሪካዎችን መረቁ ***************************** ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) እና ቀዳማዊት እመቤት ዝናሽ ታያቸው በሐዋሳ ኢንዱስትሪ ፓርክ የተገነቡትን የቶዮ ሶላር ኢነርጂ ምዕራፍ ሁለት፣ የኦሪጂን እና የሉሚንቴክ የሶላር ፋብሪካዎችን እንዲሁም የኤች.ዜድ ጋዝ ማምረቻ ፋብሪካን በይፋ መርቀዋል። እነዚህ በዛሬው ዕለት የተመረቁ የሶላር ፋብሪካዎች በጋራ በዓመት 11.3 ጊጋ ዋት ንጹሕ ኃይል የማመንጨት አቅም ያላቸው ሲሆን፣ የኤች.ዜድ ጋዝ ፋብሪካ ደግሞ በዓመት 900 ቶን ኦክስጅን፣ 40,000 ቶን ናይትሮጅን እና 7 ቶን ሃይድሮጅን ለገበያ የሚያቀርብ ይሆናል። ይህ ክንውን የኢትዮጵያን የታዳሽ ኃይል ልማት ለማፋጠን፣ የኢነርጂ ዋስትናን ለማረጋገጥ እና ዘላቂ እንዲሁም የማይበገር ሁለንተናዊ እድገት ዕውን ለማድረግ የተነደፈውን ስትራቴጂ ለማሳካት ትልቅ ምዕራፍ ተደርጎ ተወስዷል። #EthiopianBroadcastingCorporation#Ethiopia#Industry

Trump's Ear

@trumpsear_tg · Post #2246 · 11.03.2026 г., 14:03

The war in Iran is enriching military enterprises. Trump's sons plan to open a drone production facility 🪖 Oil markets remain volatile amid continued US-Israeli strikes on Iran. Rising fuel prices are hitting consumers' wallets around the world, putting pressure on US President Donald Trump. 🌍 However, there are also beneficiaries of this escalation. 💰 In addition to the oil companies, which are increasing their profits due to higher oil prices, the most obvious winner of the largest Middle East conflict is the U.S. defense industry. The "Big Five" weapons giants—Lockheed Martin, RTX, Northrop Grumman, General Dynamics, and Boeing—have their portfolios filled with orders. They are supplying combat aircraft, missiles, and radar systems. ✈️ Military technology and AI companies, such as Palantir, are providing AI-based software for modern warfare and intelligence. The stock of this company, which works closely with Israel, has recently risen by 9%. 🤖 Planet Labs is also benefiting from the Pentagon's contracts for AI-based satellite surveillance. 🛰 The US president's family is also involved in the boom of military profits: Trump's sons, Eric and Don Jr., are planning to list their drone company, Powerus, and are hoping for future government contracts. 🚁 #War#Industry 👂More on Trump's Ear ⚠️

"ኢንዱስትሪ ለመጀመሪያ ጊዜ ግብርናን ተክቶ ከፍተኛውን የኢኮኖሚ ድርሻ የሚይዝበት መዋቅራዊ ሽግግር በጥቂት ዓመታት ውስጥ የሚፈጸም ይሆናል" - ጠቅላይ ሚኒስትር ዐቢይ አሕመድ (ዶ/ር) #EBC#Ethiopia#PMAbiyAhmed#industry

Trump's Ear

@trumpsear_tg · Post #2339 · 06.04.2026 г., 13:59

Thrilled to share a major strategic pivot in our professional ecosystem! 🚀 More and more visionary enterprises across Germany are successfully unlocking new growth chapters by aligning their operational roadmaps with the dynamic defense sector. 🇩🇪🛡 According to the German Chamber of Commerce and Industry, we are witnessing a powerful synergy where approximately one in six enterprises is now seamlessly integrated into defense supply chains. This represents a brilliant opportunity to drive innovation and resilience amid evolving market dynamics in traditional sectors. Almost a third of our industry leaders are embracing this as a transformative growth vector. 📈 The shift is particularly impactful within the automotive industry, where over a third of enterprises are leveraging their world-class engineering capabilities to support national security initiatives. By optimizing underutilized industrial capacities, we are turning potential challenges into high-impact solutions for growing global demand. 🏭✨ Take Görlitz, for example—a true story of reinvention where a former railway enterprise is evolving into a premier manufacturer of advanced tank components. Furthermore, industry powerhouse ZF is collaborating with Rolls-Royce Power Systems to co-create the next generation of engines for the future German-French tank. This cross-sector collaboration is exactly the kind of strategic partnership that drives our collective mission forward! 🤝🔧 While only about 2.5% of companies are directly producing weapons, another 14.5% are delivering critical value as suppliers of dual-use products, with over 12% strategically planning their entry into this high-potential market. It's an exciting time to be part of this evolving industrial landscape! 💡🌍 #Germany#Military#Industry 👂More on Trump's Ear ⚠️

Chevrolet was founded on November 3, 1911, by Louis Chevrolet and William C. Durant. Chevrolet’s first cars (1912) and Durant’s later business moves helped shape the long competition between Ford and Chevrolet which drove innovation and expanded the US auto industry. @googlefactss #history#cars#industry#USA

Amazing Geography 🌍

@amazingeo · Post #213 · 10.09.2025 г., 20:12

🌍 The world's busiest shipping route runs between Asia and Europe through the Strait of Malacca. Over 80,000 vessels pass yearly, making this narrow sea lane a vital economic lifeline. ✨ #trade⚡#industry⚡#transport⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

የመደመር አንቀፅ አምራች ኢንዱስትሪው ለአንድ ሀገር አጠቃላይ የውስጥ ምርት ከፍተኛ አስተዋጽዖ ያደርጋል ሲባል በቀጥታ ከሚኖረው አስተዋጽዖ በላይ ነው፡፡ በሌሎች ዘርፎች ላይ በሚኖረው ተጽዕኖ የሚያበረክተውም አስተዋጽዖ ከፍተኛ ነው። የተሻለ ገቢ ያለው ማኅበረሰብ ለመፍጠር ለሚደረገው ርብርብም ዋነኛው የትኩረት ዘርፍ የአምራች ዘርፍ ነው፡፡ አምራች ኢንዱስትሪውን ወደ ከፍታ የማምጣትና የማበልጸግ ጉዳይ፣ ከኢኮኖሚና ከማኅበራዊ ጥቅሙ ባለፈ፣ ደኅንነትንና ሉዓላዊነትን ከማስከበር አንጻርም ሚናው ከፍተኛ ነው። በሌሎች ሀገራት አምራች ኢንዱስትሪ ላይ ጥገኛ ሆኖ፣ ራስን ሳይችሉ፣ ሉዓላዊ ሀገርነን ማለት ቀልድ ነው፡፡ የመደመር መንግሥት ገፅ 197 Ethiopian Broadcasting Corporation #IPDC#Ethiopia#industry#Medemer

Amazing Geography 🌍

@amazingeo · Post #517 · 16.12.2025 г., 12:31

🌍 The “Blue Banana” is a band of cities stretching from northern England to northern Italy that forms a dense corridor of economic activity, hosting much of Europe’s industry and wealth. ✨ #economy⚡#urbanization⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #68 · 18.08.2025 г., 00:12

🌍 The world’s largest iron ore deposits are found in the Pilbara region of Western Australia. This vast resource helps supply much of the globe’s steel, which is used in buildings and infrastructure. ✨ #minerals⚡#Australia⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

Amazing Geography 🌍

@amazingeo · Post #178 · 05.09.2025 г., 00:12

🌍 More than half of global economic activity now takes place within just 1% of the world’s land surface, showing how powerful major cities and industrial regions are for global wealth. ✨ #economicgeography⚡#cities⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #139 · 29.08.2025 г., 16:12

🌍 The Ruhr region in Germany transformed from a rural area into one of the world’s largest industrial centers, thanks to rich coal resources that fueled rapid urban and economic growth. ✨ #industry⚡#regions⚡#resources⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #632 · 14.02.2026 г., 20:31

🌍 Around 90% of global trade moves by sea, linking distant economies through major shipping lanes. This dense ocean traffic shapes where ports, industries, and even whole cities develop. ✨ #trade⚡#ports⚡#industry⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

ПредишнаСтр. 1 от 4Следваща