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

Резултати

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

Търсене: #bitcoinprice

当前筛选 #bitcoinprice清除筛选
DigitalGenie Trading News

@digitalgentop · Post #114 · 24.05.2024 г., 19:21

☄️🔖South Korean Police Crack Down on Crypto Fraud: 19 Arrested in 'Reading Room' Scam 🛡 South Korean police have made a major breakthrough in the fight against crypto fraud, apprehending 19 individuals involved in a deceptive "crypto reading room" scheme. 🔈 The gang operated through an open chat room, masquerading as seasoned traders and luring in unsuspecting investors seeking legitimate crypto advice. 💵However, instead of guidance, victims were duped out of a staggering $18.8 million by the cunning fraudsters. 🌐 Despite the arrests, the investigation is far from over, with at least six suspects still on the run. International cooperation through Interpol has been sought to bring them to justice. ❗️ Shockingly, the ringleader employed manipulative tactics akin to pig-butchering, promising jobs abroad only to exploit vulnerable individuals who fell into their trap. #Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #112 · 24.05.2024 г., 18:40

🌐 Former Kansas Bank CEO Pleads Guilty to $47M Crypto Embezzlement Scheme 💵 In a shocking turn of events, the ex-CEO of Heartland Tri-State Bank in Kansas has confessed to embezzling a staggering $47.1 million through a web of personal crypto purchases. 🕯 The fallout from this audacious scheme resulted in the bank's collapse last July, leaving investors with zero equity, according to the U.S. Attorney's Office for the District of Kansas. 📣 Identified as Shan Hanes, the 52-year-old mastermind behind this financial fiasco allegedly used cryptocurrencies as a smokescreen to hide mounting losses. 💬 "Hanes is not just a liar but also a master manipulator," stated Attorney Kate Brubacher, emphasizing the devastating impact on victims' life savings and retirement funds. 🛡 The FBI, FDIC, Federal Reserve Board, and FHFA are now jointly investigating this high-profile crypto case that has sent shockwaves through the industry. ✨ With a potential sentence of up to 30 years looming over him, Hanes awaits his fate at the sentencing scheduled for August 8th. 🟢The collapse of Heartland Tri-State Bank adds another layer to the ongoing debate about how traditional banks should navigate their relationship with the ever-evolving crypto ecosystem. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #109 · 24.05.2024 г., 17:40

✨ The recent approval of spot ether exchange-traded funds (ETFs) by the Securities and Exchange Commission has significantly boosted the price of Ether amidst a broader downturn in the crypto market. 💵While many cryptocurrencies have experienced declines, Ether has seen a notable increase, trading at $3,815 with a 2.12% gain in the past 24 hours. In comparison, Bitcoin's price has decreased by 2.35% during the same period, trading at $67,540. 🕯🔵 This positive momentum for Ether can be attributed to the excitement and optimism surrounding the approval of spot ether ETFs, highlighting the growing interest in this particular cryptocurrency and its potential for further growth. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #108 · 24.05.2024 г., 17:20

⚡️🔖Gate.io's affiliate in Hong Kong, Gate.HK, is shutting down its services and has pulled its application for a license to operate a crypto trading platform in the region. ⭐️The company announced that it will be making significant changes to its platform and advised users to withdraw their assets by August 28. 🆕Gate.HK has also halted new user registration and deposits, and will be removing various tokens from its platform by May 28. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #107 · 24.05.2024 г., 00:50

✨Investors and traders should monitor these developments closely and be prepared for potential fluctuations in the Ethereum market. 💰The approval of Ethereum ETFs could bring significant volatility to the market, both in terms of price increases and potential corrections. It's important to stay informed and have a clear understanding of the risks involved in trading cryptocurrencies, especially in periods of heightened uncertainty. 🕯As always, it's recommended to exercise caution and diligence when making investment decisions in such a volatile and rapidly evolving market. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #106 · 24.05.2024 г., 00:32

⚡️💵The minting of $1 billion USDT tokens by Tether on the Ethereum blockchain appears to be a strategic move to take advantage of the market sentiment surrounding the potential approval of a spot ETH ETF by the SEC. 💬With the anticipation of a positive decision leading to a market rally, Tether's move to provide liquidity through the minting of USDT can potentially fuel further price increases. 🕯 It will be interesting to see how this development impacts the overall market dynamics leading up to the ETF news. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #105 · 24.05.2024 г., 00:15

☄️🌐The price of Gala Games' native token, GALA, dropped significantly on Monday due to concerns about a suspicious transfer of over $200 million worth of GALA tokens. An unidentified individual created and sold 5 billion Gala tokens on Uniswap, sparking worries of a potential hack among traders. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

DigitalGenie Trading News

@digitalgentop · Post #104 · 24.05.2024 г., 00:01

⚡️Gemini to return 97% of frozen assets in-kind to Earn users by month’s end ⭐️Crypto exchange Gemini said its defunct Earn product users will begin receiving approximately 97% of their frozen digital assets by the end of this month. Notably, the exchange’s announcement coincided with news that the failed crypto lender Genesis got Court approval to return around $3 billion of its customers’ assets. Meanwhile, this development marks a significant relief for Earn users, whose assets have been frozen since November 2022 due to the liquidity crisis that hit Genesis, the now-bankrupt crypto lender. #Bitcointrading#Cryptosignals#Cryptoinvesting #Cryptoexchange #Bitcoinprice

ПредишнаСтр. 1 от 5Следваща