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

Резултати

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

Търсене: #settleton

当前筛选 #settleton清除筛选

🗿STON.fix SettleTON The SettleTON team, after six months of hard work, has successfully deployed a refarming contract on TON, powered by STONfi v2 technology! ❓What is SettleTON for? When farming in a liquidity pool, reinvesting earned tokens is often unprofitable, so SettleTON decided to take on this task: Each pool regularly reinvests rewards into the pool, no longer needing to manually claim rewards. This solution optimizes fees as all users' funds are reinvested jointly. 🔗Try SettleTON 💬 The STON.fiteamnoted: This collaboration is proof of what’s possible in TON when innovation meets execution. We’re proud to provide the infrastructure powering this DeFi breakthrough. #STONfi#TON#SettleTON

❤️SettleTON is a finalist of The Open League Hackathon 🔒SettleTON is a platform for passive investments in the #TON ecosystem. Managing your crypto portfolio will be available in one click by purchasing an index for tokens and providing the possibility of automatic reinvestment. The project was one of 24 finalists out of 963 hackathon projects from the TON Foundation for $2,000,000. It is already known that #SettleTON is guaranteed to take home $10,000 in prize money and $10,000 in Telegram Ads as a hackathon finalist. 🚀AIRDROP from 20% of SettleTON prize money The team announced an upcoming airdrop of 20% of the SettleTON prize money from the hackathon, in gratitude for the incredible activity and support of the community. #Airdrop will be issued to everyone who holds their NFT and has at least 1 index token. As soon as the team receives prize money from 🤑 TON Foundation awards will be sent to all qualified participants. The rules published here. How to get the airdrop? 1. Log in to the bot 2. Get your ref. link 3. Invite as many frens as you can 4. Get the NFT of the project 5. Buy any of the SettleTON indexes. 🏅 On July 21, the three finalists of the #DeFi track will be determined with prizes of $35,000, $25,000, $15,000 respectively. We wish the project team to win the hackathon!❤️

🪄Reward Points and AirdropfromSettleTON🎈 SettleTONsent out the airdrop to its early users, immediately after receiving the prize from the TON Foundation for winning the hackathon. The conditions for receiving were: owning a SettleTON Lounch Pass NFT and buying an index for any amount from 1 TON. The snapshot was made on this 24.08.2024 at 22:00 UTC. 🪙We got 10 $TON to the balance Auto-reinvest is now available to everyone, in addition to this, the project is launching the Reward Points system this week. 💎Holders will get access to the APY Calculator and a $7,000#airdrop. Replenish liquidity in the app, get bonuses for owning exclusive NFTs and invite referrals. The more activity — the more rewards! Details in this guide (RU). ➡️Start reinvesting in SettleTON 🗓Reward Points system launching this week! #HODL#SettleTON#index

SettleTon Opens Up Its Tools to the Public 📊 Now each of us can use financial instruments in the SettleTON bot absolutely free of charge, whereas previously it was necessary to have a special NFT (floor ~47 TON). 💰 In our last post, we already mentioned the $7,000 #airdrop for NFT holders. Today, the team provided more details: In the coming days🪙Ton Foundation will award the finalists of the TOL Hackathon. Within 24 hours of the awarding of the prizes, we will hold an airdrop of $7,000 for early holders of the SettleTON Privileged Access NFT collection. 🧮 The team also introduced a new tool – APY Calculator. We will be able to quickly calculate our profitability directly in the bot. But this function will first be available to early #NFT holders, and they will test it until September 10. 🔥 Towards the end of August #SettleTon will launch a RP (Rewards Points) system for supplying liquidity and release "something really cool". 🗓 We are waiting for a "tasty" airdrop, getting ready for RP farming and index investing - this strategy is especially suitable for beginners and inexperienced traders. #invest#index#TON#crypto#trading SettleTON | GitBook | Chat EN | X

SettleTON v2.0 Major Release, WEB3 Collaboration, and instructions how to get SBT 🔄 The "v2.0" trend continues — after the recent Ston.Fi v2.0 update, we have the SettleTON project next in line. Below, we'll look at what's been added and updated in the new version: ➖ Improved MID-Risk index: Critical errors were fixed, increasing protocol stability. New #MetaVault system, which optimizes asset storage and makes the reinvestment process more efficient. ➖ Improved reliability: All asset contracts (vaults) now use their own database and infrastructure😊#SettleTON, therefore the balance and quality of reinvestment increases. ➖ A new section has appeared in the bot, in which you can earn RewardPoints (RP) for completing missions from SettleTON and their partners. 🫡SettleTON x WEB3 partnership and increased farming rewards: Team #WEB3 gave a good boost to their pool, you can see and touch it in the bot , in the "Vaults" tab. Also, soon Ston.fi pools will appear in SettleTON (ST), in their post they described the advantages of ST compared to direct deposits through #DEX. 🙏#SBT Hunting, featuring SettleTON: The popular staking project #JVault has launched a campaign in connection with the resumption of The Open League. For simple actions in Quest Bot and DeFi projects — providing liquidity, staking, swaps, subscribing to a channel, we have the opportunity to get an exclusive SBT. Plus, for all these shenanigans, we get additional points and rise in the #OpenLeague ranking, and then 🍔#TON itself. SettleTON | GitBook | Chat EN | X

SettleTon and Portfel Collaboration 🔥SettleTon has recently partnered with #TorchFinance, this time by adding a new project to the list – #Portfel. 💼 Portfel's goal is to become the main application for tracking our assets: all tokens, staking on multiple #DEX, provided liquidity, rewards, and using all the necessary #DeFi applications. The team shared their immediate plans and roadmap: 🟡#NFTs and their valuation 🟡Support for multiple addresses 🟡Staking platforms - #Tonstakers and #jVault 🟡Vaults by Storm.tg 🟡Token swaps via the best Dex Aggregator 🟡Token details page 🪅DeFiLlama also included#SettleTon on their platform, adding transparency and value for users. SettleTON | GitBook | Chat EN | X