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

Резултати

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

Търсене: #usmilitaryattack

当前筛选 #usmilitaryattack清除筛选
Venezuelanalysis

@venanalysis · Post #2349 · 27.04.2026 г., 17:31

🖊OPINION | After the US Bombing, a Venezuelan Community Under Siege Speaks Solidarity activist Roger Harris visited Ciudad Tiuna, where residents described the impact of the January 3 US airstrikes. Residents say over 100 people were killed in the attack, which also led to the reported abduction of President Nicolás Maduro and Cilia Flores. Community members continue to demand their release, along with sovereignty, non-intervention, and reparations. Read the full opinion piece here 👉🏾https://venezuelanalysis.com/opinion/after-the-us-bombing-a-venezuelan-community-under-siege-speaks/ #USmilitaryattack #USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2287 · 28.02.2026 г., 15:50

🗒️🗣️ INTERVIEW | What Is Really Happening in Venezuela Venezuelanalysis editor Ricardo Vaz joined Ileana Chan on the Global Majority for Peace podcast to take stock of Venezuela’s political reality following the January 3 US attacks and kidnapping of President Nicolás Maduro. The discussion focuses on the long history of imperialist attacks against the Bolivarian Revolution and the US’ efforts to take control of the Venezuelan oil industry. Watch the full interview here 👉🏾https://venezuelanalysis.com/video/what-is-really-happening-in-venezuela/ #USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2250 · 19.01.2026 г., 19:24

🖊OPINION | After the Bombs: Venezuelans Concerned About a Future of Coercion and Colonization In her latest opinion piece, Jessica Dos Santos takes stock of Venezuelans’ concerns and local expert assessments pointing to a politically and economically difficult road ahead, with the country portrayed as being held hostage by the US, following what officials describe as “a new political moment.” Read the full opinion piece here: https://shorturl.at/cfU4Z #USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2261 · 29.01.2026 г., 17:22

📰 NEWS | Rubio Defends US Military Operation, Praises Venezuela Oil Reform US Secretary of State Marco Rubio defended the January 3 US military operation in Venezuela during a Senate hearing, arguing it was not an act of war. He also confirmed that Washington is administering Venezuelan oil sales, with proceeds deposited in US-controlled accounts before partial release to Caracas. On Tuesday, Acting President Delcy Rodríguez announced that Venezuela is using "unblocked funds" to import medical equipment from the US. Read our report 👉🏽https://shorturl.at/Sm9iK #Sanctions#USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2317 · 27.03.2026 г., 10:18

📰 NEWS | Venezuela: Judge Refuses to Dismiss Maduro Case, Challenges US Blocking of Defense Funding A US federal judge has declined to dismiss the case against Venezuelan President Nicolás Maduro and First Lady Cilia Flores during a hearing in Brooklyn. Judge Alvin Hellerstein rejected defense arguments that sanctions blocking access to Venezuelan state funds justified dropping the charges, but indicated the issue could be revisited. He also challenged prosecutors’ claims, noting sanctions prevent the defendants from using personal funds and stating they “no longer represent a threat.” Flores’ request for a medical evaluation was approved. Both defendants remain in custody, with a new court date to be scheduled. Read our full report here 👉🏽https://shorturl.at/jbvKH #NicolasMaduro#USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2268 · 04.02.2026 г., 19:30

📰 NEWS | Venezuelans Stage Mass Rally, Demand Maduro Liberation and Return Chavista supporters rallied in Caracas on Tuesday demanding the release of President Nicolás Maduro and First Lady Cilia Flores, one month after their reported capture during a US attack on Venezuela on Jan. 3. Maduro and Flores were arraigned in New York on Jan. 5, pleaded not guilty to charges including drug trafficking conspiracy, and their next hearing has been postponed to March 26 following a request from US prosecutors. Read the full report here: https://venezuelanalysis.com/news/venezuelans-stage-mass-rally-demand-maduro-liberation-and-return/ #NicolasMaduro#USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2257 · 23.01.2026 г., 23:42

📰 NEWS | Venezuelan Healthcare Workers Demand Maduro’s Release as Rodríguez Defends ‘Fearless’ Diplomacy with the US Venezuelan healthcare workers rallied at UN offices in Caracas on January 23, calling for the release of President Nicolás Maduro and First Lady Cilia Flores after their January 3 detention by US forces. Demonstrators submitted a letter to the UN High Commissioner for Human Rights requesting condemnation of the action and their immediate release. At the same time, diplomatic engagement between Caracas and Washington is moving forward. Acting President Delcy Rodríguez confirmed ongoing talks with US officials, and the White House announced a prospective visit by the Venezuelan leader. Read our report 👉🏽https://shorturl.at/CzH4c #NicolasMaduro#USmilitaryattack#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2322 · 31.03.2026 г., 01:21

