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

Резултати

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

Търсене: #xrocket

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

@tonlines · Post #6796 · 16.04.2025 г., 12:07

⚡️xRocket News: EVAA DeFi Quest Claim Phase Begins #xRocket#TON The xRocket News announces the official start of the Claim phase for the EVAA DeFi Quest on April 16, lasting until April 24. Over 30,000 participants were involved, with anti-fraud measures successfully eliminating dishonest play, ensuring fair reward distribution. Source: link @tonlines

Hashtags

TONlines – News

@tonlines · Post #7238 · 16.05.2025 г., 12:09

⚡️xRocket News: Staking Contest Success and Future Campaigns #xRocket#Telegram The recent staking contest on swap.coffee saw participants collect over 5,000 lottery tickets by staking more than 2,500,000 $XROCK, showing strong trust in xRocket's growth. While prizes have already been distributed, xRocket News announces a new campaign arriving next week, encouraging the community to achieve new trading milestones. Source: link @tonlines

TONlines – News

@tonlines · Post #7192 · 13.05.2025 г., 12:09

xRocket News: Exciting Contests and Prizes in May #xRocket#crypto xRocket News reports on the exciting contests rolled out in early May, despite the chilly weather. The channel announced winners for several events, including a lottery and a P2P traders contest, with impressive prize pools. Enthusiasts can still participate in an ongoing raffle by staking $XROCK. Source: link @tonlines

TONlines – News

@tonlines · Post #6732 · 12.04.2025 г., 10:04

xRocket News: Celebrate Cosmonautics Day with Stellar Prizes #xRocket#Web3 xRocket News is celebrating Cosmonautics Day with a special giveaway. Participants can win cosmic-themed prizes by purchasing and holding $XROCK tokens. Winners will be announced on April 18, with prize distribution on April 21. Source: link @tonlines

TONlines – News

@tonlines · Post #6834 · 18.04.2025 г., 12:03

xRocket News Highlights Staking Benefits on Swap.coffee #staking#xRocket xRocket News shares details about the staking opportunities for $XROCK tokens on swap.coffee. With a distribution of 333,333 tokens monthly and an APR of approximately 22.63%, users can benefit from staking. The initiative aims to support the xRocket ecosystem and offers increased returns for longer staking durations. Source: link @tonlines

⚠️Beware of scammers! Since the very morning, spam transactions appeared in the @xRocket bot with a message about the pre-sale of the $XROCK token. The official channel xRocket News✔️announced a reminder: We want to remind you that we held no presales or any sales at the moment, especially outside the bot. Don't send your funds to any wallets in order to buy $XROCK. All trades will be in pair XROCK-USDT at 11-00 UTC. There is no other place where you can buy $XROCK Attention! The #SCAM message comes specifically from the #xRocket bot and looks like a native message from the project, but it is just a comment on the transaction for 0.002 USDT

TONlines – News

@tonlines · Post #7315 · 21.05.2025 г., 17:12

Trading Competition: Baby Doge Coin on xRocket #xRocket#BabyDoge xRocket News announces the listing of Baby Doge Coin on xRocket with a trading competition. Participants trading the $1MBABYDOGE/$TON pair can win a share of the $5,000 prize pool, with the competition running from May 21 to May 28. Baby Doge Coin, a popular meme token on Binance Smart Chain, is now integrated with xRocket’s SocialFi tools. Source: link @tonlines

TONlines – News

@tonlines · Post #7692 · 03.12.2025 г., 12:11

xRocket News: xJourney Launches Wheel of Fortune #xRocket#xJourney xRocket News announces the launch of xJourney’s Wheel of Fortune, a new feature that allows community members to use xPoints for valuable prizes including tickets for mega-prize giveaways. The event will start once 500,000,000 xPoints are burned, with prizes such as a PlayStation 5 and $XROCK available. Source: link @tonlines

TONlines – News

@tonlines · Post #7562 · 21.11.2025 г., 12:14

⚡️xRocket News: Exciting Updates for xJourney #xRocket#xJourney xRocket News announces major updates in the xRocket ecosystem with xJourney now offering daily $XROCK payouts. The top 3 users on the leaderboard earn significant bonuses while others have opportunities through a daily raffle. Daily leaderboard resets ensure continuous engagement and reward distribution. Source: link @tonlines

TONlines – News

@tonlines · Post #7039 · 04.05.2025 г., 09:01

⚡️xRocket News: Epic Star Wars Giveaway Details! #xRocket#StarWars xRocket News presents an exciting Star Wars-themed giveaway with over 20 prizes worth more than 1,000 USDT for fans. Participants can earn tickets by purchasing and holding 500 $XROCK, with winners announced on May 14. All prize details are available on @rocketman's profile. Source: link @tonlines

✉ xQuest — What's Next? 💬The Earn phase in xQuest Launch has officially ended. Over 125,000 users completed various quest tasks: from learning basic xRocket features to mastering trading and staking. This impressive result demonstrates high interest in the new platform. ⏺➕Now the Calculationphase is going, during which the campaign results will be summarize. 💰 After calculations, the Сlaim phase will begin – from March 3rd to March 10th, participants of the first xQuest campaign can claim their earned rewards and share the prize pool of 300,000 $XROCK (~$7750). Trade on xRocket exchange #xQuest#xRocket

🚀$XROCK is now on CoinMarketCap and CoinGecko $XROCK token appeared on CoinMarketCapandCoinGecko, the largest crypto platforms. This means that you can now track all project information on independent sites in a convenient format. CoinMarketCap is the world's most popular cryptocurrency price tracking website, with over 350 million monthly visitors ! CoinGecko is one of the largest aggregators of information related to cryptocurrencies, tokens, crypto exchanges, NFTs, DeFi, which offers more than 11 thousand coins ⭐ Placing on these platforms will allow you to attract the attention of even more users and conquer new blockchain peaks! #TON#xRocket#token

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