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

Търсене: #feminism

当前筛选 #feminism清除筛选
Venezuelanalysis

@venanalysis · Post #2081 · 29.08.2025 г., 21:15

📝 INTERVIEW | Pending Tasks for Chavista Feminism: A Conversation with Roraima Rivas-Liendo In the latest VA interview, Roraima Rivas-Liendo, activist and spokesperson for the Venezuelan feminist collective FaldasR, discusses legislative advances, ongoing challenges, and the state of sexual and reproductive rights in Venezuela. For over a decade, FaldasR has provided information and support to women and people capable of gestation across the country. The organization’s latest report highlights two trends: a rise in unsafe abortion attempts and increased early engagement from those seeking guidance. Rivas-Liendo notes that many now recognize abortion as a collective right, signaling a shift toward self-determination despite legal restrictions. 🔗 Read the full interview here: shorturl.at/YjpgI #Feminism#Sanctions

Venezuelanalysis

@venanalysis · Post #1922 · 31.03.2025 г., 15:31

📸 IN IMAGES | Venezuela: 1,600 Women Discuss ‘Communal Feminism’ at First National Gathering On March 29, more than 1,600 women took part in the Communard Union’s first national gathering on communal feminism in Caracas. The meeting set four key priorities: developing a feminist economy, strengthening healthcare, eliminating gender-based violence, and expanding political participation. A commission was appointed to oversee these initiatives, with annual follow-up meetings planned. 🔗 Don’t miss the full gallery here 👉🏼https://venezuelanalysis.com/images/venezuela-1600-women-discuss-communal-feminism-at-first-national-gathering/ #CommunardUnion#Communes#Feminism

Venezuelanalysis

@venanalysis · Post #1907 · 12.03.2025 г., 15:28

🎙PODCAST | The Venezuelanalysis Podcast Episode 35: Popular Feminism in Venezuela Our latest podcast episode coincides with International Working Women’s Day (March 8) to take stock of popular feminist struggles under the Bolivarian Revolution in Venezuela. VA staff member Cira Pascual Marquina joins host José Luis Granados Ceja to discuss the impact of sanctions on women, the role of women in popular power, a recent conservative/religious offensive, and lots more! Watch the full episode here: https://www.youtube.com/watch?v=ZO_aA0Zf2t8&t=2607s #Feminism#GrassrootsMovements

Venezuelanalysis

@venanalysis · Post #1901 · 07.03.2025 г., 17:37

📝 INTERVIEW | Feminism and Revolution: A Conversation with Alejandra Laprea In the latest VA interview, Alejandra Laprea, a popular feminist and member of the World March of Women, discusses how popular feminism in Venezuela continues to shape the revolution from the ground up. She stresses the importance of unity within the feminist movement, advocating for a collective, consensus-based agenda. "We are experiencing a moment of setbacks at the global, continental, and national levels. In Venezuela, the feminist movement must come together and build a common agenda – one that is truly collective and based on consensus, rather than a mere compilation of different perspectives." States Alejandra. 🔗 Read the full interview here: https://shorturl.at/ppCss #Feminism#Sanctions#WomensRights

Venezuelanalysis

@venanalysis · Post #1502 · 15.03.2024 г., 16:43

Explore the intricacies of Venezuela's battle against women's oppression as feminist anthropologist Aimee Zambrano Ortiz delves into the subject in this interview. Highlighting legislative strides and the significance of initiatives like the Femicide Monitor, Zambrano Ortiz underscores the ongoing struggle for gender equality within the Bolivarian Process. Click here to read the full interview 👉🏼https://bit.ly/43yXiHn #feminism#sanctions#women

Venezuelanalysis

@venanalysis · Post #1904 · 10.03.2025 г., 00:11

Our latest podcast episode coincides with International Working Women's Day (March 8) to take stock of popular feminist struggles under the Bolivarian Revolution in Venezuela. VA staff member Cira Pascual Marquina joins host José Luis Granados Ceja to discuss the impact of sanctions on women, the role of women in popular power, a recent conservative/religious offensive, and lots more! Follow the link to subscribe and watch/listen: https://www.patreon.com/posts/123944102 #InternationalWomensDay#Feminism#Venezuela#Podcast

Venezuelanalysis

@venanalysis · Post #1902 · 08.03.2025 г., 13:42

🗓️ MILESTONE | International Working Women’s Day ✊🏽💜 Across the globe, this day serves as a vital reminder of the ongoing struggles for equality, justice, and the dismantling of oppressive systems. Solidarity extends to every corner of the earth, where working-class women continue to fight for their rights, equality, and recognition. 🔗 Click here to discover the revolutionary Venezuelan women who played a pivotal role in shaping history through their courage and commitment: https://www.instagram.com/p/DG8K7vStGHM/?igsh=MTkydWM1cGF1YXRqcA== #IWD#feminism#InternationalWorkingWomensDay

Venezuelanalysis

@venanalysis · Post #2049 · 01.08.2025 г., 17:18

📝 INTERVIEW | Women’s Emancipation through Economic Transformation: A Conversation with Sandra Angeleri Historian Sandra Angeleri speaks about the legacy of Nora Castañeda, a feminist economist who led one of the Bolivarian Revolution’s most innovative institutions, in her newly published book. From her early political formation in the barrios of Caracas to her leadership of Banmujer (the Women’s Development Bank), Castañeda pushed for structural change, fighting to include unpaid domestic work in Venezuela’s Constitution and helping to build institutional models that challenged both patriarchy and capitalism. Her work laid the foundation for economic autonomy among working-class women. 'Banmujer wasn’t just about lending money, it was about collective empowerment,' Angeleri notes. 👉 Follow the link to read the interview: https://shorturl.at/ubpwR #Banks#Feminism#WomensDevelopmentBank