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

Резултати

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

Търсене: #stonfi

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

@tonlines · Post #7710 · 04.12.2025 г., 14:03

STON.fi and EVAA: Live DeFi Session Starting Soon #TON#STONfi STON.fi is hosting an educational session in collaboration with EVAA, starting in 1 hour. The session will cover practical looping strategies and advanced DeFi techniques on TON, and participants can win $300 in STON & EVAA tokens for the best questions. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7685 · 02.12.2025 г., 16:19

⚡️The Open Platform: STON.fi DAO Launches for Direct Community Involvement #STONfi#TON The Open Platform announces that STON.fi DAO is now live, enabling community members to directly participate in proposals and vote on vital decisions. This development aims to achieve practical decentralization and a transparent governance model in the TON Blockchain DeFi ecosystem. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7621 · 26.11.2025 г., 08:57

Integrate STON.fi with Your App via Toncoin #STONfi#TON Toncoin shares how developers can integrate STON.fi liquidity into their React apps to enable users to earn rewards and connect with the TON DeFi ecosystem. The integration features simple SDK/API setup and compatibility with Tonkeeper and TON Wallet. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7570 · 21.11.2025 г., 15:48

⚡️STON.fi Celebrates 3 Years with Community Contests #TON#STONfi STON.fi marks its three-year anniversary by hosting two contests on X (ex-Twitter). Participants can join the STON MEME CHALLENGE or share their STON STORY to win unique prizes. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7495 · 17.11.2025 г., 13:11

STON.fi: New Integration with Gas Pump on TON #STONfi#TON STON.fi has partnered with Gas Pump, the Telegram-native launchpad, to facilitate token launches on TON. This integration allows tokens that reach the 1,000 TON bonding curve milestone to launch directly on STONfi, providing their communities with access to its swapping and liquidity services. This collaboration enhances the accessibility and discoverability of new projects for users. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7046 · 05.05.2025 г., 10:39

Tonstakers: April Achievements and Collaboration #TON#STONfi Tonstakers reported strong growth in April with a TVL of 69.5M TON and over 100K users. Highlights include collaborations with EVAA and Storm Trade, the launch of tsTON/TON WStableswap pool on STON.fi, and integration into the xDelta aggregator. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7622 · 26.11.2025 г., 09:10

TON Community: Integrate STON.fi Liquidity Easily #STONfi#DeFi TON Community highlights how developers can integrate STON.fi liquidity into their React apps with minimal code. This integration allows users to earn rewards from idle tokens and enhances user engagement with DeFi participation. Source: link @tonlines

Hashtags

🗿STONfi: A Grand Bug Bounty Program With $500K Fund The DEX team, in collaboration with HackenProof and Certik, launched a Bug Bounty program for the STON.fi v2 smart contract with a prize pool of $500,000. White hat hackers who discover vulnerabilities and security issues can expect a reward of up to $100,000 depending on the severity of the issue. The v2 contracts are published on github. ⚠️Important: All tests must be performed exclusively in testnet. 💬 At STON.fi, we aim to create the safest platform for exchanging assets on TON. Your knowledge helps us build one of the most reliable platforms in the TON ecosystem. — STONfi Team Also, a detailed guide on the operating principles and capabilities of STON.fi has been released on beincrypto. 🔗Read the STON.fi guide #STONfi#TON#DEX

🗿Protection against impermanent losses continues Ston.fi has extended partial protection against intermittent losses for another month. This will be the 3rd month in a row that liquidity providers in the STON/USDT pool can get compensation for intermittent losses. To participate in the protection program, you must supply liquidity to the STON/USDT pool before February 1st. Other conditions remain unchanged: ⚪️ Will last until February 28 ⚪️ Compensation for up to 5.72% of non-permanent losses ⚪️ Monthly protection budget - $10,000 ⚪️ Payout up to $100 in STON tokens 🏦Become a liquidity provider #Stonfi#DEX#TON

🥇Create an infographic to win a prize! STON.fi has launched a creative infographics competition with a 💵1,500 prize pool. To participate, just complete 4 steps: 🟢 Create an infographic about current trends in cryptocurrency. 🟢 Post it to the CoinMarketCap Community mentioning @ston_fi, $STON and $GEMSTON. 🟢Follow @ston_fi on CoinMarketCap. 🟢Submit your results before February 10. You can submit any number of works. You can see examples of infographics here, here and here. You can read more about the competition on the official STON.fi channel #Stonfi#DEX#TON

🗿Safe farming on STON.fi Provide liquidity to the STON/USDT V2 pool before January 1st and share 10 000 STON with extended partial impermanent losses protection! Farming ⚪️ Will last until January 25 ⚪️ LP tokens are not locked Protection against intermittent losses ⚪️ Will last until January 31st ⚪️ Compensation for up to 5.72% of non-permanent losses ⚪️ Monthly protection budget - $10 000 ⚪️ Payout up to $100 in STON tokens ⚠️ Important: to get the compensation, you must provide liquidity before January 1st. ℹ️How to farm on Ston.fi #Stonfi#DEX#TON

🗿Impermanent loss protection on STON.fi The DEX team has introduced a feature designed to protect liquidity providers from impermanent losses. ❓How does this work? Any liquidity provider has probably encountered impermanent losses. They occur when the price ratio of tokens in the liquidity pool changes significantly. The protection function is aimed at partially eliminating these losses. Detailed information: ⚪️ The protection works only in the STON/USDT V2 pool. ⚪️ Compensation for losses of up to 5.72% (this corresponds to a 50% decrease in the asset price). ⚪️ The monthly protection budget is limited to $10,000. ⚪️ The maximum payout per user is $100. ⚪️ Payments are made in STON automatically. ⚪️ Works in case of a decrease in the STON rate within the specified period. Full terms and conditions are available here. The protection will be in effect from December 12 00:00 UTC to December 31 23:59 UTC. It’s a discretionary program, not an insurance product and does not provide you any guarantee of full reimbursement and should not be relied upon as a guarantee of returns. #Stonfi#DEX#TON

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