@emtgcorp · Post #19913 · 09.10.2024 г., 15:49
#PSA: 请立即升级 - Firefox 远程代码执行漏洞。 请升级至 Firefox 131.0.2、Firefox ESR 128.3.1 或 Firefox ESR 115.16.1。 mozilla.org/~ CVE: CVE-2024-9680 CVSS: (Critical)
Hashtags
TGINSIGHT SIMILAR POSTS
Изходен канал @clockstackwheels · Post #721 · 26.12
Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev
Hashtags
Търсене: #psa
@emtgcorp · Post #19913 · 09.10.2024 г., 15:49
#PSA: 请立即升级 - Firefox 远程代码执行漏洞。 请升级至 Firefox 131.0.2、Firefox ESR 128.3.1 或 Firefox ESR 115.16.1。 mozilla.org/~ CVE: CVE-2024-9680 CVSS: (Critical)
Hashtags
@Govsg · Post #3130 · 15.09.2025 г., 08:37
#PSA: Have a family with 3 or more children? Large Family LifeSG Credits are now available for eligible families. Discover how these credits work and browse deals for you! 🔗 Find more info at go.gov.sg/lflc-factsheet 🔗 Explore the deals at go.gov.sg/lfs-deals
Hashtags
@SingaporeHDB · Post #2767 · 24.04.2025 г., 05:36
#PSA: Stay vigilant online! Here are some helpful tips to help you stay safe online: 💡Don’t click on suspicious links, and avoid downloading apps or content from unknown sources. 💡If you receive an SMS from HDB or other government agencies, make sure it is sent from the “gov.sg” SMS Sender ID. 💡Do not believe a caller/texter just because he/she knows your personal information, e.g. your name or NRIC number. 💡Call the 24/7 ScamShield Helpline at 1799 to check if you are unsure and add the ScamShield app to block scam calls and filter scam SMSes.
Hashtags
@NEASingapore · Post #1031 · 21.04.2025 г., 02:54
#PSA The water quality at Changi Beach is now back to normal. You may now swim and take part in water activities there. Information on the water quality at beaches is available at: go.gov.sg/beach-water-info
Hashtags
@NEASingapore · Post #928 · 25.10.2024 г., 04:15
#PSA The advisory against primary contact water activities has been lifted. There has been no other oil sightings at sea and ashore since 20 Oct (Sun) when Shell first reported the leak in their slop pipeline. You can now swim and take part in water activities at the beaches of East Coast Park, Kusu, St John’s and Lazarus islands.
Hashtags
@NEASingapore · Post #882 · 04.09.2024 г., 03:34
#PSA Clean-up of beaches affected by the oil spill has completed ahead of schedule! 🙌 A BIG thank you to everyone who worked hard to restore areas affected by the oil spill. This significant milestone in Singapore’s recovery from the June 2024 oil spill would not have been possible without - 800 cleaning personnel who removed about 3,750 tonnes of oil-soaked sand and debris. - More than 2,300 volunteers that stepped forward to conduct litter picking when cleaners were deployed to clean up the oil spill and subsequently to remove tar balls when it was safe to do so. - Over 10,000 metres of booms that were deployed to prevent oil from being washed ashore or into our inland canals. Water activities can only fully resume when the water quality returns to normal and is stable. Info on water quality at beaches is available at go.gov.sg/beach-water-info.
Hashtags
@NEASingapore · Post #875 · 12.08.2024 г., 02:47
#PSA Beaches at East Coast Park re-opened yesterday (11 Aug 2024). 🎉 A shoutout to everyone, especially our clean-up teams, who worked hard to restore the beautiful beaches ahead of time. ✅ Non-primary contact water sports, such as kayaking, can resume. ❌ While it is safe to use the beach, you’re advised not to undertake primary contact water sports such as swimming or wakeboarding. Water activities can only fully resume when the water quality returns to normal and is stable. We’ll continue to monitor the water quality. Information on the water quality at beaches is available at: go.gov.sg/beach-water-info There’s more good news at Kusu Island – the beach has re-opened and all water activities including swimming and other primary contact water activities can resume.
Hashtags
@NEASingapore · Post #811 · 17.04.2024 г., 04:16
https://youtu.be/6iguDa6ZPf4 #PSA for HDB households: Claim $300 worth of Climate Vouchers at go.gov.sg/climatevouchers, and use it to switch to more efficient appliances and fittings to enjoy energy savings and lower utility bills! Lots of time from now till 31 Dec 2027 to redeem – no hurry to do so today!
Hashtags
@NEASingapore · Post #755 · 05.02.2024 г., 07:21
#PSA If you’re planning a day out at the beach, you are advised not to swim at Pasir Ris Beach and Sembawang Park Beach until further notice. The 2 beaches are graded “Fair”, indicating increased occurrences of elevated levels of enterococcus bacteria in the waters of these beaches. NEA is working with other agencies such as PUB, NParks and SFA to investigate and mitigate possible sources contributing to the elevated bacteria. More info at go.gov.sg/2024beachgrading
Hashtags
@mw_public_channel · Post #520 · 09.07.2024 г., 14:49
#PSA 随着年龄的增长,我们的身边,甚至我们自身,都有可能发生一些变故。你可能觉得你现在25,you will be fine... You might not. 如果你的身体开始对你诉苦,一定别忘了去医院做精密的检查。如果你是男性,40岁左右,别忘了去做一次肠镜检查。 如果你是女性,40岁左右,去做一次mammogram。 如果你是女性,25岁以上,子宫颈检查,5年一次的HPV检查,一定不能少。 如果你有吸烟史,或者是亚裔,对肺一定要做好保养和检查。 如果你有家族史癌症的话,别忘了每年一度的体检(或者真的,每个人都不该忘掉)。 【一位不愿意透露姓名的群友】:如果有在中國生活史以及腸胃症狀建議檢查幽門螺桿菌。 We will start to loss some of us. Please don't make it too late for us to help and care.
Hashtags
@NEASingapore · Post #505 · 23.02.2023 г., 06:53
#PSA Plan ahead for your visit to the columbaria for Qing Ming (清明). If you are driving to Choa Chu Kang Columbarium or Mandai Columbarium, book an e-appointment at go.gov.sg/qm2023vehicleappt (from 6 Mar 2023, 10am onwards) in order to park your vehicle. www.nea.gov.sg/qingming2023
Hashtags
@mndsingapore · Post #227 · 18.11.2021 г., 02:29
What's behind the name of Jurong, Queenstown and Whampoa? One of them is even named after sharks! 🦈 📣#PSA: There are projects in Jurong West & Kallang/Whampoa in this month's BTO launch. For more: www.go.gov.sg/nov2021bto
Hashtags