🔈PODCAST | Venezuela After January 3: A New Stage of US Imperialism The VA Podcast is back. In our Season 3 premiere, we tackle the fallout of the January 3rd military escalation against Caracas, an event that marks a volatile new chapter in the long history of US intervention in the region. Join Venezuelanalysis Chief Editor Ricardo Vaz, Associate Editor Lucas Koerner, and VA Founder Greg Wilpert as they break down the geopolitical shift from "maximum pressure" to direct confrontation. This episode goes beyond the headlines to analyze the underlying causes and the global consequences of Washington’s renewed focus on "its" hemisphere. Follow the link for early access to this episode: https://www.patreon.com/venanalysis #USVenezuelaRelations#USmilitaryattack#VAPodcast

Venezuelanalysis

@venanalysis · Post #2291 · 03.03.2026 г., 17:23

🖊OPINION | Western Gangster Journalism Runs Cover for Trump’s ‘Donroe Doctrine’ in Venezuela Western corporate media have played an active role in recent years in legitimizing escalated US aggression against Venezuela, including whitewashing economic sanctions that killed tens of thousands. In his latest opinion piece, VA's Ricardo Vaz breaks down this dishonest corporate media coverage that endorsed the US' military buildup and attacks against Venezuela. Read the full opinion piece here: https://venezuelanalysis.com/opinion/western-gangster-journalism-runs-cover-for-trumps-donroe-doctrine-in-venezuela/ #MediaCoverage#USmilitaryattack

Venezuelanalysis

@venanalysis · Post #2253 · 21.01.2026 г., 13:05

🖊OPINION | Labeling Kidnapping a ‘Capture,’ Media Legitimate Violation of International Law From January 3–5, leading US newspapers ran 223 articles mentioning Nicolás Maduro. Most described US actions using “capture” or “arrest,” while references to “abduction” or “kidnapping” appeared rarely and only in quoted statements. On this opinion piece, Greg Shupak exposes the corporate media's work in trying to legitimize the Trump administration's kidnapping of Venezuelan President Nicolás Maduro. Read the full opinion piece here 👉🏽https://shorturl.at/zyBC0 #MediaCoverage#NicolasMaduro#USmilitaryattack

Venezuelanalysis

@venanalysis · Post #2324 · 01.04.2026 г., 22:38

🎙🔊 Episode 43 of the VA Podcast is live! The Venezuelanalysis Podcast is back. In our new season premiere, we tackle the fallout of the January 3rd military escalation against Caracas, an event that marks a volatile new chapter in the long history of US intervention in the region. Join Venezuelanalysis Lead Editor Ricardo Vaz, Associate Editor Lucas Koerner, and VA Founder Greg Wilpert as they break down the geopolitical shift from "maximum pressure" to direct confrontation. This episode goes beyond the headlines to analyze the underlying causes and the global consequences of Washington’s renewed focus on "its" hemisphere. Watch the full episode here 👉https://youtu.be/NKuCNIxn2MA #Venezuela#USImperialism#usvenezuelarelations#USmilitaryattack#VAPodcast

Venezuelanalysis

@venanalysis · Post #2252 · 20.01.2026 г., 14:57

📸 IN IMAGES | Venezuelan Gov’t Deploys Social Programs, Cultural Events in Areas Affected by US Strikes The Venezuelan government has begun a series of cultural and social initiatives in communities impacted by the January 3 US bombings, including La Guaira and Ciudad Tiuna in Caracas. Officials reported damage to housing complexes and announced food distribution, healthcare, and psychological support services for affected families. During a visit to Ciudad Tiuna, Acting President Delcy Rodríguez also detailed upcoming economic reforms. These include the creation of two sovereign wealth funds, one focused on social protection and another on infrastructure, as well as a proposed reform of the Hydrocarbon Law and additional legislative initiatives. Click here to explore the full gallery 👉🏽https://shorturl.at/7IfRU #Culture#DelcyRodríguez#USmilitaryattack

12
ПредишнаСтр. 1 от 2Следваща