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

Резултати

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

Търсене: #philippines

当前筛选 #philippines清除筛选
RT en français

@RTenfrancais · Post #79693 · 21.04.2026 г., 11:45

🇵🇭Des milliers de personnes bloquées à Quezon, aux #Philippines Les grandes artères de la ville de Quezon ont été le théâtre de scènes de désespoir le 20 avril, alors que des milliers de usagers se sont retrouvés bloqués à cause d'une grève des transports provoquée par le coût élevé du carburant. RT en français • Osez questionner !

Hashtags

ASIANOMICS

@asianomics · Post #6062 · 05.05.2026 г., 09:42

🇵🇭Philippine Inflation Hits 3-Year High Philippine annual inflation surged to 7.2% in April — the highest since March 2023 — as fuel prices spiked on the back of Middle East conflict, pushing costs across food, transport, and utilities. The figure exceeded the 5.5% economist consensus and broke through the central bank's own forecast ceiling of 6.4%. The Bangko Sentral ng Pilipinas now faces pressure to act outside its regular meeting cycle. The April print signals that supply-side interventions are insufficient in the current external environment, raising the probability of an emergency rate hike to re-anchor expectations. An off-cycle tightening move would mark a significant policy shift, complicating growth prospects as the Philippines absorbs both global commodity shocks and domestic demand pressures. #Philippines @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #6058 · 04.05.2026 г., 14:48

🇵🇭Mayon Volcano Pyroclastic Flow Triggers Mass Evacuation Mayon volcano in Albay province triggered a mass evacuation of over 300 families after lava deposits on its southwestern slope collapsed into a pyroclastic flow on Saturday, blanketing 87 villages across three towns in dense ashfall. No explosive eruption occurred — the event stemmed from cascading hot rocks, ash, and gas. No deaths or injuries were reported. Mayon has been in a state of mild, intermittent eruption since January. Philippine volcanology agency Phivolcs recorded 32 volcanic earthquakes over the weekend, including 25 tremors. Visibility dropped to zero on national roads, livestock were killed, and vegetable farms sustained damage across the affected towns. Phivolcs confirmed the volcano had stabilized by Monday but maintained that underlying hazard conditions persist. #Philippines @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #6042 · 03.05.2026 г., 05:31

🇵🇭Mayon Volcano Erupts, Thousands Evacuated Mayon Volcano in Albay province, south of Manila, erupted on May 2–3, prompting mass evacuations across surrounding communities. The Philippine volcanology institute raised Alert Level 3 out of five, reporting strombolian activity, lava fountaining, and risks of landslides and lava flows. A 6km radius danger zone has been enforced. Nearly 1,500 families are sheltering in evacuation centres, according to the Department of Social Welfare and Development. Heavy ashfall blanketed multiple towns on May 2, disrupting traffic across the province. Mayon is one of the Philippines' most active volcanoes, with a documented history of recurring eruptive cycles. Displacement is expected to expand if activity escalates beyond Alert Level 3. #Philippines @asianomics

Hashtags

POPULAR FRONT

@popularxfront · Post #5927 · 17.04.2026 г., 09:42

🇵🇭#Philippines: Ten militants from the Dawlah Islamiya-Maute Group (DI-MG), which has sworn allegiance to ISIS, were killed in a one-hour-long firefight with Philippine government forces in Lanao del Sur earlier today. Of the 10 militants, 4 were reported to be female fighters. As a result of the clash, four light weapons, a hand grenade, and several IED components were recovered.

Hashtags

ASIANOMICS

@asianomics · Post #5737 · 21.03.2026 г., 14:35

🇵🇭Philippine Diesel Prices Break Triple-Digit Record Diesel prices in the Philippines breached 100 pesos per litre for the first time on Tuesday, with the Department of Energy warning of prices as high as 114 pesos (US$1.90) per litre in Metro Manila. The surge follows weeks of consecutive increases driven by the war on Iran and its effect on global crude markets. The spike exposed structural weaknesses in the Philippine energy sector. The chief economist at Union Bank of the Philippines noted that limited domestic refining capacity means local prices rapidly reflect movements in global crude and refined product markets. Transport workers have been among the first to absorb the impact, with some reducing operating hours or leaving vehicles idle as fuel costs approach one-sixth of the minimum daily wage in the capital. The Department of Energy has flagged the risk of a domino effect on rice prices, electricity, and basic household goods. #Philippines @asianomics

Hashtags

POPULAR FRONT

@popularxfront · Post #4735 · 26.01.2026 г., 09:05

🇵🇭#Philippines: CCTV footage shows an assassination attempt targeting the Mayor of Shariff Aguak in Maguindanao del Sur. The attackers used an RPG and assault rifles during the attack. The attempt reportedly failed after the blast struck the mayor’s vehicle, which absorbed the impact. The gunmen were later killed in an exchange of fire with security forces. (via @war_noir)

Hashtags

B2B-АSEAN

@b2basean · Post #2221 · 23.05.2025 г., 11:37

Сегодня, в третий день деловой миссии B2BASEAN, мы побывали на международной выставке продуктов питания, напитков и ингредиентов IFEX Philippines. 🇵🇭 Мы познакомились с местным экспонентом, предоставили консультации и поделились опытом работы на российском продовольственном рынке. Мы встретились с нашим партнером-поставщиком филиппинских бананов и обсудили возможность возобновления поставок в Россию бананов премиум класса с Филиппин. #Philippines

Hashtags

B2B-АSEAN

@b2basean · Post #2207 · 22.05.2025 г., 11:07

Сегодня мы продолжили нашу деловую миссию на Филиппинах, посетив офис Национальной Корпорации Развития (NDC), ведущего государственного предприятия Филиппин, которое инвестирует в различные отрасли промышленности на Филиппинах. Встреча была организована B2BASEAN совместно с Торгпредством России на Филиппинах. Обсуждались возможности сотрудничества в области инновационных проектов и организации цифрового хаба на Филиппинах #PHILIPPINES

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1649 · 06.01.2026 г., 13:14

Philippines🌴 Isla de Gigantes, in the Great Western Visayas, is a paradise home to many protected species, including rare mammals, birds, and reptiles like frigatebirds and softshell turtles. 🐢🦜 #Philippines | @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1607 · 25.11.2025 г., 13:14

🏝 Makapuya Island — a tropical fairy tale of the Philippines 🌊✨ ✨ An abandoned paradise at the edge of the world Makapuya is one of those islands where you feel like the star of a movie about a secluded getaway. White sand, coconut palms, and turquoise waters 🥥💦 #Philippines | @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1483 · 19.07.2025 г., 12:14

🏝 Makapuya Island — a tropical fairy tale of the Philippines 🌊 ✨ ✨ An abandoned paradise at the edge of the world Makapuya is one of those islands where you feel like the star of a movie about a secluded getaway. White sand, coconut palms, and turquoise waters 🥥💦 #Philippines | @voyage

Hashtags

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