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

Резултати

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

Търсене: #staysafe

当前筛选 #staysafe清除筛选

Unraveling the Scam NFT Epidemic Dominating the Past Week The last week has been filled with cases of spam mailings of pseudo-NFT projects that supposedly entitle you to tokens or promise something else. But this is not true, if you received such an NFT, they are trying to deceive you. ✔️Do's: Nothing. Ignore them. If they clog your wallet, burn them. 🚫Don'ts: Follow the links in the description of these NFTs and connect your wallet. There is a risk of the balance being written off. ☝️ NFTs of good projects are valuable, they don’t just send them. If you did not pay for them or did not participate in the activities of this project, you will not be sent NFTs. So remember to be sane and safe. All NFTs shown in the photo are ⚠️ #StaySafe with @t_oncoin✔️

Hashtags

In Week 14 of 2026, Nigeria recorded 167 new #LassaFever suspected cases, along with 22 new confirmed cases and 3 new confirmed deaths. Additionally, 8 states and 14 LGAs were affected. These figures highlight the need for continued vigilance, early detection, and strict preventive measures. 🔗 Read the full Situation Report: Week 14: https://ncdc.gov.ng/themes/common/files/sitreps/17cfcdddda3a2ff22088487a8e4b3c20.pdf Protect yourself and prevent Lassa fever by: ✅ Keeping your environment clean and free of rodents ✅ Storing food in tightly covered containers ✅ Disposing of waste properly and keeping homes clutter-free ✅ Visiting the nearest health facility immediately when you notice symptoms such as fever, weakness, headache, or bleeding. #LassaFever#StaySafe#NCDCNigeria

In Week 10 of 2026, Nigeria recorded sustained #LassaFever activity, according to the Nigeria Centre for Disease Control and Prevention. A Total 317 new suspected cases were reported, along with 40 new confirmed cases and 7 new confirmed deaths. Additionally, 8 states and 22 LGAs were affected. These figures highlight the need for continued vigilance, early detection, and strict preventive measures. 🔗 Read the full Situation Report: Week 10: https://ncdc.gov.ng/themes/common/files/sitreps/04217c6d966b18e819ad033ea7cf5134.pdf Protect yourself and prevent Lassa fever by: ✅ Keeping your environment clean and free of rodents ✅ Storing food in tightly covered containers ✅ Disposing of waste properly and keeping homes clutter-free ✅ Seeking medical care early when you notice symptoms such as fever, weakness, headache, or bleeding. #LassaFever#StaySafe#NCDCNigeria

In Week 9 of 2026, Nigeria recorded sustained #LassaFever activity, according to the Nigeria Centre for Disease Control and Prevention. A Total 460 new suspected cases were reported, along with 65 new confirmed cases and 9 new confirmed deaths. Additionally, 7 states and 26 LGAs were affected. These figures highlight the need for continued vigilance, early detection, and strict preventive measures. 🔗 Read the full Situation Report: Week 9: https://ncdc.gov.ng/themes/common/files/sitreps/dd3c0ead24ab75983d665aa1a82da8cd.pdf Protect yourself and prevent Lassa fever by: ✅ Keeping your environment clean and free of rodents ✅ Storing food in tightly covered containers ✅ Disposing of waste properly and keeping homes clutter-free ✅ Seeking medical care early when you notice symptoms such as fever, weakness, headache, or bleeding. #LassaFever#StaySafe#NCDCNigeria

In Weeks 4 and 5 of 2026, Nigeria recorded sustained #LassaFever activity. In Week 4, there were 189 new suspected cases and 28 new confirmed cases, with 7 new deaths reported. A total of 594 suspected cases, 121 confirmed cases, and 25 deaths had been recorded. In Week 5, 160 new suspected cases were reported, along with 44 new confirmed cases and 6 new deaths. These figures highlight the importance of continued vigilance and preventive actions. 🔗 Read the full sitrep: Week 4: https://ncdc.gov.ng/themes/common/files/sitreps/209b83e6b6cc29b8353e30e34394d8a5.pdf Week 5: https://ncdc.gov.ng/themes/common/files/sitreps/e94a04b902c47c21d467d1e6a0f833d1.pdf Protect yourself and prevent Lassa fever by: ✅ Keeping your environment clean and free of rodents ✅ Storing food in tightly covered containers ✅ Disposing of waste properly and keeping homes clutter-free ✅ Seeking medical care early when you notice symptoms such as fever, weakness, headache, or bleeding. #LassaFever#StaySafe#NCDCNigeria”

