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 подобни публикации

Търсене: #pahlavi

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

@american_observer · Post #4811 · 09.01.2026 г., 16:29

🔤🔤🔤🔤2️⃣ IHR said Wednesday was the bloodiest day of the now 12-day movement, with 13 protesters confirmed killed. “The evidence shows that the scope of the crackdown is becoming more violent and more extensive every day,” said the IHR director, Mahmood Amiry-Moghaddam, adding that hundreds more had been wounded and more than 2,000 arrested. The protest movement is the largest in three years, and while it has not yet reached the size of the 2022 Woman, Life, Freedom demonstrations, it has alarmed Iran’s political and security leadership. Rights groups accused authorities of resorting to tactics including raiding hospitals to detain wounded protesters. The Iranian president, Masoud Pezeshkian, on Thursday called for restraint in how the demonstrations are handled. “Any violent or coercive behaviour should be avoided,” said Pezeshkian in a statement on his website, urging “utmost restraint” as well as “dialogue, engagement and listening to the people’s demands”. The government has said that solving the economic crisis afflicting the country is largely out of its hands, and that while it will work to tackle corruption and price gouging, it has few tools to use. It blamed the economic woes of the country on external factors, primarily the harsh sanctions placed on Iran mainly by the west in response to Iran’s nuclear programme. The protests thus far seem to be decentralised and lacking in a central figure, in contrast to the 2022 protests, when demonstrators rallied around 22-year-old Mahsa Amini, who died in police custody after being arrested for allegedly wearing the hijab improperly. It is unclear the level of support Pahlavi enjoys, though videos of protests over the last 12 days have showed demonstrators chanting in support for the exiled prince. A social media channel close to Iran’s security forces published a video which purported to show intelligence agents visiting people in their homes warning them not to take part in Pahlavi’s protest, with other outlets claiming drones would be used to identify those who do participate. German foreign minister Johann Wadephul, meanwhile, condemned the “excessive use of force” by Iranian authorities against protesters. The Iranian foreign ministry and military have lashed out over Trump’s comments, with Iran’s army chief threatening on Wednesday to carry out pre-emptive strikes on states that threaten Iran. Authorities have increasingly cast protesters as violent, saying that while the right to protest was legitimate, rioters and foreign-backed saboteurs had hijacked protests. #iran#protesters#pahlavi 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4810 · 09.01.2026 г., 15:59

Iran: the Protests Jolted the Khamenei Regime Out of Its Theocratic Masturbation 🔤🔤🔤🔤1️⃣ Iran was plunged into a complete internet blackout on Thursday night as protests over economic conditions spread nationwide, increasing pressure on the country’s leadership. While it was unclear what caused the internet cut, first reported by the internet freedom monitor NetBlocks, Iranian authorities have shut down the internet in response to protests in the past. NetBlocks had reported outages in the western city of Kermanshah earlier in the day, as authorities intensified their crackdown against protesters. The Norway-based NGO Iran Human Rights (IHR) said on Thursday that Iranian security forces had killed at least 45 protesters, including eight children, since the demonstrations began in late December. Shopkeepers heeded calls from seven Kurdish political groups for a general strike on Thursday, closing their doors in Kurdish regions and dozens of other cities around Iran. The Hengaw rights group posted footage of shuttered shops in the western provinces of Ilam, Kermanshah and Lorestan. It accused authorities of firing on demonstrators in Kermanshah and the nearby town of Kamyaran to the north, injuring several protesters. Demonstrations reached all 31 provinces on Thursday as the protest movement showed no signs of abating. In the southern Fars province demonstrators pulled down the statue of the former senior Revolutionary Guards al-Quds force commander Qassem Suleimani – considered a hero of mythical proportions by government supporters. Verified footage showed protesters cheering as the statue came down. Protests took place into the night Thursday, with a large crowd seen gathering on the vast Ayatollah Kashani Boulevard in the north-west of Tehran amid the sound of vehicle horns honking in support, according to social media images verified by Agence France-Presse. Other images showed a crowd demonstrating in the western city of Abadan. A woman attending a protest in that city late on Wednesday had been shot in the eye, according to IHR. #iran#protesters#pahlavi 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marx21.it

