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

Резултати

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

Търсене: #dyk

当前筛选 #dyk清除筛选
HDB

@SingaporeHDB · Post #3148 · 12.03.2026 г., 10:05

School holiday adventures await at Parc Glen @ Tengah! Your little ones can bounce on trampolines, explore a cave playground, dig in the sand, or climb through a futuristic looking ant-nest playground. Swipe to the end to plan your best route ➡️ ℹ️#DYK: From January 2026, playgrounds in newly launched BTO projects will be guided by HDB’s new Play Values Framework. Shaped by children and parents’ feedback and with input from early childhood professionals, healthcare professionals and playground specialists, the framework guides the creation of engaging play spaces that support children’s development.

Hashtags

HDB

@SingaporeHDB · Post #2770 · 15.05.2025 г., 07:31

Home buyers, more new homes are coming your way in 2025! In October, we’ll launch the first BTO project at the former Keppel Club Site. Located next to Berlayer Creek, the project will offer around 1,000 units ranging from 2-room Flexi to 4-room flats, as well as public rental flats, in a central location close to nature. #DYK that a granite rock outcrop, ‘Batu Berlayar’, once stood nearby and was said to have served as a navigational marker for maritime traders? We’ll be sharing more information on the project later this year. Also, here’s a first look at the Toa Payoh Town (West) BTO project that we’re launching this July. Home buyers will be able to choose from 740 units of 2-room Flexi to 4-room flats, and the project will come with new amenities such as an eating house, shops, and a preschool.

Hashtags

HDB

@SingaporeHDB · Post #2667 · 05.02.2025 г., 04:32

💎#DYK there’s a hidden gem in Jurong West? Welcome to Jurong West Jewel, thoughtfully designed for residents to live well, live green and live connected. 🔸 Distinctive façade with jewel-shaped motifs 🌳 Fitness stations and playgrounds nestled within lush greenery 👶 Integrated childcare centre, Active Ageing Centre, and Residents’ Network Centre 🚆 Pioneer MRT station and a bus-stop right at your doorstep 🏞️ Leisure spots nearby, including Yunnan Park and Jurong West Stadium and Sports Centre

Hashtags

HDB

@SingaporeHDB · Post #2166 · 16.02.2024 г., 04:01

#DYK The Home ownership Support Team (HST) provides support to rental families who are ready to buy a flat. Mdm Aliya was one of the rental households who bought a new flat with the support of the HST. With a Step-Up Housing Grant of $15,000 from HDB and her CPF savings, she fully paid off her flat and did not have to take up any mortgage. She’s happy to have a home to call her own. ❤🏠

Hashtags

HDB

@SingaporeHDB · Post #2154 · 05.02.2024 г., 04:01

#DYK The Parenthood Provisional Housing Scheme (PPHS) supports families in need of temporary housing while they await the completion of their new BTO flats? To meet the demand for PPHS flats, we will double the supply to 4,000 units by 2025. Find out more about the eligibility criteria and how to apply.

Hashtags

HDB

@SingaporeHDB · Post #2131 · 27.12.2023 г., 09:02

#DYK The HFE letter is a 3-in-1 eligibility assessment that streamlines the flat buying process, informing you upfront of your eligibility to: 1️⃣ Buy a new and/ or resale flat 2️⃣ Receive CPF housing grants, and the amount 3️⃣ Take up an HDB housing loan, and the amount Remember: You’ll need an HFE letter before you can apply for a flat at the February 2024 Sales Launch. Apply by 15 January 2024 at https://homes.hdb.gov.sg

Hashtags

HDB

@SingaporeHDB · Post #2046 · 15.11.2023 г., 10:07

#DYK that HDB has a 10-year plan to reduce energy consumption in HDB towns by 15%, by 2030? Find out more about the HDB Green Towns Programme: go.gov.sg/hdb-gtp-racetosustainability

Hashtags

HDB

@SingaporeHDB · Post #1837 · 02.07.2023 г., 03:00

If you're thinking of buying a flat at the next sales launch, be sure to apply for an HFE letter early. The HFE letter is valid for 6 months - more on the HFE letter and when you’ll need it in your flat buying journey. #DYK? You can now apply for housing loans from HDB and participating financial institutions when you apply for an HDB Flat Eligibility (HFE) letter via the HDB Flat Portal: https://homes.hdb.gov.sg

Hashtags

HDB

@SingaporeHDB · Post #1762 · 22.05.2023 г., 04:00

#DYK Financial planning for a flat purchase is as simple as ABC! 🏠Hear from our officer Jerry, who shares more tips on finding the right HDB home.

Hashtags

HDB

@SingaporeHDB · Post #1746 · 12.05.2023 г., 06:02

#DYK The Residual Current Circuit Breaker (RCCB) protects you and your family from electric current leakage? Check if your home has one, and follow EMA’s steps to test it today. PSA to home owners of flats built before 1985 📢 HDB will be assisting eligible HDB homeowners with the installation of an RCCB, if they do not already have one: ▪️For 1- and 2- room flats, the Government will fully fund the cost of the RCCB installation and necessary rewiring ▪️For 3-room and larger flats, the cost will be subsidised by the Government.

Hashtags

HDB

@SingaporeHDB · Post #1740 · 30.04.2023 г., 04:45

#DYK that since 2021, all new HDB estates come with separate chutes for recycling waste? ♻ No need to pre-sort recyclables - sorting is done at the sorting facility ✋ Chutes only open up with a hand lever, instead of a foot pedal, to prevent wet waste from being thrown in The result? Recyclable waste collected at the pilot project over 1 year was 3 times more than housing estates without recycling chutes!

Hashtags

HDB

@SingaporeHDB · Post #1622 · 17.02.2023 г., 03:01

#DYK? HDB completed close to 50% more flats in 2022 as compared to 2021. The median waiting times for BTO flats currently under construction is 4.3 years. We aim to reduce this to 3 to 4 years from 2024. Learn more about how we are delivering more homes to Singaporeans.

Hashtags

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