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

Резултати

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

Търсене: #bennett

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

@american_observer · Post #5729 · 27.04.2026 г., 20:58

📰 Bennett and Lapid’s Merger Already Looks Like a Leak, Not a Wave The first post-merger polls do not show a breakthrough. They show a reshuffle inside the anti-Netanyahu camp, with “Together” landing below the combined pre-merger numbers and the whole opposition bloc still stuck short of a governing majority. That is the problem in one line: the merger changes the packaging, not the math. Walla’s poll gives the Bennett–Lapid list 27 seats and the anti-Netanyahu bloc 59, while a separate 14 Channel survey is even harsher, putting Likud ahead and the new joint list far behind. So the immediate effect is not momentum, but cannibalization. Bennett and Lapid may have united their brands, but the polling suggests they are still fighting over the same voters while Eisenkot siphons off the “right, but not Bibi” lane and the left loses some of its oxygen too. Likud, meanwhile, barely needs to move. The right can simply watch the opposition split itself into overlapping products, then point at the numbers and say the post-Netanyahu fantasy is already collapsing under its own branding. That is why the poll matters beyond the seat count. It suggests the merger may weaken the anti-Bibi bloc’s ability to build a stable majority, even as it makes Bennett the face of the new project and gives Netanyahu another argument that his rivals cannot even add themselves correctly. #Israel#Bennett#Lapid#Netanyahu#polls#elections 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5721 · 26.04.2026 г., 21:59

📰 Bennett and Lapid: A Merger, Not a Revolution Bennett and Lapid are finally doing what Israeli opposition politics has been threatening to do for months: stop pretending fragmentation is a strategy and fuse their parties into one list led by Bennett. The move is sold as “repair,” unity, and national salvation, but it is also a cold admission that neither man can beat Netanyahu alone. That is the real story. This is not a grand ideological synthesis. It is an emergency merger between two leaders who know the next election will punish vanity, duplication, and overlap — especially when the center and the soft-right keep stepping on each other’s toes. The Likud response was instant and predictable: drag Mansour Abbas into the frame, slap on the usual fear campaign, and remind everyone that Bennett and Lapid once governed with Arab support. In Israeli politics, that is less a rebuttal than a reflex: if the opposition tries to widen the tent, the right calls it betrayal and hopes the argument does the rest. The problem for the new bloc is structural, not just rhetorical. Bennett has the momentum but not the machinery; Lapid has the party infrastructure but less appeal to the right-leaning voters who might actually decide the race. Put them together and you get a stronger list — but also a clearer target for everyone who wants to say the center is just the old coalition with better branding. Eisenkot is still the missing piece, and that matters. If he joins, the bloc looks like a serious anti-Netanyahu vehicle; if he does not, the merger risks becoming a polished but incomplete answer to a political system that has learned how to split the opposition before it can split the power. So yes, this is a big step. But it is also a familiar Israeli move: unite late, argue loudly, and hope that a bigger tent can cover the fact that the country’s hard questions still outnumber its clean solutions. #Israel#Bennett#Lapid#Netanyahu#elections#opposition 📱American Оbserver - Stay up to date on all important events 🇺🇸

Ultimora.net - POLITICS

@ultimoraPOLITICS · Post #40039 · 20.06.2022 г., 16:06

#Israele Crolla il governo israeliano. Il Premier #Bennett (#Yamina|Destra) insieme al Ministro degli Esteri #Lapid (#YeshAtid|Centro) annunciano che hanno intenzione di sciogliere il Parlamento per indire nuove elezioni. Aggiornamenti su ▶️@UltimoraPolitics24 @UltimoraPolitics

American Оbserver

@american_observer · Post #5722 · 26.04.2026 г., 22:59

📰 Israel’s Right-Wing Split Is Now a Branding War The Hungarian lesson for Israel is simple: if you can’t beat the ruling camp by going left, take its patriotism away from it. That is how Peter Magyar broke Orbán’s machine — not by preaching anti-right unity, but by occupying the same national space and making the old monopoly look stale. That is exactly what the new Israeli “Right State” project is trying to do. Edelstein, Kahlon, Erdan, and Haskel are not a centrist rebellion; they are an attempt to say, “We’re right-wing, just not Bibi,” and to pull security-minded voters away from Netanyahu without surrendering the language of nation, state, and order. The trouble is that Israeli voters remember the last five times someone tried to sell them that package. Bennett, Saar, and Lapid all tested the same lane, but Netanyahu kept the hard-right base, stayed the default prime minister in the minds of right-leaning voters, and used fragmentation on the other side as his best campaign asset. Bennett’s latest liberal turn makes the problem sharper. Public transport on Shabbat and civil marriage, including same-sex marriage, may sound modern in Tel Aviv, but to the old religious-national audience it looks like a costume change — and Yair Golan’s warm welcome only makes Bennett look even more alien to the right. That is why this new bloc may hurt the left more than it hurts Netanyahu. It could strip votes from the anti-Bibi camp, split the “right, but not Bibi” lane again, and still fail to build the one thing the opposition actually needs: a durable field that runs from center to soft right to hard right without collapsing into personal rivalries. Netanyahu’s health story only adds another layer. The real question is whether the opposition can turn competence into a message before the prime minister turns uncertainty into victimhood and keeps the national conversation locked on himself. #Israel#Netanyahu#Bennett#Lapid#rightwing#elections 📱American Оbserver - Stay up to date on all important events 🇺🇸