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

Резултати

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

Търсене: #tonmap

当前筛选 #tonmap清除筛选
TON Map News

@thetonmap · Post #278 · 29.12.2024 г., 10:24

⭐️ The AMA session will take place today at 14:00 UTC. Max, the founder of TON Map, will answer your questions and discuss current topics (for ru-speaking) on @ton2k. There will also be a giveaway of SBTs and other prizes. Don’t miss it! App | X | Fam chat | Map | FAQ#TONMap

Hashtags

TON Map News

@thetonmap · Post #277 · 22.12.2024 г., 17:31

❤️A new giant on the map. One of the main projects ✅️ of the TON blockchain, one of the largest and most significant initiatives, and one of the top 3 wallets in the blockchain ecosystem, has appeared on the TON and Telegram map! Secure your spot nearby—this is no coincidence! App | X | Fam chat | Map | FAQ#TONMap

Hashtags

TON Map News

@thetonmap · Post #274 · 20.12.2024 г., 22:28

🖼Sticker Store in Telegram Introducing Sticker Store – the first Telegram-native platform for tokenized stickers. Explore Bored Apes, Dogs, Flappy Bird and Blummy stars. And yeah, new characters and collections are coming. ➖Explore Stickers Soon on TON Map⭐️ App | X | Fam chat | Map | FAQ#TONMap

Hashtags

TON Map News

@thetonmap · Post #172 · 06.08.2024 г., 08:37

😎Welcome to TON Map — your land on Telegram TON Map is the flagship map of TON and Telegram—an advertising-and-gaming ecosystem and a metaverse in the spirit of Sandbox, with its own mechanics and innovations. We bring people and projects together on a living map where you can advertise, express yourself, build neighborhoods with friends, and leave your mark. You buy a pixel—your place, your revenue-generating land. Brand it, place ads, merge plots into districts, join activities—and, among other things, earn in $TON through a built-in rewards mechanism with on-chain transparency. No clutter: simple, intuitive, and scalable. ⭐️Why people buy pixels ➖Visibility: image + link + description (project / profile / donation / shop) ➖Status: your place is on-chain and publicly visible ➖ Growth: merge pixels into districts + build neighborhoods ➖ Utility: TON Map Pages (free link-in-bio) + landowner perks ➖ Game layer: events, airdrops ➖Rewards: Phase 3 (TON earning from lands) is coming soon — rules are transparent and capped per land to stay sustainable ⭐️Quick start 1) Open mini-app 2) Connect a non-custodial wallet (Tonkeeper / MyTonWallet / TON Space) 3) Choose coordinates → Buy → customize your pixel ⭐️#TONMap Beta FAQ: • What is TON Map? (EN) / (RU) • How to buy land (EN) / (RU) • How to play & earn (EN) / (RU) • Roadmap • Ambassador program • Content program • Land Sale / Partnerships • Security & Scam Alert ⭐️ Official Community Chats: - English - Russian - Persian ⭐️ Official Social Media Profiles: - Telegram - X (Twitter) - YouTube X • Fam • Map • Pages

Hashtags

TON Map News

@thetonmap · Post #292 · 05.03.2025 г., 14:56

😎 TON Map Article Contest While we’re preparing a new update for the map, here’s a contest where you can win amazing prizes! 📝Write a review article about #Tonmap on Medium, Binance Square, Reddit, Dzen, VC, Facebook, or any other popular publishing platform. Share the link to your article in our contest thread: Contest Topic. ⭐️Prizes: ➖Top 5 articles: #TON + 100,000 Coins + in-game items ➖Next 10 articles: 100,000 Coins + in-game items Deadline: April 15, 2025 App | X | Fam chat | Map | FAQ

Hashtags

TON Map News

@thetonmap · Post #146 · 20.07.2024 г., 05:18

🤩 TON Map #Partnership with TON Walk! We are glad to announce this new collaboration with TON Walk - a Telegram-based mini-app that offers a unique twist on movement-based reward systems with the TON blockchain ecosystem at its heart. Go out to explore the world and check in with the TON Walk mini-app as you go! 🌐 Join @tonwalk_bot and find #TONMap tasks:) Let’s grow together 🚀 TON Map App | X |Fam chat | Map

TON Map News

@thetonmap · Post #266 · 20.11.2024 г., 09:53

😎 Follow the link: TON Map on TON App and click Upvote! Why is this important? ➖Help TON Map stand out among projects. ➖Accelerate the development of new features for the community. ➖ Every vote counts! Thank you for your support! 🤑5 random accounts will receive bonus coins. #TONMap#Web3#UpvoteTONMap App | X | Fam chat | Map | FAQ

TON Map News

@thetonmap · Post #94 · 20.06.2024 г., 15:22

💎 England FanToken X TON Map PARTNERSHIP 🎊 Excited to announce England FanToken new #Partnership with TON Map! ❤️ TON Map - a prestigious project, uniting the TON ecosystem on Telegram map, it’s a TMA, memecoin farming, and a large-scale advertising and gaming platform Big things ahead! #EnglandFanToken#TONMap#partnerships

TON Map News

@thetonmap · Post #224 · 07.09.2024 г., 10:28

😎 TON Map punks #Partnership with NOT Punks! We are happy to welcome one more partner on our Map (position)! ❤️NOT Punks and TON Map have teamed up to blend digital assets, advertising, and gameplay! Your NOT Punks NFTs aren’t just avatars, they’re elite characters on the TON Map, helping you earn and win! ➖Advertise with NFTs: Promote your NOT Punks on the map! ➖Punk Rush Game: Collect coins, complete quests, and earn rewards in the game and real life! ➖Join the revolution now! - TNO Coin RU - TNO Coin Global - NOT Punks Official #NOTPunks#TONMap#NFT#GameFi#Web3#JoinTheRevolution TON Map App | X | Fam chat | Map