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

Резултати

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

Търсене: #safety

当前筛选 #safety清除筛选
Bali News

@balinews · Post #537 · 05.12.2025 г., 15:00

📰 Tragedy at Sangeh Monkey Forest 🐒 A large old nutmeg tree fell during a severe storm at the Pura Bukit Sari temple within Sangeh Monkey Forest. What happened: ▪️ The tree crushed a bale gong pavilion where staff were sheltering. ▪️ A 51-year-old guide, Ida Bagus Nyoman Suamba, died. ▪️ A second staff member was injured. ▪️ Damage is estimated at ~1 billion IDR. 😔 An eyewitness reported leaving the pavilion with a colleague moments before the collapse, which saved them. A recurring danger: Last year, a similar incident in Ubud's Monkey Forest killed two tourists. Safety reminder for rainy season: ✅ Do NOT shelter under old tall trees during storms. ✅ Be aware of your surroundings. ✅ Heed staff warnings. #safety#accidents@BaliNews

Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2704 · 04.03.2026 г., 11:00

⚖️ Uzbekistan Considers Life Sentences for Child Sexual Offenders 🚨 Uzbekistan is proposing tougher penalties for child sexual offences, including the possibility of life imprisonment for convicted offenders. The measures were presented to President Shavkat Mirziyoyev during a meeting on protecting the rights of women and children. 📜 Authorities also suggest preventing convicted offenders from being transferred to lower-security prisons and shifting investigations of certain sexual crimes from police to the prosecutor’s office. 👩‍⚖️ Under the proposals, only specially trained lawyers, investigators and judges would handle cases involving violence against women and children, alongside stricter penalties for sexual harassment. 📱 To better protect women with restraining orders, officials propose installing an “SOS” emergency application on their phones to quickly request help. #Safety#Security

Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2701 · 04.03.2026 г., 06:03

🚨 Pakistan and Afghan Forces Clash Along Border, 42 Civilians Killed ⚔️ Pakistani and Afghan forces exchanged fire at several points along their 2,600-km border, with the United Nations mission in Afghanistan reporting at least 42 civilians killed and 104 wounded during six days of fighting. ✈️ Tensions escalated after Pakistan launched air strikes on Afghan cities last week. Islamabad said it targeted Bagram air base north of Kabul, claiming intelligence showed militants were using the site to support attacks on Pakistani forces. 🔥 Clashes have spread across the frontier, with Afghanistan saying Taliban fighters seized a Pakistani military post near Kandahar, while Pakistan reported fighting at more than two dozen locations and strikes on facilities in Jalalabad and Nangarhar. 🏠 The UN warned the violence has displaced around 16,400 households and disrupted humanitarian aid in areas already struggling after recent earthquakes, urging both sides to halt the fighting and prevent further escalation. #Safety#Security

Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2685 · 28.02.2026 г., 08:34

🕊 Uzbekistan Calls for Ceasefire After Afghanistan–Pakistan Border Clashes ⚠️ Uzbekistan expressed concern over escalating violence along the Afghanistan–Pakistan border, urging both sides to immediately cease fire and resolve disputes through peaceful, diplomatic means. 💥 Clashes began on February 26 after Pakistan accused Afghan forces of firing on its border posts, while Kabul said its actions were retaliation for Pakistani air strikes on February 22 targeting militant groups. ✈️ During the fighting, Pakistan reportedly struck Kabul, Kandahar, and other Afghan-controlled areas. Afghan officials later expressed openness to negotiations. 💀 Casualties reported include over 270 Taliban militants killed by Pakistan and 55 Pakistani deaths, according to Afghan authorities. 🕌 Pakistan claims the Afghan Taliban shelter Tehrik‑e‑Taliban Pakistan leaders, a charge Kabul denies. The U.S. has voiced support for Pakistan, citing Taliban failures to combat terrorism. #Safety#Security

Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2684 · 28.02.2026 г., 07:32

🚨 Israel Strikes Iran Amid Rising Nuclear Tensions 💥 Israel launched a pre-emptive strike on Iran, targeting nuclear and missile sites, escalating Middle East tensions and threatening diplomatic efforts. 🛡 Defence Minister Israel Katz said the operation aimed to “remove threats to the State of Israel,” and was planned months in coordination with the U.S. 🌆 Explosions were reported in Tehran, while sirens sounded across Israel warning of possible missile retaliation. Schools and workplaces were closed, and civilian air traffic halted. ⚠️ The strike follows a June air war and comes amid stalled negotiations over Iran’s nuclear programme. Israel demands full dismantling of nuclear infrastructure and limits on missiles. 💣 Iran warned it would respond to attacks and could target U.S. bases in the region. Western nations say Iran’s missile programme threatens stability, while Tehran denies seeking nuclear weapons. #Safety#Security