In the first three weeks of 2026, Nigeria recorded a rise in #Lassafever activity. In Week 1, there were 104 suspected cases and 21 confirmed cases, with 9 deaths reported. In Week 2, confirmed cases increased to 33, while the number of suspected cases for the week increased to 144. In Week 3, 157 new suspected cases were reported, along with 39 new confirmed cases and 6 new deaths. This figures highlights the importance of continued vigilance and preventive actions . 🔗 Read the full sitrep: Week 1: https://ncdc.gov.ng/themes/common/files/sitreps/09e281a5e335ce56f3efe782318ca0ea.pdf Week 2: https://ncdc.gov.ng/themes/common/files/sitreps/08187c401459ff0ca43206cda1c28004.pdf Week 3: https://ncdc.gov.ng/themes/common/files/sitreps/6a2487657377bd1d55e70377a214c725.pdf Protect Yourself and prevent Lassa fever by: ✅ Keeping your environment clean and free of rodents ✅ Storing food in tightly covered containers ✅ Disposing of waste properly and keeping homes clutter-free ✅ Seeking medical care early when you notice symptoms such as fever, weakness, or bleeding. #LassaFever#StaySafe#NCDCNigeria

Last week, across several parts of Nigeria, health facilities continued routine surveillance for Lassa fever as people went about their end-of-year festivities and daily routines. Between 15th - 21st December 2025, 21 new cases were confirmed across multiple states, with 5 reported deaths. While weekly figures may change, they remind us that Lassa fever remains present and that early presentation at health facilities significantly improves outcomes. Preventive actions remain key: 🏡 Keep homes and surroundings clean. 🥘 Store food properly. 🧼 Wash hands regularly with soap under veal running water. 💊 Avoid self-medication 🏥 Seek medical care early. Full sitrep: https://ncdc.gov.ng/themes/common/files/sitreps/070ffa8b11f8e6170bb61854b22b06cb.pdf #LassaFever#NCDCNigeria#StaySafe

Lassa Fever Update – Week 47 2025 🗓 17th - 23rd Nov 2025 📍19 new confirmed cases in Ondo ,Benue & Edo 📊 Cumulative 2025: ✅ 1012 confirmed cases ✅ 185 deaths ✅ CFR: 18.3% (↑ vs 16.4% in 2024) 🔹 87% of cases from Ondo, Bauchi, Edo, Taraba & Ebonyi https://ncdc.gov.ng/themes/common/files/sitreps/f1eac3b9f6e60c760a040fd279f5977f.pdf #LassaFever#NCDCNigeria#StaySafe

Lassa Fever Update – Week 46 2025 🗓 10th - 16th Nov 2025 📍19 new confirmed cases in Ondo ,Benue & Edo 📊 Cumulative 2025: ✅ 995 confirmed cases ✅ 184 deaths ✅ CFR: 18.5% (↑ vs 16.2% in 2024) 🔹 87% of cases from Ondo, Bauchi, Edo, Taraba & Ebonyi https://ncdc.gov.ng/themes/common/files/sitreps/65b81d453825965fc88b202a61101c4f.pdf #LassaFever#NCDCNigeria#StaySafe

Lassa Fever Update – Week 43 2025 🗓 20th - 26th October 2025 📍11 new confirmed cases in Ondo & Edo 📊 Cumulative 2025: ✅ 955confirmed cases ✅ 176 deaths ✅ CFR: 18.4% (↑ vs 16.6% in 2024) 🔹 88% of cases from Ondo, Bauchi, Edo & Taraba https://ncdc.gov.ng/themes/common/files/sitreps/55b33161bbfe39fd72039808875e5c45.pdf #LassaFever#NCDCNigeria#StaySafe

Lassa Fever Update – Week 40 2025 🗓 29th Sept - 5th October 2025 📍13 new confirmed cases in Ondo & Edo 📊 Cumulative 2025: ✅ 924 confirmed cases ✅ 172 deaths ✅ CFR: 18.6% (↑ vs 17.0% in 2024) 🔹 90% of cases from Ondo, Bauchi, Edo, Taraba & Ebonyi https://ncdc.gov.ng/themes/common/files/sitreps/ded728ef465f33739ad7928d327a2929.pdf #LassaFever#NCDCNigeria#StaySafe

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