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

Резултати

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

Търсене: #capsgame

当前筛选 #capsgame清除筛选
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

👊Fatality Package is live The arena burns with fire and lava – the atmosphere of an epic battle returns with the new ❤️CapsGame collection! 🔥 Total supply – 690,000 caps 🔥 Available in all packs: from Common to Legend 🔥 Each cap is a piece of the legendary universe, ready to become a weapon in your collection Collect, trade, and fight – the collection is already waiting for you! #CapsGame#TON#NFT#GameFi

🥴Whoaa! Chip utility is live, and farming has officially begun! Astrologers have announced a month of major updates in #CapsGame. Did you think that chips were just for fun? No, they are not. Now chips can be sent to ❇️ staking and receive CapsGame tokens for them. ❤️$СG Token 🟣 The first phase of farming starts today and will last 10 weeks, during which we will distribute 5% of the total token supply. 🟣 Starting today, 30% of purchases will be sent to the liquidity pool at capsgame-liquidity.ton. 🟣 This is just the beginning, there will be a lot of news and updates in the game over the next 10 weeks. Don't miss out! 📝How does staking work? Where the profile used to be, now lives a new beast called "Token". Let's figure out what that means: ➡️ You have 9 slots available for staking: 6 slots for chips of any collections, and 3 slots only for certain collections, which will change once a week, at 00:00 Moscow time on Wednesdays. ➡️ Each staked token generates a certain amount of tokens per hour (starting with EPIC). ➡️ The higher the grade and popularity of the feature, the higher the generation speed. ➡️ The higher the grade of the chip collection that is staked, the greater the bonus to the generation speed! Still confused? Hit the wiki for the full breakdown Game | Wiki | Chat | NFT collection #CapsGame#TON#NFT#GameFi

Festival season with Ton Festival and CapsGame! Our friends from ❤️CapsGame and 🔠TON Festival decided to join forces and launch a new season! A festive atmosphere, fresh activities, and, of course, a bunch of surprises — all this is already here! What's ahead? ⚫️6 Cool Chips for Your Collection ⚫️ Huge edition — 20,000 chips ⚫️ Leaderboards and festival activities right in the game! How to Earn you Tent Points 🏕 ⚫️ Completing dailies: 10 ⚫️ Mint of any chip: 50 ⚫️ Chip Madness Round Completion: 5 (no repeats) ⚫️ Upgrade your chips to Legend+ and higher — the cooler the chip, the more points! 🏅Prize fund — tickets🎫 giving cool bonuses and exclusive items await those who collect the most points at the end of the season. 🗓️The final day of the event is March 27. The store opens on March 28th — exchange tickets for cool prizes! 🫶Become a part of the main event of the year! #CapsGame#TONFest#Web3#TON

CapsGameon💎TON Community The game was mentioned on the official TON channel, perhaps a hint that it is a future participant of the League. CapsGame combines nostalgic gaming with innovative Web3 technologies, incentivizing active participation in the TON ecosystem through NFT trading. Players can earn rewards and profits from trading and upgrading their NFTs. The game offers a PvP mode for those who like to take risks and bet their NFTs on the outcome of a battle with other players, as well as a safe PvE mode in which the player trains by playing with bots. CapsGame also encourages engagement and competition through rankings and quests. And right now there is a new contest in BroBot together with #CapsGame in which you can get a unique SBT BroBot CapsGame and other prizes absolutely free. ☀️Complete tasks and get SBT! #NFT#SBT#TON#BroBot

🛋Ease In, Get Cozy, Enjoy ❤️CapsGame has become even more cozy — the team has updated the main screen! Now the mini-app has become even more cozy and addictive. No more associations with clickers — maximum nostalgia for the OG game Chupa Caps, so launch the game and immerse yourself in the atmosphere of childhood. Collect your favorite chips and turn valuable items into NFTs, which are already traded on #Getgems. Game | Wiki | Chat | NFT collection #CapsGame#TON#NFT#GameFi

💎CapsGame is launched! Caps are back from the 90s! 🧑‍💻CapsGame finished beta testing, fixed bugs and improved the app itself. Added in-game purchases for stars, plans to add support for payment in $TON and new activities based on the rating table 👌 The public release introduced a leaderboard that will be formed based on unique player collections. This means that each chip you collect will earn you points. By upgrading chips or completing collections, you will earn additional points. Each chip will be unique, with its own number, and collections will be strictly limited. More details. 🙂 For active participants of the beta test, special rewards were provided, which you can read about in this post. Play in our Yard and start collecting rare chips, let's try to rise in the district rating together!😎 1️⃣Go to bot 2️⃣ Come into our yard 3️⃣ Play and win! #CapsGame#TON#NFT#GameFi#ChildhoodComingBack