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

Резултати

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

Търсене: #milestone

当前筛选 #milestone清除筛选
Viral Today

@Viral_Today · Post #1758 · 23.01.2022 г., 13:00

🎉Thank you for 10.000 followers! Thank you all for commenting, reacting and sharing our posts. It is always great to hear back from you! You can always suggest a post or contact us through our bot @ChannelYTNBot Stay tuned for more content! YouTubeNews/ #milestone

Hashtags

Venezuelanalysis

@venanalysis · Post #1461 · 28.01.2024 г., 14:43

A blend of US aggression and Venezuelan opposition collusion has all but sealed CITGO's destiny. Discover how Washington and its local allies successfully acquired Venezuela's US-based refiner, valued at US $10-13 billion, by clicking here 👉🏽https://bit.ly/3OkSfn8. View and download the infographic in a single image. Don't miss out on these insights! #CITGO#Infographic#milestone

SingSing Announcement

@singsingchannel · Post #680 · 08.07.2024 г., 04:06

🚀 We did it! Our community keeps growing stronger with over 90K Followers on X and more than 1 million on-chain transactions! 🚀💫 🎉 The numbers are still climbing, and we couldn't be more grateful for your support. Together, we'll keep reaching new heights! 💪🔥 Read more and open treasure at: X Post #Milestone#CommunityPower#Blockchain#Crypto

SingSing Announcement

@singsingchannel · Post #692 · 11.07.2024 г., 08:59

🎉 Milestone Alert! 🎉 SingSing has officially surpassed 1.2 MILLION on-chain transactions! 🚀 Thank you to our incredible community for making this possible. Here’s to many more milestones ahead! 💪✨ Read more and open treasure at: X Post #SingSing#Blockchain#Milestone#OnChain#CryptoCommunity

SingSing Announcement

@singsingchannel · Post #752 · 06.08.2024 г., 08:19

New Milestone🚀🚀 We've just hit the milestone of 500,000 Web3 users utilizing SingSing SocialFi SDK! 🎉🚀 Thank you for your support and participation. This achievement showcases the strength and potential of the SingSing community! 💪✨ Keep exploring and enjoying the super cool features of SingSing! 💎🔥 #SingSing#Web3#SocialFi#Milestone#SDK

Venezuelanalysis

@venanalysis · Post #1751 · 20.09.2024 г., 23:39

When discussing historic speeches, one stands out: President Hugo Chávez at the UN General Assembly on September 20, 2006. He labeled U.S. President George W. Bush a war criminal and highlighted Western hypocrisy regarding democracy and peace—right from “the devil’s house.” Chávez criticized the UN for its alignment with U.S. interests and called for reform led by the Global South. He underscored the ongoing struggle for change and the potential for a better future. Click here to learn more and watch the key quotes 👉🏼https://shorturl.at/guOJh #Milestone#HugoChávez#UN#Revolution

TMONK Announcements

@tmonkannouncements · Post #28 · 25.03.2024 г., 22:54

💎TMONK as you know, was born to spread the word of Telegram and its founder Durov. We said that we want to become the first #crowdfunding and #charity platform and we are working on both fronts. And so we are really proud to present the first AMBASSADOR on the #TONBlockchain regarding the charity sector. A person of absolute morality and great devotion to the cause. That who has already given part of his life to helping people in the field and who knows the ton chain deeply 👀👀👀Jeribond.ton🆒🆒🆒 Our Ambassador brings with a wealth of experiences and knowledge that make him an outstanding choice to represent TMONK. We are honored to have his leadership and inspiration to guide others on our journey. This is the first step to build the foundation of a structure that can be the #milestone in this theme for ton chain 🤝 About Jeribond.ton🤝 After working in the humanitarian sector for 8 years, Jeribond.ton has just resigned and is focusing on Web3. Jeribond.ton worked in the neonatal and maternal health sector for this while, because over here women face a lot of pregnancy complications and also newborn babies pre or post. So JERI worked in the community by training the health workers, doctors, and nurses to best carry out their duties using best practices that work in other countries, and this helped to reduce the rate of how women die. Jeribond.ton was instrumental as he managed the supplies and supported the work in many ways; with a small team obtained funding from an international organization to carry out these projects. BioCM - $TON$BNX - BD lead & Advisor @Tonraffles - @Roolznft $Fish OG @binaryniglions@https://t.me/tonnigeria @https://t.me/TonNomadsChat This is a crucial step for the advancements of our project, and we are truly proud to announce this new and exciting collaboration. We aim to build something new, something incredible that can help all the people in need around the world. FOR THEIR #FREEDOM

SingSing Announcement

@singsingchannel · Post #894 · 13.10.2024 г., 16:43

🎉100,000 Players and Counting!🎉 A huge THANK YOU to our incredible community for making SingSing Tycoon such a massive hit! 💥 Your support has helped us reach this amazing milestone, and we couldn’t have done it without you. 🙌 Here’s to many more tycoon adventures ahead! 🏗️💰 #SingSingTycoon#100KPlayers#Milestone#ThankYou#GameFi 🎤Announcement | Chat | X (Twitter) | Website | Game

SingSing Announcement

@singsingchannel · Post #684 · 08.07.2024 г., 06:02

We've reached our first major milestone: 100K+ followers on X! 🎉 We hope the next 100K comes quickly with your continued support and interest. Thank you all! 🚀❤️ Read more and open treasure at: X Post #100KFollowers#Milestone#Grateful#OnwardAndUpward

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