Anthropic предупреждает мир об угрозе кибербезопасности AI. А сам случайно теряет 3000 документов. Два дня назад исследователи из LayerX и Cambridge нашли открытый CMS Anthropic. Почти 3000 неопубликованных документов — в том числе черновик блога о новой модели Claude Mythos. Не один файл — вся база была публичной. Что теперь известно о Mythos: — Тир «Capybara» — выше Opus, крупнее, дороже — «Step change in performance» (значимое увеличение производительности), «most capable we've built» — «Far ahead of any other AI model in cyber capabilities» — Конкретных бенчмарков — ноль. Только формулировки. Может и «утечка» не случайная? Я плачу $200/мес за Opus 4.6, иногда 300. Мои 32 проекта — всё на Claude. Жду Митос — он будет следующим шагом. Ну а пока надо бы поручить опусу проверить безопасность в моих проектах) #ClaudeCode#safety

Bali News

@balinews · Post #505 · 07.10.2025 г., 09:05

📰Denpasar strengthens flood protection and reinforces riverbanks ℹ️ Following the September flood when the Badung River overflowed, Denpasar authorities are intensifying measures to protect the city from floods and inundations. A temporary dam made of sandbags has been set up at the mouth of the Ayung River to control water flow and safely restore damaged embankments. ⚠️ Meteorologists also warn of possible tidal flooding along Bali’s coasts from October 7 to 11. #weather#safety@BaliNews

Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2671 · 27.02.2026 г., 05:04

⚠️ Afghanistan and Pakistan Enter “Open War” After Air Strikes on Kabul 💥 Pakistan has carried out air strikes on Kabul and Kandahar following a sharp escalation in cross-border fighting. According to Al Jazeera, warplanes launched two raids on the Afghan capital early Friday and also struck a military base in Kandahar province. 🗣 Pakistani Defence Minister Khawaja Asif declared the situation an “open war” after Afghan Taliban forces reportedly launched retaliatory attacks on Pakistani military posts along the Durand Line. Taliban spokesperson Zabihullah Mujahid claimed dozens of Pakistani soldiers were killed and several captured. Islamabad rejected the claims, saying its counter-strikes hit Taliban headquarters and ammunition depots, killing at least 133 fighters. ⚔️ Militarily, Pakistan holds overwhelming conventional superiority with more than 600,000 active personnel, advanced air power and nuclear capability. The Taliban commands an estimated 100,000 to 150,000 fighters and lacks a functional air force or modern air defence systems, despite inheriting U.S. military equipment in 2021. 🌍 The crisis follows earlier Pakistani strikes in Nangarhar and Paktika targeting alleged TTP sanctuaries. Kabul said those attacks killed at least 18 civilians. A fragile ceasefire brokered in October has now collapsed, with both sides trading accusations over militant safe havens and cross-border attacks. #News#Safety#Security

Hulumarket - Buy & Sell Easily

@hulugramupdate · Post #284 · 16.02.2026 г., 14:51

⚠️ ከሁሉ ማርኬት እቃ ስናዝ ማድረግ ያለብን ጥንቃቄዎች 🚨 ✔️ የሻጩን ማንነት በደንብ ማጣራት ✔️ዋጋ ማጣራት (ስለረከሰ ብቻ ጥራታቸውን ሳናረጋግጥ መግዛት የለብንም) ✔️ከኣጭበርባሪዎች እራስዎን ይጠብቁ❗️ (እቃውን ከመረከብዎ በፊት ሂሳብ እይክፈሉ) ✔️ስለ የሚገዙት እቃ ግልፅ ማብራሪያ እንዳለው ማየት (ማንኛውንም እቃ ከመግዛትዎ በፊት የዕቃውን ዝርዝር መረጃ ማንበብ አይርሱ) 💥 📱PlayStore ላይ አፕሊኬሽኑን ያውርዱ ወይም 🌐hulumarket.com.et ን ይጎብኙ #Hulumarket#onlineshopping#safety

Before 1956, kids could get trapped inside refrigerators because doors only opened from outside. The Refrigerator Safety Act changed this, requiring doors to open easily from inside. UL tests make sure doors open with a push from inside. [Read more] @googlefactss 🧊🚪⚠️#Safety#ChildSafety

BadVolf

@badvolfnews · Post #2034 · 10.02.2025 г., 11:33

**Update:** In Krasnodar Krai, an unmanned aerial vehicle has crashed near a private house in Afipsky settlement, Seversky district. Governor Veniamin Kondratyev reported this incident through his Telegram channel, confirming no casualties and that emergency services are on-site assisting affected parties. Local authorities are working to restore property damaged by the crash. Meanwhile, another drone incident occurred nearby, with fragments hitting a residential complex known as 'Central.' A detailed room-by-room inspection is underway to assess any structural damage to buildings in the area. Since 2022, drones have been utilized in Russia's regional operations as part of their special military efforts against Ukraine. Ukraine has not officially confirmed involvement but provided support and information about potential increases in drone activity. Earlier reports indicated that Insta, a Finnish defense company, had developed a new kamikaze drone for Ukrainian use. #Safety#Incident

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