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

Резултати

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

Търсене: #ayatollah

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

@american_observer · Post #5212 · 24.02.2026 г., 16:19

Former US National Security Advisor John Bolton: “Although you could potentially remove the ayatollah, that would leave the IRGC in place, and the government in Iran is the IRGC, while the ayatollahs act as a religious cover or an ideological cover for them. I think Trump is just hoping that this show of American power will intimidate the ayatollahs. If I were still his adviser, I would be happy to tell him that it won’t work. They won’t be intimidated. But Trump really thinks minute by minute; he doesn’t think strategically.” #john#bolton#trump#ayatollah 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4951 · 24.01.2026 г., 21:59

📰 Iran’s Ayatollah and His Guards Falter After Storm of War and Protests Weeks after Israeli warplanes pulverized Iran’s military command in the June airstrikes, a new generation of Revolutionary Guard leaders had to step into the void, mourning the men they were now replacing. The regime responded to the latest wave of nationwide protests with unprecedented brutality, confirming what many suspected: the old formula of Ayatollah Khamenei and the Guards is cracking under combined pressure of war, sanctions, and a population in open revolt. The System on Trial The bloody crackdown did its job: it preserved the regime’s unity in the short term, centered on the ayatollah and the Guards’ 150,000-strong praetorian guard. But analysts see the violence as a sign of acute weakness, not strength. “They turned to live fire really quickly because their weakness was acute, and they knew it,” said an Iran expert at the Naval Postgraduate School, comparing the current situation to the late Soviet Union. ​ The Revolutionary Guards are now the core of the system, controlling a vast empire of media, economy, oil, seaports, and even an air force. “They have everything that it takes to assume power,” said the International Crisis Group’s Iran project director, meaning the Islamic Republic could evolve into a military-dominated state like Pakistan or Egypt after Khamenei is gone. ​ Generational Rift, Coming War Within Inside the Revolutionary Guards, a sharp divide is opening. The older generation grew up in the Iran-Iraq war, in sacrifice and hardship, and now enjoys foreign homes, elite schools, and luxury cars. The younger officers rose during Iran’s regional expansion and have tasted little of that wealth, but want to protect “their meal ticket”. Dismayed by the loss of the Syria–Iraq–Lebanon–Yemen proxy network and the crippling blow to the nuclear program in the June war, a more aggressive, assertive faction has emerged among the younger Guards. They see the regime as redeemable only through even harsher repression and confrontation — and some fear they may move against the aging ayatollah preemptively, not to save the revolution, but to save their own future. ​ The Limits of Terror The regime has survived four major protest waves, and the ayatollah has shrugged off rumors of terminal illness before. But this time, the pressure is different: economic collapse, a youth uprising, the humiliation in war, and a U.S. president openly threatening to intervene if protesters are massacred. ​ “This is not a sustainable situation where you wait for an elderly leader to die to put things back in order,” says an analyst, comparing today’s Iran to the final years of Mao Zedong or Leonid Brezhnev. The country “doesn’t have the time to wait him out.”​ #Iran#Ayatollah#RevolutionaryGuards#Protests#MiddleEast#Uprising#RegimeChange 📱American Оbserver - Stay up to date on all important events 🇺🇸

la fionda📗

@lafionda · Post #7193 · 01.03.2026 г., 09:55

https://x.com/SavinoBalzano/status/2028025360843964570?s=20 Ovviamente sono le ore della peggiore ipocrisia. Leggi le note stampa, apri i social e vieni letteralmente invaso da un fiume mefitico di impudenza. Il peggiore di tutti è l'ucraino magico, quello che suona il piffero — anzi, il pianoforte col pisello — e i sorci gli vanno dietro incantati: per #Zelenski «giusto liberarsi di un regime terrorista». Dovrebbe fare attenzione a certe uscite: se sabotare il #NordStream, unico vero attacco a infrastrutture europee, può essere considerato un atto terroristico o comunque illegale, la testa a rischiare potrebbe essere anche la sua. Lui e le pantegane che da anni farneticano, con le loro patetiche bandierine #UE e ucraine nella bio, di Stato aggredito e Stato aggressore, esultano: sono in piena estasi, in delirio totale. Fioccano pure le foto di #Khamenei con la croce sopra: uno in meno, colpito. A pubblicarle sono cagasotto da divano che non avrebbero mai il coraggio di imbracciare nemmeno una cerbottana per difendere la libertà e la democrazia. Si nasconderebbero nel primo buco disponibile, nel primo tombino. E già me li immagino, i minus habens: «ecco il soccorso al regime degli #ayatollah!». Io penso che ogni Paese debba regolarsi come vuole e che gli iraniani debbano vivere come credono: vedremo adesso quale sarà l’effetto dell’intervento. Ma il punto è un altro: agli israeliani e agli statunitensi non importa nulla della libertà e della democrazia in #Iran. Lo hanno spiegato bene alcuni ieri — bravissimo Marcello Foa nella sua analisi: #Netanyahu rischia di andare in galera e #Trump ha il grosso bubbone #Epstein. L’Iran non aveva armi pericolose per noi (come non le aveva Saddam), è la CIA dirlo, e stava facendo passi enormi per giungere a un accordo mediato dall’Oman. Di che parlate? Se davvero fosse un intervento in difesa delle donne soggiogate, degli omosessuali impiccati, della libertà di un popolo oppresso, perché non una parola per le bambine della scuola femminile #ShajarehTayyebeh? Le immagini che giungono da #Minab sono semplicemente strazianti. Anche qui la risposta ce l’hanno pronta: ci furono vittime anche nella guerra di liberazione in Italia, oggi abbiamo la democrazia. A parte il fatto che toccherebbe parlarne: siamo davvero così liberi oggi dai nostri “liberatori”? Lo potrebbe credere solo un idiota. In ogni caso, un crimine di guerra non ne cancella un altro e lo scopo dell’intervento cominciato ieri è tutt’altro che benevolo. Ti sbattono in faccia le immagini di iraniani in festa. Nessuno dice che il regime iraniano fosse un bene e dunque si capisce che qualcuno (alcuni, non tutti) esulti. Ma domandatevi cosa accadrà adesso: cos’è oggi l’Afghanistan? E cos’è oggi l’Iraq? E la Libia? Gli iraniani soffriranno ancora perché non hanno amici in Occidente. E i piccoli politicanti che affollano il nostro dibattito pubblico continuano a dimostrare la loro patetica inconsistenza. In tutto questo, però, che fine ha fatto il garante assoluto del diritto internazionale? Qualcuno ha sentito per caso la severa e autorevolissima voce di #SergioMattarella? Si può tifare, esultare, sentirsi dalla parte giusta della Storia. Ma la Storia, di solito, presenta il conto ai popoli, non ai commentatori da tastiera. E quando arriverà, sarà troppo tardi per scoprire che la libertà non si esporta con i bombardamenti.

