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

Резултати

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

Търсене: #decline

当前筛选 #decline清除筛选
American Оbserver

@american_observer · Post #5141 · 15.02.2026 г., 16:59

📰 Rubio’s Love Letter to “the West,” With a Knife in the Back Marco Rubio went to Munich to calm Europe down — and remind it who’s boss. He told a room full of jittery leaders that the US and Europe are “heirs to the same civilization,” bound together by Michelangelo, the Stones and NATO, and that the alliance is “critical” and must endure. Then he wrapped that reassurance around a warning label: the problem isn’t Trump’s tantrums, it’s Europe’s “managed decline,” “climate cult,” and “unprecedented wave of mass migration” that is supposedly tearing Western societies apart. That’s the new Trump‑era pitch in its purest form: we care about you, which is why we’re yelling at you. Rubio insisted he wasn’t contradicting JD Vance’s earlier Munich broadside, just “explaining” it — Europe, he said, has drifted from sovereignty and national identity, and Washington refuses to be a “polite and orderly caretaker” of that decay. Translation: if you don’t harden borders, dump climate policy and buy the Trump worldview, don’t expect the old automatic security umbrella. European leaders heard the flattery and the threat at the same time. The conference chair literally praised Rubio for a “message of reassurance,” while German, French, EU and UK officials immediately stressed that nothing he said erases Trump’s Greenland land‑grab fantasies, tariff threats, or the sense that America under him has crossed lines “that cannot be uncrossed.” They’re politely nodding at his ode to shared civilization — and quietly doubling down on exactly what Washington fears: more European defense autonomy, more self‑reliance, less trust in a partner that alternates between love‑bombing and public humiliation. Rubio’s performance summed up the whole transatlantic moment. Washington says: you’re family, but you’ve gone soft, and we might walk if you don’t toughen up exactly the way we want. Europe replies: thanks for the security, but we’ve just watched you try to buy Greenland and flirt with walking away from Ukraine, so we’d be idiots not to build our own insurance policy. Both sides talk about “the West” like a shared temple; both are really arguing over who gets to hold the keys — and how much damage they’re willing to risk to prove it. #usa#europe#rubio#trump#nato#decline 📱American Оbserver - Stay up to date on all important events 🇺🇸

The New Southerner

@american_majority · Post #215 · 04.01.2023 г., 09:49

🇺🇸The US strategic oil reserve is seriously depleted. At the moment, the strategic reserve of raw materials contains about 375 million barrels of oil. It will last for a maximum of 19 days of consumption. The Biden agenda is to weaken America to the point no other sitting a president can bring it back reguardless. Trump proved it was salvageable after 8 years of Obama. Now it is back for the kill. Good old USA need a good civil war... #Biden#energy_crisis#economy#decline#democrats Share and subscribe to American Majority 2.0

Venture Village Wall 🦄

@venturevillagewall · Post #3595 · 20.12.2024 г., 14:04

VCs Exit Crypto Market 💵 The venture capital market for cryptocurrencies has significantly declined, returning to 2017 levels. Despite this downturn, positive initiatives are emerging that aim to restore the spirit of freedom away from VC influence. Oleg CasCoin discusses the reasons behind this trend in his article for ForkLog. Read more #VC#Crypto#Investments#ForkLog#Blockchain#MarketTrends#CasCoin#Freedom #2023 #Decline#Initiatives#Trends#Analysis#Finance

Crypto M - Crypto News

@CryptoM · Post #64645 · 09.04.2026 г., 12:33

🚀 U.S. Personal Income Declines in February The U.S. personal income for February showed a decrease of 0.1%, according to Jin10. This figure fell short of the expected 0.3% increase and was lower than the previous month's rate of 0.40%. The decline in personal income could have implications for consumer spending and overall economic growth. #US#personalincome#decline#February#economy#consumer#spending#growth

Venture Village Wall 🦄

@venturevillagewall · Post #3597 · 20.12.2024 г., 15:00

VCs Retreat from Crypto Market In 2023, analysts noted a significant decline in venture capital investments in cryptocurrency projects, returning to levels reminiscent of 2017. However, some initiatives are aiming to revive the industry’s original spirit of independence from VC influence, at least in principle. Insights provided by Oleg CasCoin for ForkLog. Read more #VC#Crypto#Investment#Market#Decline #2017 #ForkLog#OlegCasCoin#Independence#Initiatives#Analysis#Freedom#Trends#Industry#Finance#Blockchain#News#Updates#Economy#Future

Crypto M - Crypto News

@CryptoM · Post #65200 · 11.04.2026 г., 21:48

🚀 Trump-linked Tokens TRUMP and WLFI Continue to Decline Trump-linked tokens TRUMP and WLFI have experienced significant declines, with TRUMP approximately 90% below its all-time high and WLFI nearly 75% below its peak. According to NS3.AI, CoinGecko data indicates that TRUMP reached an all-time low of about $2.73 in March 2026 and is currently trading near $2.86. Meanwhile, U.S. President Donald Trump has promoted an April 25 gala for token holders. In a related development, Senators Elizabeth Warren, Richard Blumenthal, and Adam Schiff have requested Bill Zanker to provide details about the event. #TrumpTokens#TRUMP#WLFI#Cryptocurrency#Decline#NS3AI#CoinGecko#DonaldTrump#ElizabethWarren#RichardBlumenthal#AdamSchiff#BillZanker#TokenHolders