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

Резултати

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

Търсене: #conspiracy

当前筛选 #conspiracy清除筛选
movies & series 🍿

@images · Post #1918 · 22.09.2025 г., 09:40

🍿 The Chair Company: Tim Robinson Turns Office Life Into a Hotbed of Conspiracies 📆Premiere: October 13, 2025 🎭Genre: #Comedy · #Conspiracy ✈️Follow series Tim Robinson, the mastermind behind I Think You Should Leave and Detroiters, is back with a show that feels like a sketch stretched to the max… but with the ambition of an HBO thriller. In The Chair Company, he plays William Ronald Trosper, an office worker who, after a humiliating disaster at work, finds himself unraveling a criminal conspiracy as absurd as it is unsettling. 🤯🪑 The trailer is packed with rapid-fire one-liners, cartoonish facial expressions, and Robinson’s trademark obsession with bleak middle-class workplaces where misery flips into dark comedy. What I love most is how Robinson moves away from the usual “rich people intrigue” à la Succession and instead zeroes in on the mindset of the alienated office drone. That lens on the hopeless everyman feels as necessary as it is hilarious. If you ever thought a chair could be the center of the universe, this show is here to prove it. 🔥

Trump's Ear

@trumpsear_tg · Post #1578 · 30.09.2025 г., 14:03

Top MAGA lackey Kash Patel has made the uncharacteristically bold move of intervening in Donald Trump’s mad and rapidly mounting campaign of vengeance against his political opponents. Trump launched into a vicious Truth Social diatribe Saturday afternoon against former FBI director Christopher Wray, who he slammed for supposedly “LYING” about the presence of bureau personnel in the crowds outside the Capitol Building on Jan. 6. #Trump#conspiracy#FBI 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #1584 · 30.09.2025 г., 23:59

Gavin Newsom naturally couldn’t resist trolling Donald Trump after the 79-year-old president posted an AI-generated video featuring him he shilling for magic “Medbeds.” “Trump is about to shut down the government and rip health care from 20 million Americans. What’s he doing? Posting AI-generated slop about ‘miracle hospital beds’ that cure all illness,” tweeted Newsom, 57. “DONALD TRUMP HAS LOST IT,” he added. #Trump#Newsom#conspiracy 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #1579 · 30.09.2025 г., 14:05

The "Shaman of the Capitol" sued Donald Trump and the World Bank ⚖️🐂🇺🇸 Jacob Chansley, better known as the QAnon Shaman due to his horns, skin and painted face during the storming of the US Congress on January 6, 2021, decided to sue Donald Trump. The same president who pardoned him in January 2025 after 41 months in prison. 🏛📜 Chansley's lawsuit also names other defendants — the US Federal Reserve 🏦, the National Security Agency 🛰, the IMF 💵, the World Bank 🌍, the State of Israel ✡️, Elon Musk's Corporation X 🚀, T-Mobile 📱 and Warner Bros. Studios 🎬. The document itself is 26 pages long, but consists of one paragraph. In it, Chansley demands that only two laws remain in force — the Bill of Rights and the original U.S. Constitution 📖🦅. Unusual items include the idea of issuing a $40 trillion gold coin 🪙 to cover the U.S. national debt. He also claims that Trump personally sent him a letter ✉️ two days after the Capitol was stormed, and the secret services allegedly tried to use his "shamanic abilities" ✨ for contacts "out of this world" 👽. Previously, Chansley was an ardent proponent of the conspiracy theory 🔍 that Trump is fighting an elite group engaged in child sex trafficking. However, he later turned away from the president, accusing him of unwillingness to make public the "Epstein dossier." 📂 #Conspiracy#QAnon 👂More on Trump's Ear ⚠️

President John F. Kennedy was assassinated on November 22, 1963. Lee Harvey Oswald was arrested for the crime but was killed two days later by Jack Ruby. Ruby was convicted of murder but died in prison before his retrial. This single act—Ruby killing Oswald—meant there was never a public trial to examine the evidence. This left countless unanswered questions and made it impossible to prove there wasn't a conspiracy. What's your theory? [Read more] @googlefactss #JFK#History#OnThisDay#conspiracy