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

Резултати

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

Търсене: #cryptogrowth

当前筛选 #cryptogrowth清除筛选
TON Crypto News

@toncoin_rap · Post #142 · 13.09.2024 г., 06:29

🎧⤴ TON Blockchain Surges to the Top: Is This the Next Crypto Revolution? The TON Blockchain has taken the crypto world by storm, becoming a leader in terms of annual transaction growth. As one of the fastest-growing blockchains, TON boasts an impressive ecosystem, driven largely by its close association with Telegram and a growing number of users across CIS and Asia. With its remarkable performance, the network outpaces major players like Bitcoin, offering unprecedented potential for Web3 adoption. The future of decentralized applications (DApps) and the crypto economy is being reshaped—TON’s rise to the top is just the beginning! Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 1: Came from Telegram, we ain't here to play, Transactions through the roof, growin’ every day. From the CIS to Asia, crypto on display, The TON revolution’s here, no time for delay. EVM in sight, layer-2 it’s tight, Developers ridin’ with us, keepin’ it light. Bitcoin we outpace, future lookin' bright, Decentralized dreams, man, we takin' flight. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 2: Open League in the scene, crypto on the rise, With a cabin full of plans, takin' over the skies. Affordable tech, unlockin' minds worldwide, From DeFi to GameFi, come and join the tide. Bridges to Bitcoin, yeah, we breakin’ the mold, Ether’s on notice, TON’s gettin' bold. No airdrop games, just stories untold, It’s the mass adoption wave, come get involved. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Verse 3: From the shadows we crept, now we're front page, Pushin’ out the limits, we the crypto age. Layer 1 shakin’, disruptin' the stage, Decentralized freedom, come release the cage. Partners in place, with Tether on board, Fintech’s future, where Toncoin’s adored. Validator nodes climbin', pushin' the horde, TON leads the charge, watch us soar like a sword. Chorus: We're TON, blockchain risin', makin' moves you can't deny, Fastest on the block, watch it grow and touch the sky. Transactions flowin' like a stream, unstoppable and wide, Web3’s future’s here, we’re the ones to take the ride. Bridge: Exponential growth, we keep pushin’ the limit, Cryptocurrency dreams, TON’s right in it. Block by block, code never timid, World’s watchin' now, TON’s the one to win it. #TONBlockchain #CryptoGrowth #TONCryptoNewsRapStyle 🎧@toncoin_rap

Venture Village Wall 🦄

@venturevillagewall · Post #3984 · 25.01.2025 г., 19:00

Crypto Trader Gains $1.2 Million Profit Famous trader *Cosmonaut* achieves $1.2 million profit by following whale wallets. Bought Trump token for $5-8 before surge, similar success with SHIBA, PEPE, and FLOKI, each rising over 1000% in six months. Weekly trade signals shared in his Telegram channel predict coins with x5-x10 potential for 2025. Join him here. Pantera Capital's Dan Morehead shares confidence in Bitcoin's resilience, citing ownership by 50 million Americans and institutions like BlackRock and Fidelity back it. #Crypto#Bitcoin#Trading#Profit#Investment#Whales#Tokens#Cosmonaut#SHIBA#PEPE#FLOKI#PanteraCapital#DanMorehead#Solana#Fidelity#BlackRock #2025 #MarketTrends#CryptoGrowth#Telegram

Venture Village Wall 🦄

@venturevillagewall · Post #4190 · 19.02.2025 г., 13:00

OKX Legalizes Operations in Europe OKX has obtained MiCA licensing and passported its services across the European Economic Area (EEA). Over 400 million users in 28 countries can now access fully regulated crypto services via its Malta base. Licensed entities can expand services within the EU under a unified regulatory framework. The platform offers access to over 240 crypto assets and more than 300 trading pairs, including 60+ with Euro. More details: OKX Announcement #OKX#Crypto#EU#MiCA#CryptoRegulation#Malta#Blockchain#Trading#DigitalAssets#CryptoServices#Cryptocurrency#ECC#Fintech#RegulatedCrypto#CryptoGrowth#Investing#Finance#TradingPairs#Economie#CryptoMarket#MarketTrends