Сопоставление с образцом (pattern matching) — сильный механизм языков программирования, который, к сожалению, встречается не так часто. Причём, как в коде разработчиков, так и в поддержке со стороны самого языка.
Разработчики на функциональных языках используют этот механизм довольно часто, потому что у них вообще многое определяется статически через правильный подход к системе типов. Разработчики же на императивных языках очень любят огромные многоуровневые ветвления. Есть даже такое понятие «Спагетти-код» — раньше его применяли к коду, перегруженному операторами перехода, но в современном виде это скорее об избытке операторов условия.
Pattern matching позволяет накладывать на объекты некоторый трафарет и смотреть, попадают ли они под него. Это не только выглядит лаконичнее и короче, чем дерево условий, но ещё и понятнее с точки зрения восприятия человеком: вот у нас заказ содержит более 10 элементов и при этом стоит более 1000 долларов, значит делаем на него скидку 10 центов. При этом трафарет работает как сортировщик монеток: самая маленькая проваливается в первый паз, следующая по размеру в следующий итд, применение условий идёт сверху вниз. Есть и неявный плюс: такой подход автоматически провоцирует разработчиков проводить проверку на null. Ведь null не может подходить под трафарет «содержит более 10 товаров».
К счастью, в C# этот механизм в последних версиях активно развивают и совершенствуют. И это одно из многочисленных преимуществ C# над Java.
#dev
На просторах интернета наткнулся на китайский стартап Dora AI. Пишешь промпт — и вуаля: анимация таблиц, инфографика, визуализация карт, симуляция чатов и куча всего.
Выглядит круто, но что-то слишком уж гладко и просто. Не тянет ли на очередной развод с «ИИ»? Чувствую, за ширмой тысяча индусов пашут. 😅
Были же прецеденты:
1. Builder.ai (оценка $1,5 млрд) обещал кодить софт и упростить разработку программного обеспечения до уровня "заказа пиццы", а на деле 700 человек вручную работали, обманув Microsoft и Amazon на $500 млн.
2. Kaedim хвастался 3D-моделями от ИИ, но их лепили люди из Аргентины и Индонезии за $1–4.
Dora AI — реальный ИИ или очередной фокус? Можно зарегаться на ранний доступ через Discord
#earlyaccess#ainews | AcidCrunch
🔥 20,000+ Runs and Counting — You’re Forging Legends!
Forgers, you’re absolutely unstoppable🚀
Together, you’ve already completed over 20,000 runs — and the numbers keep climbing.
That’s 20,000+ battles fought and strategies tested.
You’re not just playing — you’re shaping the future of DeckForge with every move.
⭐️ As a thank you:
We’re sending a wave of Stars to the most active players.
Check your wallets — you’ve earned it.
🎁 More rewards are coming!
➡️DeckForge - Play Now!
We see your clips, your insane combos, your feedback.
We see you. And we’re grateful.
Stay fierce. Stay forged.
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
From the Forge #11: 🔨 | Closed Beta Is Forged
Our Adventure Map is ready to welcome the first wave of players — every node, every choice, every twist now set in place.
Meanwhile, our Art Team is hard at work bringing new Jokers and Bonus Cards to life — adding layers of depth and crazy combos to your future decks.
We’re also preparing a special challenge for our early players — with rewards waiting for those brave enough to take the first steps.
The Closed Beta is just days away.
Get ready — the Forge is heating up 🔥
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
From the Forge #10: 🔨 | UI Overhaul & Art Expansion
Big things are happening behind the scenes
Over the past weeks, our team has been reworking the UI of DeckForge — and it’s now smoother, sharper, and far more enjoyable to navigate. The updated interface is already integrated into the latest Closed Beta build.
But we’re not stopping there.
Our ARTists are hard at work expanding the visual universe of DeckForge — refining old elements, creating new ones, and pushing the style to the next level.
We're feeling incredibly optimistic as we finalize the build for our earliest players. Soon, you'll step into the experience and help us shape the game’s future.
Your feedback is our forge.
Together, we’re getting closer to Open Beta — one step at a time.
Stay forged 🔥
#DeckForge#ClosedBeta#EarlyAccess
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements👉DeckForge
Why Early Matters
We’re still early.
Which means you’re not just joining a game — you’re getting in before the noise.
🔵 Early players will enter Closed Beta before the public launch.
🔵 You’ll get access to exclusive rewards and collectibles — not available later.
🔵 You’ll help shape the game through feedback, testing, and community votes.
🔵 You’ll build reputation and status before the seasonal competition begins.
🔵 Your progress and impact will carry forward into the full release.
Now’s the time to get in early.
Join the Discord. Get the role. Be part of the first wave.
#DeckForge#EarlyAccess#ClosedBeta
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements
Omchain DID Early Access now! Earn 100 Points to unlock OMC Coin! 🔥🔥
🔥 Secure your Omchain Profile today! 🔥
https://did.omchain.io/?referrer=97187422
Connect your Metamask or mobile wallet, sign in, provide your email, and confirm via email. Invite friends for even more rewards! Stay tuned for exciting updates.
Don't miss out on this limited opportunity! Act now and be part of the Omchain revolution! ✨
#Cryptocurrency#Blockchain#OMCCoin#EarlyAccess
🎙NEW PROJECT 30-100X🔥🔥🔥
🤌 CROSS THE AGES🚀🚀
💫 This is your opportunity to be among the first to experience the #crosstheagesgame and #Metaverse💫
Join this #giveway complete tasks and become apart of something monumental 🤯
Join now🧨
👉https://gleam.io/drnAT/the-cross-the-ages-nft-giveaway👈
#earlyaccess
🎮 DeckForge Discord is LIVE.
The gates to the Forge are finally open — and you can be among the first to enter.
👑 Early players will receive the Pioneers role — a special early access badge that will unlock exclusive rewards and the future Founder Pack.
Here's how to claim your role:
1. Join the DeckForge Discord server.
2. Check out the rules and verify yourself.
3. Go to the #claim thread and get the Pioneers role.
💰 Pioneers role = early access to the Beta, unique rewards, and hidden advantages before the global launch.
The earlier you forge your legacy, the greater your rewards.
See you inside.
🔗DeckForge Discord
#DeckForge#EarlyAccess#FoundersPack
Join the DeckForge Community:
🌐YouTube𝕏Twitter🎮Discord
👉Chat👉Announcements