Savino Balzano

@savinobalzano · Post #1288 · 01.03.2026 г., 08:34

https://x.com/SavinoBalzano/status/2028025360843964570?s=20 Ovviamente sono le ore della peggiore ipocrisia. Leggi le note stampa, apri i social e vieni letteralmente invaso da un fiume mefitico di impudenza. Il peggiore di tutti è l'ucraino magico, quello che suona il piffero — anzi, il pianoforte col pisello — e i sorci gli vanno dietro incantati: per #Zelenski «giusto liberarsi di un regime terrorista». Dovrebbe fare attenzione a certe uscite: se sabotare il #NordStream, unico vero attacco a infrastrutture europee, può essere considerato un atto terroristico o comunque illegale, la testa a rischiare potrebbe essere anche la sua. Lui e le pantegane che da anni farneticano, con le loro patetiche bandierine #UE e ucraine nella bio, di Stato aggredito e Stato aggressore, esultano: sono in piena estasi, in delirio totale. Fioccano pure le foto di #Khamenei con la croce sopra: uno in meno, colpito. A pubblicarle sono cagasotto da divano che non avrebbero mai il coraggio di imbracciare nemmeno una cerbottana per difendere la libertà e la democrazia. Si nasconderebbero nel primo buco disponibile, nel primo tombino. E già me li immagino, i minus habens: «ecco il soccorso al regime degli #ayatollah!». Io penso che ogni Paese debba regolarsi come vuole e che gli iraniani debbano vivere come credono: vedremo adesso quale sarà l’effetto dell’intervento. Ma il punto è un altro: agli israeliani e agli statunitensi non importa nulla della libertà e della democrazia in #Iran. Lo hanno spiegato bene alcuni ieri — bravissimo Marcello Foa nella sua analisi: #Netanyahu rischia di andare in galera e #Trump ha il grosso bubbone #Epstein. L’Iran non aveva armi pericolose per noi (come non le aveva Saddam), è la CIA dirlo, e stava facendo passi enormi per giungere a un accordo mediato dall’Oman. Di che parlate? Se davvero fosse un intervento in difesa delle donne soggiogate, degli omosessuali impiccati, della libertà di un popolo oppresso, perché non una parola per le bambine della scuola femminile #ShajarehTayyebeh? Le immagini che giungono da #Minab sono semplicemente strazianti. Anche qui la risposta ce l’hanno pronta: ci furono vittime anche nella guerra di liberazione in Italia, oggi abbiamo la democrazia. A parte il fatto che toccherebbe parlarne: siamo davvero così liberi oggi dai nostri “liberatori”? Lo potrebbe credere solo un idiota. In ogni caso, un crimine di guerra non ne cancella un altro e lo scopo dell’intervento cominciato ieri è tutt’altro che benevolo. Ti sbattono in faccia le immagini di iraniani in festa. Nessuno dice che il regime iraniano fosse un bene e dunque si capisce che qualcuno (alcuni, non tutti) esulti. Ma domandatevi cosa accadrà adesso: cos’è oggi l’Afghanistan? E cos’è oggi l’Iraq? E la Libia? Gli iraniani soffriranno ancora perché non hanno amici in Occidente. E i piccoli politicanti che affollano il nostro dibattito pubblico continuano a dimostrare la loro patetica inconsistenza. In tutto questo, però, che fine ha fatto il garante assoluto del diritto internazionale? Qualcuno ha sentito per caso la severa e autorevolissima voce di #SergioMattarella? Si può tifare, esultare, sentirsi dalla parte giusta della Storia. Ma la Storia, di solito, presenta il conto ai popoli, non ai commentatori da tastiera. E quando arriverà, sarà troppo tardi per scoprire che la libertà non si esporta con i bombardamenti.