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

Резултати

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

Търсене: #lapid

当前筛选 #lapid清除筛选
Ultimora.net - POLITICS

@Ultimorapolitics · Post #38138 · 02.05.2022 г., 07:47

#Israele#Russia Yair #Lapid (#YeshAtid|Centro), ministro degli esteri: "Le affermazioni del ministero degli esteri Lavrov sono sia un'affermazione imperdonabile e oltraggiosa, sia un errore storico. Gli ebrei non si sono uccisi da soli durante l'olocausto. Il livello più basso di razzismo contro gli ebrei consiste nell'accusare gli ebrei stessi di antissmirismo." @UltimoraPolitics

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 🇺🇸

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 🇺🇸

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

Libertà è ragione

@libertaeragione · Post #3998 · 12.10.2023 г., 15:49

#Israele Yair #Lapid (#YA|Centro): “Se pensassi che questo sia un governo di unità nazionale mi unirei, non è troppo tardi per formare il governo giusto. Non ci uniremo perché qui è stata eretta una struttura che non farà altro che aumentare il caos. #Gantz ed #Eisenkot potranno solo dare consigli. #BenGvir rimane ancora a capo del Monte del Tempio e #Smotrich di Hvara. Chiunque abbia causato il fallimento non sarà in grado di risolverlo, i cittadini israeliani possono chiedere di fare la cosa giusta per una volta e sappiamo tutti di cosa si tratta: un governo senza estremisti con un gabinetto piccolo ed efficiente.” @OsservatorioEsteri

MessageInABottle

@mib_messageinabottle · Post #6929 · 24.05.2024 г., 17:08

REACTIONS TO ICJ RULING ON ISRAEL'S GENOCIDE IN GAZA #Israel was ordered by the International Court of Justice (#ICJ), or world court, on Friday to halt its military assault on the city of #Rafah in #Gaza Here are some of the reactions so far, via #Reuters: #Hamas official Basem #Naim: We welcome the decision by the world court that calls on the Zionist occupation forces to end its military aggression on Rafah. We believe it is not enough since the occupation aggression across the Gaza Strip and especially in northern Gaza is just as brutal and dangerous. We call upon the UN security council to immediately implement this demand by the world court into practical measures to compel the Zionist enemy to implement the decision. We welcome the court’s request to allow investigation committees to reach the Gaza Strip to investigate acts of war of genocide against the Palestinian people and Hamas pledges to cooperate with investigation committees.” #Palestinian Authority spokesperson #AbuRudeineh: The presidency welcomes the decision issued by the International Court of Justice, which represents an international consensus on the demand to stop the all-out war on Gaza.” #Israeli finance ministerBezalel #Smotrich: Smotrich said demanding Israel stops the war against Hamas was tantamount to demanding that Israel decide to cease to exist. “Israeli will not agree to that,” he said in a statement. Israeli opposition leader Yair #Lapid: Lapid condemned Friday’s ruling by the ICJ for failing to draw a connection between its demand for an end to the fighting with a demand to return Israeli hostages held in Gaza. Normally a fierce critic of Israeli prime inister Benjamin Netanyahu, Lapid said the court’s failure to link the two issues was “a moral collapse and a moral disaster”. #EU foreign policy chief Josep #Borrell: What is going to be the [EU’s] answer to the ruling of the International Court of Justice that has been issued today, what is going to be our position? We will have to choose between our support to international institutions of the rule of law or our support to Israel.” #SouthAfrican offical Zane #Dangor: South Africa welcomes the ruling made by the court today … This order is groundbreaking as it is the first time that explicit mention is made for Israel to halt its military action in any area of Gaza. This is de facto calling for a ceasefire. It is ordering the major party in this conflict to end its belligerent action against the people of Palestine.” Former Israeli #UN envoy Danny #Danon: As ICJ judges in The Hague deliberate in comfort and return to their families, 125 hostages languish in tunnels. Israel will not cease the war until our hostages are brought back home and Hamas is completely defeated.” ++++++++++++++++