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

Резултати

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

Търсене: #daolama

当前筛选 #daolama清除筛选
TONlines – News

@tonlines · Post #7375 · 26.05.2025 г., 13:26

⚡️DAOLama NFT Lending: APY Increased to 3.64% #TON#DAOLama DAOLama NFT Lending announces an increased APY of 3.64% for their vault, offering higher yields for TON holders. With current liquidity being utilized efficiently, the deposit limit is set at 150,000 TON. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7311 · 21.05.2025 г., 15:07

DAOLama NFT Lending: Deposit Reopening in DAOLama Vault #DAOLama#TON DAOLama NFT Lending announces the reopening of deposits in the DAOLama Vault. With almost 100% utility reached, the channel invites users to take advantage of the new 150,000 TON limit and growing APY ahead of upcoming events. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7258 · 18.05.2025 г., 09:06

⚡️DAOLama NFT Lending: Buy TG Stars and Premium with TON #TON#DAOLama DAOLama NFT Lending has introduced the option to purchase TG Stars and TG Premium using TON directly within the DAOLama App. This update simplifies purchases, eliminating KYC requirements and supporting USDT in the next update. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #6947 · 28.04.2025 г., 16:21

⚡️DAOLama: Final Days of Anonymous Telegram Numbers Contest #Telegram#DAOLama DAOLama announces that there are only three days left until the end of the Anonymous Telegram Numbers Contest. Participants are reminded of the special annual interest rate of 10% on loans available until the event concludes. Partners provide additional offers to boost points. Source: link @tonlines

TONlines – News

@tonlines · Post #7419 · 28.05.2025 г., 14:21

DAOLama NFT Lending: Activate Your SBT Discounts #DAOLama#SBT The DAOLama NFT Lending channel announces the activation of discounts for SBT Tier-1, Tier-2, and Tier-3 tokens. Users can use the DAOLama App to claim their discounts and apply them to loans with Anonymous Numbers. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7100 · 08.05.2025 г., 10:08

DAOLama x CapsGame: Launch of 'Follow the Lama' Season #DAOLama#CapsGame The DAOLama NFT Lending (@daolama) channel announces its collaboration with CapsGame for the launch of the 'Follow the Lama' season. Players can now use DIAMOND chips as collateral to gain liquidity on the DAOLama App. The new season features exclusive tasks, a leaderboard, and rewards that include converting lama points into tickets for valuable in-game items. Source: link @tonlines

🦙DAOLama Team x TON Society Event! This month is set to be special for all Telegram Anonymous Numbers holders 🐶 Together with TON Society and leading DeFi partners, the DAOLama team has prepared a massive event that will grant number holders exclusive opportunities and benefits within the TON ecosystem 🤟 🏆Prizes & Rewards 🥇Zero-fee liquidity 🥈50% discount on fees 🥉25% discount on fees 🐷SBT & Lifetime Bonuses 🏆Top-10 – 10% discount 💎 Top-50 – 7% discount 💎 All participants – 5% discount 🪙Upgraded Benefits: 🟢Enjoy a reduced 10% interest rate (only during the event). 🟢Extended loan period of up to 2 months. How to participate? ✅ Prepare a wallet with your Telegram Anonymous Numbers NFT ✅Take a loan on DAOLama and use TON in DeFi projects ✅ Track your position on the Leaderboardand accumulate points Bonus Points from Partners 🤝Tradoor – 0.25 points per TON provided 🤝Ston.fi – 0.25 points per TON provided 🤝Rainbow.ag – 0.25 points per TON exchanged 🗓️The contest is live – don’t miss your chance! 🦙Join DAOLama now! #DAOLama#SBT#DeFi#TONSociety

🪅DaoLama launched vault in TON with APY 40% and announced the $LLAMA holder incentive program ❤️ A function has appeared to provide liquidity in the TON token, where 80% of the income from each issued loan is distributed among the owners of $DLP (contract address). APY's annualized return is currently ~40%. If you don't know what this means yet, we encourage you to read our post on the topic — What is the difference between APY and APR? Recently, the team announced an incentive program for holders of the $LLAMA project token — regular repurchase of coins from the market directly through #DEX, which is very important, and sending these tokens to their holders. ↗️ As the project grows, the ransom amounts will increase, but the dates will be kept secret to avoid manipulation of the coin rate. So in the long run it sounds very tasty for #LLAMA. And now the most interesting... ❤️ Each user who follows our referral link will receive a 100% discount, as well as 10% more $TON for the first loan or purchase on credit on the DaoLama marketplace. #DaoLama#staking#TON

💛 Storm joins the 🦙 DAOLama contest! We previously shared details about the DAOLama Team x TON Society event, which unlocked unique opportunities for holders of Telegram Anonymous Numbers 🐸Now, Storm Trade is joining the initiative — meaning you can now earn additional leaderboard points by using your TON-backed loans directly on the #Storm platform! Here’s how it works: ⚫️ Use your Telegram Number NFTs as collateral to borrow TON ⚫️ Earn 1 point on the leaderboard for every 1 TON borrowed ⚫️ Trade on Storm Trade with margin in TON to gain +0.25 points for each TON used ⚫️ Climb the leaderboard and earn rewards and utilities from DAOLama 🤝Storm and DAOLama are teaming up to bring even more opportunities to participants — don’t miss your chance to get involved! #DAOLama#SBT#DeFi#TONSociety#StormTrade