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

Резултати

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

Търсене: #dmp2025

当前筛选 #dmp2025清除筛选
gov.sg

@Govsg · Post #1807 · 14.10.2023 г., 04:11

Making Singapore a liveable, inclusive and endearing home for all takes a collective effort. Learn how you can contribute to the Draft Master Plan 2025 and shape your future Singapore here: go.gov.sg/URADraftMasterPlan #DMP2025 Infographics: @urasingapore

Hashtags

URA Singapore

@URASingapore · Post #610 · 05.10.2023 г., 11:12

[JUST LAUNCHED] Join us in shaping our city in the Draft Master Plan 2025 Public Engagement! Long-term planning has shaped the city that we live in today. Now, you too can play a part in making Singapore a more liveable, inclusive and endearing home. We will be engaging Singaporeans over the next two years on various plans and the public engagement exercise will culminate in the Draft Master Plan 2025, which will guide Singapore’s development over the next 10 to 15 years. Find out more at: https://go.gov.sg/DMP2025videotg #DMP2025

Hashtags

URA Singapore

@URASingapore · Post #1228 · 12.06.2025 г., 10:05

Who says uncles can’t keep up? 🏙💪 Meet Team Strong Silvers, your friendly neighbourhood uncles who aren't just staying active; they inspire an entire community to move! Watch how this group of friends show us what ageing-in-place looks like - turning everyday spaces into pockets of connection. Want more neighbourhoods like this? The URA Draft Master Plan 2025 is shaping spaces where we can all age strong and live well. Learn more: go.gov.sg/ExtraordinaryStoriesTG✨ #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1210 · 20.05.2025 г., 10:01

Will Singapore ever run out of land? 👀 We get this question a lot—so we got Navin, our Urban Planner, to break it down for you. From sky gardens to underground links, see how we’re planning ahead to make room for all the things that matter—homes, recreation, green spaces, your dreams and aspirations. 🌇🌿 Share with us your ideal Singapore in the next 10 to 15 years here: go.gov.sg/URAPlannerExplainsTG and keep an eye out for our upcoming exhibition in June! #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1201 · 24.04.2025 г., 10:03

This is our type of ASMR. 😌 👣 Active Living: Move freely and with ease on walkable pathways. 🌻 Social Well-Being: Bond with your community in shared spaces. 🌳 Mental Wellness: Discover peaceful parks near home to relax and unwind. ☁️ Routine: Everyday wellness, wherever you are. Check out our newest Urban Lab exhibition at: go.gov.sg/HealthyCitiesTG Well-Being in the City: Innovating Healthy Living 📅: 1 Apr - 31 May 2025 📍: The URA Centre, Level 1 Atrium #DMP2025#SpaceforOurDreams

URA Singapore

@URASingapore · Post #1159 · 06.03.2025 г., 10:00

Ever wondered who decides what gets built in Singapore? 🤔 It's not just professionals and government agencies—you can contribute too! Join Davina, our Urban Planner, as she unveils how the land planning process works in Singapore. Got ideas to shape your neighbourhoods or workspaces? 💡 Visit go.gov.sg/URAPlannerExplainsTG to see what’s planned for the Draft Master Plan 2025 and share your thoughts! #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1144 · 04.02.2025 г., 10:03

Big things are happening at the Rail Corridor with new community nodes coming your way! Think chill spots, and heritage gems getting a fresh spin. 🌿✨ Watch to see what’s shaping up, and swing by the 'From Rail to Trail' Rail Corridor Exhibition to check out more. 📅: Now till 28 Feb 2025⁣ 📍: URA Centre 👉 Share your ideas at: go.gov.sg/RCexhibitionTG #SpaceForOurDreams#DMP2025

URA Singapore

@URASingapore · Post #1125 · 17.01.2025 г., 03:20

Take a stroll down the Rail Corridor with URA's Senior Director of Planning, See Nin, and wildlife documentary camerawoman, Evangelista, as they reveal how this 24km stretch of passageway was transformed from tracks 🛤 to trails 👣 – while preserving its distinctive character! This isn't just another makeover; we're talking about over 50 access points connecting neighbourhoods across our sunny island! 💭 The journey continues, and we want to hear from you! Join us at the Rail Corridor Exhibition happening from 17 Jan at the URA Centre! Find out more on go.gov.sg/RailCorridorTG #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1114 · 06.01.2025 г., 10:06

Swipe to see how Punggol Digital District is transforming into Singapore’s first smart district. With community spaces, green paths and integrated work-live-play environments, it’s taking urban living to the next level! Read more at go.gov.sg/PDDarticleTG. Keep a lookout for the Draft Master Plan 2025 exhibition happening in June, where we will be seeking your ideas on more business and job nodes across Singapore! Image credits: JTC Corporation #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1096 · 28.12.2024 г., 04:01

Creating a more liveable, inclusive, and endearing Singapore — that’s the goal of the Draft Master Plan 2025, and we’ve made great strides this year. Here’s our 2024, wrapped! For more info, visit go.gov.sg/URADraftMasterPlanTG #DMP2025#SpaceforOurDreams

URA Singapore

@URASingapore · Post #1082 · 18.12.2024 г., 10:09

Imagine your future, supercharged ⚡🔋 ⁣ Check out how plans for our Northern and Central areas' business nodes will mean even shorter trips to work, more innovative spaces to learn and collaborate, and lively, green neighbourhoods to live your best life! ⁣ Last chance to explore these transformations and more at our ‘Enabling Sustainable Growth: Shaping the Future of Work’ exhibition! 📅: Now till 3 Jan 2025⁣ 📍: URA Centre 👉 More info: go.gov.sg/FutureofWorkTG #DMP2025#SpaceForOurDreams

URA Singapore

@URASingapore · Post #1064 · 10.12.2024 г., 10:01

Smarter. Faster. Greener. Discover innovations that are shaping the future of last-mile deliveries. 💡 Singapore is shaping the future of last-mile deliveries with AI, robots and innovative designs. Don’t miss out on seeing it all in one place! 📅: Now till 25 Jan 2025⁣ 📍: URA Centre 👉 Free guided tours and more at: go.gov.sg/DeliveringtheFutureTG #DMP2025#SpaceForOurDreams

123•••1011
ПредишнаСтр. 1 от 11Следваща