@marx21news · Post #9679 · 03.02.2026 г., 07:47

Il SAVAK: il cuore nero della repressione nello scià Nato nel 1957 su progetto USA dopo il colpo di Stato del 1953 in Iran, il SAVAK non fu solo un servizio segreto, ma un vero e proprio laboratorio del terrore al servizio del regime Pahlavi. Struttura e controllo totale Modellato su FBI e CIA, con una rete capillare in ogni ministero. Addestrato dal Mossad israeliano per tecniche di contro-sovversione. Dipartimento Terzo: il cuore della repressione interna, specializzato in sorveglianza, torture e omicidi. La macchina della tortura Pestaggio delle piante dei piedi, abusi sessuali, isolamento disumano. Il Comitato Congiunto Antisabotaggio (1972) trasformò la repressione in una procedura sistematica. I torturatori venivano premiati con bonus economici: la violenza diventava carriera. ⚖️ Ipocrisia e omicidi “silenziosi” Dopo le pressioni internazionali per i diritti umani, il regime introdusse solo riforme di facciata. Dal 1977, si passò agli omicidi con cianuro per evitare prove visibili. La fine Tra il 1978 e il 1979, con gli scioperi petroliferi e la rivoluzione, il SAVAK collassò. Il suo quartier generale fu occupato l’11 febbraio 1979, pochi giorni dopo la fuga dello scià. Una lezione storica Il SAVAK dimostra come un apparato costruito per “proteggere lo Stato” finisca per identificarsi con la difesa di un potere autoritario, trasformando l’eccezione violenta in normalità. Ma quando la paura diventa governo, la società smette di credere alle sue narrazioni. E così, il SAVAK crollò insieme al regime che serviva. #SAVAK#Iran#Storia#DirittiUmani#Pahlavi#RivoluzioneIraniana https://www.marx21.it/storia-teoria-e-scienza/il-savak-architrave-repressivo-del-regime-pahlavi-e-laboratorio-della-sicurezza-politica/

iPhone Telegram Themes️

@IOSTelegramThemes · Post #907 · 07.03.2026 г., 11:45

Apply Theme 𝗕𝗮𝗰𝗸𝗴𝗿𝗼𝘂𝗻𝗱 of Theme ☆𝗝𝗼𝗶𝗻 𝗶𝗣𝗵𝗼𝗻𝗲𝘀 #transparent#IOSThemes#iphonethemes#theme#themes#тема#主题#テーマ#주제#تم#thème#art#TelegramThemes#темыдляiPhone#темы_для_iPhone#temaiphone#tema_iphone#temasparaiphone#temas_para_iphone#iPhoneWallpaper#iPhoneWallpapers#iOSWallpaper#AestheticWallpaper#4KWallpaper#iOSBlack#iOSWhite#iOS#iphone#iOS26#Pahlavi#Shah#Theking#kingOfIran#پهلوی#شاه_ایران#جاویدشاه

iPhone Telegram Themes️

@IOSTelegramThemes · Post #906 · 07.03.2026 г., 11:45

Apply Theme 𝗕𝗮𝗰𝗸𝗴𝗿𝗼𝘂𝗻𝗱 of Theme ☆𝗝𝗼𝗶𝗻 𝗶𝗣𝗵𝗼𝗻𝗲𝘀 #transparent#IOSThemes#iphonethemes#theme#themes#тема#主题#テーマ#주제#تم#thème#art#TelegramThemes#темыдляiPhone#темы_для_iPhone#temaiphone#tema_iphone#temasparaiphone#temas_para_iphone#iPhoneWallpaper#iPhoneWallpapers#iOSWallpaper#AestheticWallpaper#4KWallpaper#iOSBlack#iOSWhite#iOS#iphone#iOS26#Pahlavi#Shah#Theking#kingOfIran#پهلوی#شاه_ایران#جاویدشاه