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

Резултати

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

Търсене: #nest

当前筛选 #nest清除筛选

🥰 The New and Improved Nest.store is Live! After a short break, the marketplace for trading 📶Telegram gifts — nest.storeis back — refreshed and ready for a new season of digital deals. 🎁What’s new? ✔️ A complete redesign with an even more user-friendly interface — perfect for beginners 🎁 ✔️ Faster transactions and stronger protection ✔️ New mechanics for giveaways and great-value deals ✔️Just 5% commission🎁 — one of the lowest on the market! With nest.store, it’s not just about buying and selling Telegram gifts — it’s about winning, swapping smart, and enjoying the ride! 💙 🎁Explore nest.store — it’s live! #Nest#TelegramGifts#TON

🎁Gifts Giveaway To participate subscribe 1 Channel: @tonevents_en Prize pool (7 Gifts): Jack-in-the-Box #28785 Jack-in-the-Box #28304 Jack-in-the-Box #58809 Jack-in-the-Box #28166 Jack-in-the-Box #53131 Jack-in-the-Box #19667 Jack-in-the-Box #16181 🎁 Giveaway Powered by @nestore_robot #Nest#Telegram#Gifts#TON

🔥NEST Exchange NFT Sale Begins!🎰🎰 🪺DEX Aggregator Nest is more than just a DEX. It is a multifunctional platform with many features. The long-awaited product launch is coming soon. It is currently in the MVP stage, token swaps should be launched today. NEST NFTs are digital assets that provide access to unique features of the NEST platform. Owning these NFTs improves trading capabilities and unlocks additional privileges. 🪺Main types of NFTs Fast Transaction — access to the fast transaction mode, where transactions are carried out several times faster than on standard DEX exchanges. Sniper — the ability to almost instantly, automatically buy tokens when liquidity appears, which allows you to get the best entry point at the time of listing 🪺Benefits for NFT holders ⚡️For Fast Transaction NFT holders: ✔️ Unlimited access to fast transaction mode. Owners of these NFTs get lifetime access to fast swaps, which significantly reduces the time it takes to complete transactions. ✔️ Access to the closed NEST community Holders will be able to join an exclusive community where they can share experiences and knowledge. ✔️ Direct communication with the project team and the founder The privilege of interacting directly with the developers. ✔️ NEST merch and physical goods Unique products and merch provided exclusively for NFT holders. ✔️ Cashback 7.5% of transactions ✔️ Advanced referral system Increased bonuses for attracting new users. ✔️ Additional income in project points (NP) These points can be exchanged for tokens after the $NEST launch, increasing long-term profitability. ✔️ Airdrops from collaborations with other projects Owners will receive exclusive drops from NEST partner projects. ➡️For Sniper NFT holders: ✔️ Unlimited access to Quick Transaction Mode and Sniper Mode. Sniper NFT holders will be able to use Sniper Mode without restrictions. ✔️ Access to the closed NEST community and communication with the team. Includes all the perks of Fast Transaction NFT, but with additional opportunities for snipers. ✔️ NEST merch and physical goods Like Fast Transaction NFT holders, they will receive unique physical goods. ✔️ Cashback 10% from transactions ✔️ Expanded referral system and additional income in points (NP). Attracting users and participating in trading will bring Sniper NFT owners additional bonuses and points, which can be exchanged for $NEST token in the future. 👤Whitelist for participation in the $NEST token presale Sniper NFT holders will have privileged access to early rounds of the token sale, opening up additional investment opportunities. 🎁 Airdrops from collaborations with other projects Just like the Fast Transaction NFT, Sniper NFT holders will receive drops from partners. 🪺Limited quantity NFTs will be released in limited quantities via the #NEST platform Launchpad, increasing their value. 🔥Participate NFT-sale 🎰🎰Discount for whitelist owners. If you are not there yet, you should hurry:Mint\Add to Whitelist #NFT#TON#DEX#DYOR#NFR

🪺The new Telegram Gifts marketplace is here! 🎁Nest Store is the first p2p Telegram gift marketplace where all transactions are fully automated and easy to use. The marketplace is based on the P2P principle — a direct transaction between users without intermediaries and without the need to transfer gifts to the guarantor. Everything is as transparent and safe as possible. 🍪 🍪 The commission is only 5% per transaction, and for NEST NFT owners, trading is completely commission-free! For now, Nest Store is only for gift trading, but very soon the following will appear: ✔️ NFT marketplace ✔️ Sticker store ✔️ Star Shop 🎁Invite your friends and get a 40% commission on the sale of his gifts.The action is available for 3 days! 🎆 🍭Try Nest Store right now! #Nest#Telegram#p2p#Gifts