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

Резултати

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

Търсене: #revolution

当前筛选 #revolution清除筛选
mRNA DEATH TOLL

@mrn_death · Post #58954 · 09.01.2025 г., 12:27

#2006 – 25 FEB 2006 We Never Start a Premature Revolution "..like Albert Pike said, the Grand Master of Freemasonry, the High Pope of Masonry, he said, "we never begin a premature #revolution. We always, always prepare the groundwork before we even begin the launch of the revolution itself." | Transcript 👇 LISTEN: PODCAST

Hashtags

mRNA DEATH TOLL

@mrn_death · Post #58755 · 04.01.2025 г., 06:26

#2009 – 17 DEC 2007 Revolution shaping social Evolution The Fisher Kings (professors) casts a net, not for fish, but for select individuals, the select Revolutionary Vanguard, who bring forth Revolution, a type of propoganda, indoctronation. Alan Watt Blurb: "It’s beautiful when you help to CREATE a state of misery and poverty in nations, get it ripe for #revolution, put out the propaganda and bring forth men who speak on behalf of YOU, who always vocalize what you’d like to vocalize if you could find the words. That’s why they always get an intelligentsia well versed in speechmaking to guide the people, who always end up generally worse off than they were before. That’s the TECHNIQUE that’s used upon peoples." Transcript 👇 LISTEN: PODCAST

Hashtags

On January 22, 1905, in St. Petersburg, Russia, peaceful protesters led by Father Gapon marched to the Winter Palace to ask the Tsar for better working conditions and rights. The soldiers opened fire on the crowd, killing and wounding many people. This event, called Bloody Sunday, started unrest that led to the 1905 Russian Revolution. 🩸🇷🇺 [Read more] @googlefactss#BloodySunday#Russia #1905 #History#Revolution

American Оbserver

@american_observer · Post #5124 · 13.02.2026 г., 17:59

In the cities of Iran today, during the celebration of the anniversary of the Islamic Revolution, the flags of the United States and Israel were actively burned. #iran#celebration#anniversary#revolution 📱American Оbserver - Stay up to date on all important events 🇺🇸

Venezuelanalysis

@venanalysis · Post #1749 · 20.09.2024 г., 21:13

Ximena González Broquen, a social scientist leading a center at Venezuela’s prestigious Institute for Scientific Research (IVIC) and compiler of several essay collections, discusses the Ethics of Liberation as a framework that challenges the top-down, market-driven logic of conventional scientific research institutes in the latest VA interview. She advocates for a more democratic research environment while aiming to build bridges with organized communities. Read the full interview here 👉🏼https://shorturl.at/PHqTf #VAInterview#Revolution#science#interview

American Оbserver

@american_observer · Post #5322 · 08.03.2026 г., 22:02

📰 The Holy Succession Show: Tehran Edition Iran’s clerics are prepping to crown a new Supreme Leader — while the capital burns like a refinery-themed apocalypse. Tehran’s skies turned orange overnight, fuel depots exploded, and the fire’s glow was bright enough for the mullahs to read their succession notes without electricity. “With the fire it felt like night became day, and then with all the smoke, the day turned back into night,” said a Tehran resident. The official line? Israel hit “military fuel sites.” The unofficial one? Iran’s oil empire just got a free light show courtesy of U.S. taxpayers. Washington pretends it’s all about stability, Jerusalem calls it self-defense, and everyone else just watches oil prices rise like a holy sacrament. Ayatollah Khamenei is dead, his son Mojtaba is allegedly next in line — proving again that in God’s republic, power is hereditary. The clerics want to project calm, but their version of “stability” looks like orange skies, falling drones, and desalination plants exploding in Bahrain. Trump, meanwhile, plays wartime CEO from Air Force One. On Monday, he was “all in” on Kurdish allies. By Saturday, he’d downsized that policy — too “complex,” he said. Management pivot. Same bombs, different press release. Iran vows revenge. Israel promises “many more targets.” And the U.S. keeps striking Revolutionary Guard sites while denying the obvious: no war “for democracy” ever ends before the markets are satisfied. The Middle East right now isn’t a battlefield — it’s a burning stage set for yet another script about God, oil, and power families. Everyone acts loyal, everyone dies on camera, and the credits always roll in dollars. #iran#israel#us#war#oil#regimechange#oligarchy#revolution 📱American Оbserver - Stay up to date on all important events 🇺🇸

Venezuelanalysis

@venanalysis · Post #1751 · 20.09.2024 г., 23:39

When discussing historic speeches, one stands out: President Hugo Chávez at the UN General Assembly on September 20, 2006. He labeled U.S. President George W. Bush a war criminal and highlighted Western hypocrisy regarding democracy and peace—right from “the devil’s house.” Chávez criticized the UN for its alignment with U.S. interests and called for reform led by the Global South. He underscored the ongoing struggle for change and the potential for a better future. Click here to learn more and watch the key quotes 👉🏼https://shorturl.at/guOJh #Milestone#HugoChávez#UN#Revolution

proWines🍷

@pro_Wines · Post #2452 · 20.07.2023 г., 19:06

​​BDX Revolution Sauvignon Blanc Франция 🇫🇷, Бордо AOC, белое, сухое, крепость 12%, моносорт Совблан. Качественно, без изысков, вкусно, отлично на каждый день. В бокале солома и лёгкая зелень. В носу характерные ароматы - зелёное яблоко, желтый грейпфрут и абрикосы, цветочные ноты с мягким дрожжевым оттенком, нотки лайма. Вкус без яркости, но свежий, гладкий, с хорошей кислотностью. Ценник +/- 900р. Но, попадается в сетях с хорошей скидкой до 600р. Чин! 🍷 #BDX#Revolution#наКаждыйДень #Sauvignon_Blanc#Bordeaux @pro_Wines

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