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

Резултати

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

Търсене: #mercenaries

当前筛选 #mercenaries清除筛选
Venezuelanalysis

@venanalysis · Post #1846 · 08.01.2025 г., 20:23

Venezuelan President Nicolás Maduro called for a high level of alert ahead of his third term inauguration on Friday. Authorities have arrested seven alleged mercenaries, including two "high-ranking" US nationals. Read the report: https://venezuelanalysis.com/news/venezuela-maduro-reports-mercenary-detentions-former-candidate-marquez-arrested/ #Venezuela#Mercenaries#Inauguration

Venezuelanalysis

@venanalysis · Post #1793 · 30.10.2024 г., 21:25

🎙 Episode 29 of the Venezuelanalysis Podcast is live! Host José Luis Granados Ceja is joined by fellow VA writer Andreína Chávez Alava to discuss the recent arrests of foreign nationals and weapons seizures, the XVI BRICS Summit, and new corruption allegations in the Venezuelan oil industry. Tune in to watch the full episode: https://youtu.be/WJsRknBPV5o #Venezuela#BRICS#Mercenaries#Podcast

Venezuelanalysis

@venanalysis · Post #1788 · 27.10.2024 г., 23:27

The latest Venezuelanalysis podcast episode catches up on the latest developments from Venezuela on many fronts. Host José Luis Granados Ceja is joined by fellow VA writer Andreína Chávez Alava to discuss the recent arrests of foreign nationals and weapons seizures, the XVI BRICS Summit, and new corruption allegations in the Venezuelan oil industry. Follow this link to subscribe and listen: https://www.patreon.com/posts/venezuelanalysis-114819768 #Venezuela#BRICS#Mercenaries#Podcast

BadVolf

@BadvolfNews · Post #169 · 26.06.2022 г., 21:03

🇺🇦🇺🇸Azov murdered their own mercs, including a US citizen in the basements of Azovstal. In one of the basements at the Azovstal plant, a crematorium was located. More than ten burned bodies of mercenaries were found there. Most likely, realizing that captivity could not be avoided, the "Azovites" were given the command to destroy foreigners. Documents and personal belongings were burned, but the Nazis did not check the result, apparently in a hurry. Some of the documents were not burned properly and the US citizen's passport card and many other interesting proofs were found. Part 1. The list of US mercenaries🇺🇸 Part 2. The list of Canadian mercenaries🇨🇦 Part 3. The list of Israeli mercenaries🇮🇱 Part 4.1 The list of British mercenaries🇬🇧 Part 4.2 The list of British mercenaries🇬🇧 #Azov#Ukraine#war#mercenaries Share and subcribe @american_majority

BadVolf

@BadvolfNews · Post #134 · 09.06.2022 г., 23:53

🇺🇦🇬🇧🇲🇦3 foreign mercenaries - 2 British and 1 Moroccan were just sentenced to death in the DPR. Shaun Pinner, Aiden Daniel John Mark Aslin and Saadun Brahim are accused of terrorizing the people of the Donetsk People's Republic. Aiden Aslin arrived in Ukraine in 2018 and was recruited as a mercenary through the Georgian International Legion, after which he began to participate in hostilities. Aslin ended up in the 36th Marine Brigade of the Armed Forces of Ukraine, where he trained as a gunner of the KPVT heavy machine gun. In 2019, he took part in hostilities in the DPR. He received a reward of at least 30,000 hryvnias (about $1,000). Saadun Brahim served in the mortar crew of the first battalion of the 36th Marine Brigade, having signed a three-year contract with the AFU in December 2021. Shaun Pinner was a sniper in the 36th brigade of the Marine Infantry of the Armed Forces of Ukraine. #mercenaries#Great_Britain#Ukraine#war Share and subscribe @american_majority

BadVolf

@BadvolfNews · Post #52 · 05.05.2022 г., 04:49

🇺🇦🇮🇱And here we go! The leaked list of Israeli mercenaries in the ranks of the "International Legion of Territorial Defense of Ukraine" Adamsky Denis (18.01.1972, 39004675); Amsalem Shlomo (11.12.1967, 22509417); Babitzki Maxim (06.06.1971, 31744958); Baruch Hichkalmaz Shalom Meir (15.09.1998, 35526540); Ben Ari Idan (02.05.1999, 34524244); Bentley Brian Alexander (09.09.1993, 31804354); Frolov Oleksandr (10.05.1986, 34823233); Funes Yosef (18.08.1968, 23199208); Gis Vladyslav (06.12.1976. 22331865); Glembotske Andrey (16.04.1973, 24107729); Halbani Gilad (03.04.1982, 34892644); Horani Sall Salem (18.02.1993. 39945376); Katanov Yulian (25.02.1988, 39946280); Lupshitz Daniel (26.01.1978, 30087005); Malovaniuk Stanislav (19.02.1967, 23755162); Malul Or (18.02.1994, 39937895); Margulis Bronislav (26.07.1998, 39030149); Milman Michael (14.12.1991, 31400787); Niman Alexander (23.12.1983, 31646784); Paly Patel Vital Vitali (31.01.1989, 31087826); Peretz Bnaya (23.06.1989, 23620196); Shoham Alon Leonid (09.08.1965, 19008345); Shtonda Boris Baruch Boris (27.11.1996, 39936846); Sisoy Sergey (14.03.1984, 39941609); Smohorzhevskyi Askold (07.08.1995, 33141568); Sneh Eli Eliyahu (27.08.1961, 39943838); Snurnikov Boris (24.07.2000, 32749731); Sokolov Ilya (15.09.1987, 35358736); Solomatin Nikolay (25.09.1984, 23352701); Vaisman Vasiutin Nikyta (20.05.1998, 34571220); Wolfson Ugriumov Nathan Denis (25.04.1972, 3188732); Yatsenko Aleksander (21.08.1974, 30398095); Zlatkin Evgeny (26.06.1982, 39942699). Part 1. The list of US mercenaries Part 2. The list of Canadian mercenaries BTW, American Majority was the first and only Telegram channel which has published the list of all of the victims of the Miami building collapse last year. More exclusive info is coming! #mercenaries#leak#Israel#Ukraine#war Share and subscribe @american_majority

