Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области.
Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него.
"Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!"
Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее.
Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то.
С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше.
Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс.
В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков.
#dev
⛱ Airdrop : Token Hunters
🔥 Reward Pool: 100.000 $HUNT
🌐 Website : https://tokenhunters.app/
📜 Whitepaper : Whitepaper Page
🏅 Winner : 20 Random
🔗 Airdrop Page : Airdrop Link
=====================
🪧 Tasks : Go to Airdrop Link👆
✅ Follow Twitter
✅ Join Telegram Group
✅ Join Telegram Channel
✅ Join Discord
👍🏽Complete all the tasks
📃 Information
🔸Token Hunters is a #playtoearn mobile game working with the AR technology
⚠️ Disclaimer: Please do your own research before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens.(DYOR)
🏁 End Date: July 31,2022
🚀 Distribution Date: Within a week after airdrop ends
🚨SingSing Airdrop Criteria Explained🚨
1. Mandatory Criteria 📌
To qualify, you must:
✅Connect Wallet (EVM&TON)
✅Own a KTV NFT or a Karaoke Box NFT (Rare or higher)
✅Upgrade Building Level to 6 or above
2. Scoring System 🔢
✅1 Day Wallet Check-in: +20 points (Counting from Sep 27)
✅Invite a Friend: +50 points per invite (Counting from Sep 22)
✅1 Supreme Spin: +50 points per spin (Counting from Oct 22)
✅Have NFT Point: +10 points per NFT Point
✅Chat in SingSing Group: +1 point per 100 messages (capped at 500 points/day per user)
✅Reach a Successful Business Rank or higher: +100 points
To receive the airdrop, you'll need to meet all mandatory criteria and achieve a high enough score—minimum score requirement will be announced soon! 🏆
Note: This is our first major airdrop ahead of SingSing's token listing. Even after the listing, our game will continue to offer play-to-earn features and more airdrop events! 🌟
#SingSing#Airdrop#PlayToEarn
🎤Announcement | Chat | X (Twitter) | Website | Game
Archon и его мысли о крипто трендах на 2022 год.
(энтузиаст GameFi. Бизнес-разработчик/ Ведущий подкаста Qi)
1/ Это личные мысли по темам, которые меня волнуют, и они не являются финансовыми советами
2/ Кросс-чейн станет реальностью. Акцент сместится с базовых протоколов и платформ на dApps, которые будут построены на разных уровнях и разных сетях. В конце концов, пользователи dApp перестанут напрягаться: «А, в какой я сейчас сети?»
3/ Повышенное внимание к приложениям также приводит к большей осведомленности о пользовательском опыте (UX). Это включает в себя лучший дизайн пользовательского интерфейса, а также предоставляет простые в использовании приложения, которые помогают реальные проблемы.
4/ Кто лучше всего разбирается в UX-дизайне, а также предоставляет ресурсы, когда речь идет о финансовых приложениях? CeFi. Поэтому я думаю, что мы увидим больше CeDeFi приложений, которые объединят лучшее из обоих миров (например, собственные мобильные приложения + DeFi доходность и возможности).
5/ Мы увидим огромное количество новых крипто платежных приложений, которые поставляются как с виртуальными, так и с реальными дебетовыми / кредитными картами. Кто сможет привлечь клиентов, предлагая программы лояльности и полезности, оставаясь в курсе текущих тенденций в области инвестиций в криптовалюту?
6/ HODL больше не работает, за исключением основных токенов, таких как $BTC или $ETH . Рынок все сложнее предсказать, суб-тренды возникают быстро и исчезают навсегда. Удержание «трендовых монет» в течение нескольких месяцев может полностью убить ваш баланс
7/ Просто приведите несколько примеров из 2021 года, когда мы увидели набирающую популярность тенденцию рынка и абсурдные оценки не только лидеров рынка, но и сотен проектов "я тоже": токены с собачками, NFT PFPs, клоны Olympus, это то, что всплывает в памяти сразу.
8/ В 2022 году «война» между Ethereum L2 (Optimism, ZKrollups, сайдчейны) L1 EVM-совместимыми альтернативами ( Avalanche , BSC ) и альтернативами L1 без EVM (Solana, Terra ) усилится и победители смогут увеличить свое преимущество.
9/ Как упоминалось в начале, приложения станут кросс-мульти-чейнами и будут двигаться независимо от базовых блокчейнов. Они будут развертываться там, где находятся пользователи и где можно привлечь еще пользователей.
10/ Еще одним победителем этой тенденции станут решения для кроссчейновой инфраструктуры, такие как ComposableFin или CoinwebOfficial, поскольку dApps должны сосредоточиться на своих основных компетенциях и нуждаются в простых решениях для развертывания в максимально возможном количестве полезных блокчейнов (включая собственный токен).
11/ 2022 будет годом #GameFi и #PlayToEarn. Множество новых (AA +) игр будут выпущены и штурмом захватят рынок. Игроки (особенно в мобильные игры) будут стремиться к этим новым играм, имея возможность заработать хоть немного денег за свое потраченное время.
12/ Крупные компании (Ubisoft, EA, Activision и т. Д.) Включат PlaytoEarn в часть своих игр, объявят о партнерстве и совершат приобретения в этой новой рыночной среде. Это может стать самым большим ускорителем внедрения крипты в обычную жизнь
13/ Я не могу предсказать общий рынок крипты, но я верю, что мы увидим органичный рост основных рынков плюс сильную консолидацию (и высокую волатильность) на рынке альтов, исходя из тезисов выше
14/ Стейблкоины покажу дальнейший рост, но мы также можем стать свидетелями некоторых определяющих тенденций с точки зрения регулирования, которые будут либо говорить в пользу более децентрализованных монет, таких как $UST , $MIM или $DAI , либо централизованных версий, таких как $USDC , $USDT или $BUSD
15/ terra money будет продолжать расти быстрыми темпами, чему способствует спрос на $UST и запуск десятков новых протоколов в его блокчейне. Я думаю Terra закрепит свое место в качестве второй по величине сети DeFi после Ethereum
Оригинал
🎧⤴Hamster Kombat Players Race to Unlock 5M Coins with Cipher Code and Combo Cards – Big Exchange Listing Looms!
Today, Hamster Kombat fans are scrambling to solve the latest cipher code (260924) and collect combo cards for a chance to earn up to 5 million in-game coins. The combo cards for September 9 include IT Team, Telegram Miniapp Launch, and Oracle, offering massive rewards when combined.
► Full News (Expand)
Verse 1:
Yo, it’s Hamster Kombat, we grindin’ all day,
260924, that cipher code’s the play,
IT Team, Oracle, they pave the way,
Telegram Miniapp, 5 million coins to slay.
Chorus:
Combo cards in hand, we gettin’ that bag,
Bybit listing soon, no time to lag.
Bitfinex comin’, the hype’s real, no cap,
Hamster Kombat’s takin’ over the map.
Verse 2:
Hit that mining section, gotta find the gold,
PR and Web3, that Oracle’s bold.
September 26th, the date they foretold,
HMSTR token, watch that market explode.
Chorus:
Combo cards in hand, we gettin’ that bag,
Bybit listing soon, no time to lag.
Bitfinex comin’, the hype’s real, no cap,
Hamster Kombat’s takin’ over the map.
Bridge:
From Telegram to the crypto scene,
Hamsters runnin’ wild, it’s like a dream.
Millions on the line, so hit that scheme,
HMSTR’s gonna reign supreme.
Verse 3:
Millions of users, we’re settin’ the pace,
Top of the charts, this game’s an ace.
With cipher codes and combos, we’ll embrace,
That HMSTR drop, it’s a crypto race.
Chorus:
Combo cards in hand, we gettin’ that bag,
Bybit listing soon, no time to lag.
Bitfinex comin’, the hype’s real, no cap,
Hamster Kombat’s takin’ over the map.
#HamsterKombat
#PlayToEarn
#TONCryptoNewsRapStyle
🎧@toncoin_rap
🎧⤴
🐹 Hamster Kombat Airdrop Sparks Outrage as Cheating Scandal Erupts!
The Hamster Kombat game, popular for its tap-to-earn mechanics, is making waves on X (formerly Twitter) as its long-anticipatedHMSTR airdrop nears on September 26. However, controversy has surfaced after the introduction of a new anti-cheating mechanism, which has penalized many users for unfair practices.
► Full News (Expand)
Chorus:
We grind for the coins, but it’s never enough,
Cheaters slide through while we’re calling their bluff,
Hamster Kombat, yeah, we giving our all,
Now they tryna trip us, but we ain’t gonna fall.
Verse 1:
I spent hours, days, stacking up that score,
Tapped ‘til my fingers sore, but they want more.
Season two’s coming, diamonds in the air,
But I ain’t getting paid, tell me how that’s fair?
Cheaters in the game, yeah, they messing with the flow,
Claiming rewards that they never even know.
We played by the rules, but they act like it’s wrong,
Now we hit the X, and we singing this song.
Chorus:
We grind for the coins, but it’s never enough,
Cheaters slide through while we’re calling their bluff,
Hamster Kombat, yeah, we giving our all,
Now they tryna trip us, but we ain’t gonna fall.
Verse 2:
Airdrop's coming soon, but the clock’s ticking slow,
Interlude season, where my diamonds though?
Tried to play fair, now they cut me from the race,
Watching cheaters cash in, it’s a real disgrace.
Weeks of my time, all gone in a flash,
Can’t even earn now, they took away the stash.
Yeah, I know I’m tight, but it’s deeper than loot,
It’s the hard work lost, now we’re all in dispute.
Chorus:
We grind for the coins, but it’s never enough,
Cheaters slide through while we’re calling their bluff,
Hamster Kombat, yeah, we giving our all,
Now they tryna trip us, but we ain’t gonna fall.
Verse 3:
We out here waiting, watching every post,
But in this new world, it’s the cheaters who boast.
They got their tokens, we got our shame,
Feels like the devs ain't playing the same game.
We’re the CEOs, building up from the dirt,
But they don’t see us, they don’t feel the hurt.
Season two’s coming, and we’re still here,
But Hamster Kombat, you gotta make it clear.
Chorus:
We grind for the coins, but it’s never enough,
Cheaters slide through while we’re calling their bluff,
Hamster Kombat, yeah, we giving our all,
Now they tryna trip us, but we ain’t gonna fall.
Bridge:
It’s a fight for the future, a grind for the crown,
We keep tapping in silence, won’t let us drown.
Diamonds or tokens, it’s deeper than play,
Hamster Kombat, we here to stay.
#HamsterKombat#TON#PlayToEarn
#TONCryptoNewsRapStyle
🎧@toncoin_rap
🌟 Welcome to Mystic Garden 🌟
🌱 What to do?
1️⃣ Grow Your Garden: Plant seeds, harvest Crystals, and sell them for GOLD to upgrade your garden. 🌺💰
2️⃣ Complete Tasks & Events: Earn AURA, the most magical reward in Mystic Garden! 🪙✨
3️⃣ Unlock Secret Chests: Open Chests to reveal surprise rewards and treasures! 🎁✨
4️⃣ Elemental Forge: Craft powerful Pots and rare ELFs to strengthen your garden. 🔥🌟
5️⃣ Expand & Upgrade: Unlock new areas, upgrade your garden, and grow your magical empire. 🌳🏡
6️⃣ Invite Friends: Earn 20 AURA + cashback rewards when your friends join the fun! 🤝
🏆 What to Compete?
✔️Top Merchant: Sell the most Crystals and rule the market! 💰
✔️Top Pot: Own the rarest and most powerful Pots. 🌟
✔️Top Forger: Craft the most Pots/ELFs in the game! 🔥
✔️Top Referral: Be the ultimate community builder by inviting the most friends! 🤝✨
Are you ready to rise to the top? 🌸
#MysticGarden#PlayToEarn#Web3Gaming
🎤Announcement| Mystic Garden Game |Chat | Spotlight Channel
Genesis Birthday! 🌅 Biggest Contest Ever!
🌟 Lords of the Galaxy; the biggest SIDUS HEROES giveaway ever is here- worth over $55,000! 🤩
😱 5 LEGENDARY + 5 EPIC ACADEMY NFTs to the 10 most creative users - celebrate GENESIS Collection’s 1st birthday with us!
👉 Record a (max) 30-second vertical-oriented video with your sincere birthday wishes to the project. Your final words should be “See you in SIDUS HEROES!”
👉 Post it on one social media of your choice: Instagram, YouTube, Facebook, or TikTok.
👉 Tag our official channels:
- Instagram @sidus_heroes_official
- YouTube SIDUSHEROES
- TikTok @sidus_nft_heroes
- Facebooksidusheroes
👉 Add the main hashtag #Sidus2themoon (so we can find your video!)
and additional ones like #airdrop, #playtoearn, and #gamefi.
👉 Post a tweet with @galaxy_sidus, #Sidus2themoon, and a link to your video.
👉 Fill out this form: https://bit.ly/3RRQ0r2
Event Duration: 7 days - till September, 16th
How will the winners be determined?
👉 5 winners will get Legendary Heroes and be chosen via fair community voting.
👉 5 winners will get Epic Heroes and be selected by the SIDUS team.
Winners will receive their prizes directly through their in-game wallets.
See the full conditions on our blog.
The chance of obtaining a free Legendary Hero has never been so real! Mark this golden date, and do your best to win huge rewards.
Let’s say it together - “Happy Birthday Genesis Heroes!”
💣 The BOMB is ticking
The Bombie team has just announced the upcoming TGE of the $BOMB token — exciting times ahead!
2️⃣0️⃣Days Left.....................🔥
🙎♂️Keep on playing!
#Bombie#TON#Airdrop#GameFi#PlayToEarn#Web3
💥Metastrikers💥
🎥 Video information
It's the moment you have all been waiting for👀
Can you feel the meta shifting 🤯
🧨 Click links to find out details about our #IDOon@SeedifyFund, @RoseonFinance and @paid_network
🔊🆙
ITS WILL BE HUGE💣💣💣
#Metaverse#PlayToEarn
🚨 Missed $AXS & $PEPE ? Don't Miss Out SpotPlayArena Games 👀
🔥 SPOTPLAYARENA GAMES PRESALE LAUNCH IS LIVE 🔥
Get your #BNB and acquire your $SPAG tokens at this presale address 👇🏽
https://www.pinksale.finance/launchpad/0x8bE8BeABee110f78f0912D083687b03de2F0761E?chain=BSC
🚀SpotPlayArena Games is an upcoming #GameFi#PlayToEarn casual games trivia platform where players will play & earn big money.Join now before launch coming soon in some days time
🌍Their Social Media Links 👇
🔘 Twitter -https://twitter.com/spotplayarena1
🔘Telegram -https://t.me/spotplayarenagate
#Sponsered
🚨 Missed $AXS & $PEPE ? Don't Miss Out SpotPlayArena Games 👀
🔥 The Top #P2E casual Gaming platform that will provide Daily & Weekly Earning opportunities is Launching Soon.
🚀SpotPlayArena Games is an upcoming #GameFi#PlayToEarn casual games trivia platform where players will play & earn big money.Join now before launch coming soon in some days time
🌍Join their telegram through this verification post immediately before launch 👇
https://t.me/spotplayarenagate
#Sponsered