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

Резултати

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

Търсене: #cryptomining

当前筛选 #cryptomining清除筛选

US Treasury yields surge to new highs as liquidity tightens, pushing Make CryptoSlate preferred on Bitcoin’s latest retreat below $80,000 shows how quickly the bond market has reclaimed control of crypto trading, even after lawmakers advanced one of the industry’s most closely watched regulatory bills. Data from CryptoSlate showed that the top asset was trading at $79,083 as of press time, down… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Trump family trust bought Coinbase and these crypto-related stocks in Make CryptoSlate preferred on US President Donald Trump’s family trust executed hundreds of millions of dollars in financial transactions during the first quarter of 2026, including the acquisition of stocks directly tied to the digital asset industry, even as his administration pushed sweeping, pro-cryptocurrency regulatory overhauls. According to a mandatory 278-T financial disclosure form… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Bitcoin rips as CLARITY Act clears major Senate Committee hurdle, Make CryptoSlate preferred on Bitcoin surged back above $81,000 after the Senate Banking Committee voted to advance the Digital Asset Market CLARITY Act, clearing a major hurdle for the most comprehensive crypto regulation bill in US history. On May 14, the panel approved the legislation on bipartisan lines, sending the legislation to the… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Ripple insider warns XRP holders as fake airdrop scams surge across Make CryptoSlate preferred on The XRP Ledger (XRPL) is seeing a drastic rise in fraud attempts targeting its users as the network draws more institutional activity, higher transaction volumes, and renewed attention from XRP traders. On May 14, David Schwartz, the former chief technology officer at Ripple, published a public warning regarding the increasing… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Bitcoin keeps rallying mid-month – Is Saylor using Strategy’s STRC Make CryptoSlate preferred on Bitcoin has been seeing recurring mid-month strength this year, and it is becoming harder to separate it from Strategy’s (formerly MicroStrategy) expanding preferred-stock machine. The funding channel is helping the company continue to buy the flagship digital asset while adding a growing layer of cost to its balance sheet.… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Global financial crisis fears grow as bond yields hit 1998 levels and Make CryptoSlate preferred on Is a global 2008-style economic crash nigh? And do current conditions resemble the early stages of a broader global financial crisis driven by debt costs, inflation pressure, and constrained policy responses? Those questions have become harder to dismiss because the pressure points are stacking in the wrong order: high sovereign… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Trump’s CEO-filled China visit can decide whether Bitcoin’s $80,000 Make CryptoSlate preferred on Bitcoin is hovering just below $80,000 as President Donald Trump arrives in Beijing for a high-stakes meeting with Chinese leader Xi Jinping, turning the visit into a live test of whether the crypto market’s latest risk rally has enough support to survive a difficult macro week. The trip comes… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Trump’s CEO-filled China visit can decide whether Bitcoin’s $80,000 Make CryptoSlate preferred on Bitcoin is hovering just below $80,000 as President Donald Trump arrives in Beijing for a high-stakes meeting with Chinese leader Xi Jinping, turning the visit into a live test of whether the crypto market’s latest risk rally has enough support to survive a difficult macro week. The trip comes… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Bitcoin holders can now hide more of their activity, but only by Make CryptoSlate preferred on Starknet launched strkBTC on May 12, locking BTC on Bitcoin‘s base layer to back an ERC-20 token that brings shielded balances into a smart contract environment at scale. The token runs in the public mode, where it behaves like any other wrapped Bitcoin asset, and shielded mode, where… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Hormuz oil contagion spreads to 8 major economies and Bitcoin has just Make CryptoSlate preferred on Bitcoin‘s path through 2026 now runs through global economic policy. The disruption around the Strait of Hormuz has moved beyond a commodity-price event and into the machinery of governments. The International energy Agency said crude and refined-product exports through the strait had fallen to less than 10%… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Circle adds $3 billion Wall Street Arc token risking an uncomfortable Make CryptoSlate preferred on Circle’s $222 million ARC token presale has given Wall Street a new way to value the USDC issuer, while raising a harder question for one of crypto’s most profitable alliances. On May 11, Circle said investors led by a16z Crypto backed the presale of ARC, the native token for Arc,… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

Washington insider warns US defeat in Iran now “likely” Make CryptoSlate preferred on A prominent figure from the Washington foreign-policy establishment has said openly what markets have been pricing in fragments: the United States has likely suffered a strategic defeat in Iran, and the failure runs through the Strait of Hormuz. Accepting this premise would introduce a new macro risk for… #CryptoMining ─┅━━━━━⊰✵⊱━━━━━┅─ │📣 : @bovinebear │ │🤖 : @bovinebear_bot│ ─┅━━━━━⊰✵⊱━━━━━┅─

123•••10•••1213
ПредишнаСтр. 1 от 13Следваща