Venezuelanalysis

@venanalysis · Post #1798 · 04.11.2024 г., 15:52

In her latest column, VA’s Andreína Chávez warns of increasing mercenary invasions in Venezuela, as authorities recently intercepted foreign operatives with US-made weapons. These incidents echo past attempts, including the thwarted 2019 border operation. Read the full column here 👉🏼https://shorturl.at/o7p2V #ForeignIntervention#Mercenaries#vacolumn

Venezuelanalysis

@venanalysis · Post #1780 · 20.10.2024 г., 14:45

Venezuelan Interior Minister Diosdado Cabello announced the arrest of a new group of foreign nationals for alleged involvement in a terrorist plot. Cabello pointed the finger at Spain’s National Intelligence Center (CNI) and US agencies for recruiting mercenaries and facilitating arms trafficking for criminal gangs in the South American country. Read more: https://venezuelanalysis.com/news/venezuela-authorities-arrest-19-mercenaries-in-anti-terrorism-operation/ #coups#mercenaries#terrorism

BadVolf

@BadvolfNews · Post #225 · 28.07.2022 г., 04:06

🇺🇸🇪🇺🇺🇦Foreign mercenaries in Ukraine complain about stolen weapons and huge losses Although donations of military hardware and civilian aid have poured in from Western governments and private aid organizations, all of the sources interviewed in Ukraine said that a substantial portion of the aid is just stolen and being sold in the darknet. “Both civilian and military aid goes missing,” said Mike, a volunteer military trainer from the UK. “This country has a corruption issue that will inevitably affect the outcome of the war. “Absolutely everything—Javelin missiles, other missiles, vehicles, rifles, ammunition, grenades—all of it has been stolen. And it’s happening on both sides of the border. Lots of it is stolen in Poland, but it absolutely happens when it reaches Ukraine, too.” “Probably more than half the injuries are friendly fire,” confirmed Steve, an American who has been volunteering as a military and medical trainer since February. Steve was appalled by the mishandling of military aid that has been donated to Ukraine. “I fought in the Middle East and Africa, and I’ve never seen this level of corruption. [...] I’ve trained over 2,000 Ukrainian soldiers, and I’d guess at least half are dead.” Part 1. The list of US mercenaries🇺🇸 Part 2. The list of Canadian mercenaries🇨🇦 Part 3. The list of Israeli mercenaries🇮🇱 Part 4.1 The list of British mercenaries🇬🇧 Part 4.2 The list of British mercenaries🇬🇧 Part 5 The list of Italian mercenaries🇮🇹 #Ukraine#war#mercenaries#weapons#Biden#Corruption Share and subcribe @american_majority

BadVolf

@BadvolfNews · Post #386 · 12.10.2022 г., 18:54

🇺🇸🇺🇦Transgender faggot US journalist was enlisted in the AFU 🏳‍🌈Sarah Ashton-Cirillo, an ultra-liberal trans activist from Nevada and a CIA operative known as Mark Hay was enlisted in the Armed Forces of Ukraine. Earlier in July it reported that it has been assigned to the Georgian National Legion to cover their activities and praising war crimes of Azov nazi regiment as well. However "Sarah" is not the only LGBT person from the US who joined the ukrainian foreign legion and AFU. 🤮How do I unsee it??? #lgbtq#Ukraine#war#Azov#mercenaries#degeneration @american_majority

BadVolf

@BadvolfNews · Post #94 · 25.05.2022 г., 10:12

⚡🇺🇸2 CIA Officers Killed in Line of Duty, Stars Added to Memorial Wall The CIA dedicated two new stars on the agency’s Memorial Wall in a quiet ceremony at its headquarters in Langley, Virginia. The wall, which now holds 139 engraved stars, is the CIA’s memorial to agents and employees killed in the line of duty. The two went up, as usual, without fanfare, and the names and stories behind them remain classified. Of the 139 stars the wall now holds, 37 remain classified, including the years, locations, and details of the work that led to the deaths shrouded in mystery. That happened right after the fall of Azovstal. "Yes, but it's only an interesting coincidence at the moment!" Part 1. The list of US mercenaries🇺🇸 Part 2. The list of Canadian mercenaries🇨🇦 Part 3. The list of Israeli mercenaries🇮🇱 Part 4.1 The list of British mercenaries🇬🇧 Part 4.2 The list of British mercenaries🇬🇧 #CIA#mercenaries#Canada#Israel#Britain#Great_Britain#USA#Ukraine#war#leak Share and subscribe @american_majority

The Ukrainian project “I Want to Live” has published a list of Uzbek citizens killed or missing while fighting for Russia in its war against Ukraine. The team identified 481 individuals but says the real number is likely much higher. https://yep.uz/en/2025/10/uzbek-citizens-killed-missing-russia-war-ukraine/ #xochujit#uzbekistan#russia#ukrainewar#russianarmy#mercenaries#centralasia#migrants#uzbeks#casualties#investigation#warinukraine