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

Резултати

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

Търсене: #badung

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

@balinews · Post #473 · 06.08.2025 г., 14:05

↗️ Bali raises prices for popular attractions 📰 The authorities of the Balinese district of Badung are revising the fees for visiting popular tourist locations. Ticket and parking prices at temples, waterfalls, and beaches will increase in the near future. 📍Admission prices will increase at the following sites: Taman Ayun Temple: • Foreign adults — 50,000 rupiah • Foreign children — 25,000 Uluwatu Temple (excluding evening kecak): • Foreign adults — 60,000 rupiah • Foreign children — 40,000 Pandawa Beach: • Foreign adults — 25,000 rupiah • Foreign children — 15,000 Nung Nung Waterfall is also on the list for an increase, with exact prices to be confirmed. Uniform parking rates are also being introduced: • 1,000–2,000 rupees for motorcycles • 2,000–4,000 rupees for cars • 5,000–10,000 rupees for buses and large vehicles. 🧲 This is being done to replenish the district's budget and finance infrastructure projects. #places#tourism#Badung@BaliNews

Bali News

@balinews · Post #350 · 15.03.2025 г., 05:35

🧹Badung will be cleaned up Government to tackle litter problem. 🚮 The new regent of Badung, Wayan Adi Arnawa, has made a pledge to keep the top tourist beaches clean and personally participated in a clean-up day on the Jimbaran coast. I don't want Badung to look shabby because of litter. The government will allocate a special budget to tackle the problem. ℹ️ Badung includes Changu, Seminyak, Legian, Kuta and the entire Bukit Peninsula. The official said pedestrian walkways are already being built on the beaches and coastal cafes are being renovated to make them more aesthetically pleasing and comfortable. @BaliNews #goodnews#places#Badung

Bali News

@balinews · Post #478 · 15.08.2025 г., 12:45

📰Illegal structures found in Melasti and scheduled for demolition 🏝 Eight structures in violation of zoning regulations have been identified on Melasti Beach, including beach clubs and cafes that are too close to the ocean, in a protected coastal area, and partially on municipal land. The owners have already been sent repeated official warnings, and the documents have been forwarded to the public order service for further action. 🧐 The administration's approach is now softer than in Balangan: Melasti will be “discussed and carefully studied” rather than “demolished on the spot.” #places#beaches#Badung@BaliNews

Bali News

@balinews · Post #476 · 13.08.2025 г., 13:04

🌊Strong surf damaged the Waterblow attraction in Nusa Dua 📰 High waves damaged the infrastructure of the Waterblow attraction in Nusa Dua. Ticket offices were flooded and the e-ticketing terminal was knocked out of service. 🚫 The site is closed indefinitely; authorities are inspecting the site and agreeing on further steps. ⚠️ Waves of up to 2.5–4 m are expected to continue in southern Bali in the coming days — people are asked to exercise caution near the water. #weather#places#Badung@BaliNews

Bali News

@balinews · Post #434 · 12.06.2025 г., 14:04

🪩 There will be a party at Savaya on Saturday ℹ️ Building upon her cultural heritage and her musical tastes (the artist grew up listening to artists such as Nina Simone, Bob Marley and Marvin Gaye), AWEN started to produce her unique style of Afro-house. 🧞‍♀️ It mixed electronic instrumentation with timeless melodies - and a touch of spirituality. 📲 More info and tickets (Rp 600,000) are here. #wheretogo#parties#Badung@BaliNews

Bali News

@balinews · Post #383 · 06.04.2025 г., 13:50

⭐️Electronic music star Boris Brejcha in Bali 📍 Savaya Bali 📆 May 18, 2005 ⏰ Doors Open at 1:00 pm 🔞 Entry strictly 21+ 🎟 Rp1,350,000 🪩 German DJ Boris Brejcha is known to all lovers of techno and mind-blowing parties. As part of his world tour he will be stopping by Bali. 🔎 More information and tickets here. @BaliNews #events#parties#Badung

Bali News

@balinews · Post #425 · 03.06.2025 г., 12:00

📰A new art market will open in Bali 🏺 A new art market featuring works by local artisans will open in the village of Bongkasa. The project aims to attract tourists to less popular areas. 👍 In light of the fire that destroyed the market in Ubud, the idea seems like timely support for artisans. 📆 The opening is planned for 2026. #goodnews#culture#places#Badung@BaliNews

Bali News

@balinews · Post #140 · 11.08.2024 г., 11:30

🛕The Pura Luhur Uluwatu temple has begun to be saved from collapsing into the ocean A serious crack that formed in one of the most sacred places in Bali - the cliff of the temple Pura Luhur Uluwatu - is promised to be fixed by the end of this year. For a long time it frightened the public - from the outside it seemed that the 70-meter cliff is about to collapse into the ocean. The first phase of work to repair the rift in the cliff is scheduled to be completed in December 2024. The Badung regency government has prepared a budget of Rp 78.6 billion for this purpose. @BaliNews #goodnews#places#Badung#Kuta

Cerdas Gunakan Obat

@cerdasgunakanobat · Post #2952 · 09.03.2019 г., 07:39

[SOSIALISASI GEMA CERMAT] • https://www.facebook.com/864416113651534/posts/2087373421355791/ • Sosialisasi GeMa CerMat di Kab. Badung, Bali tanggal 13 Desember 2018, menutup seluruh rangkaian kegiatan Sosialisasi GeMa CerMat tahun 2018 yang diselenggarakan oleh Direktorat Pelayanan Kefarmasian, Kemenkes RI. Kab. Badung, Bali, menjadi lokasi ke-40 pada tahun 2018, setelah diadakan di Kota Cirebon tanggal 7 Desember 2018. • Sosialisasi dihadiri oleh sekitar 270 orang peserta masyarakat dan stake holder terkait di wilayah Kab. Badung, dan 30 orang apoteker sebagai Agent of Change (AoC) GeMa CerMat Kab. Badung. Sehari sebelumnya, tanggal 12 Desember, telah diadakan Pembekalan terhadap apoteker sebagai AoC. • Acara pencanangan dan sosialisasi GeMa CerMat di Kab. Badung ini dibuka oleh Direktur Pelayanan Kefarmasian Kemenkes RI, Dinas Kesehatan Prop. Bali, dan Dinas Kesehatan Kota Kab. Badung. • Materi paparan tentang GeMa CerMat, DAGUSIBU dan Penggunaan Antibiotik Bijak diberikan oleh Peningkatan Obat Rasional, Erie Gusnellyanti, S.Si, Apt, MKM. Selanjutnya diadakan simulasi metode edukasi penggunaan obat dengan Cara Belajar Insan Aktif (CBIA). • #gemacermat#gemacermatbadung#badung#bali#cerdasgunakanobat#sosialisasigemacermat#aocgemacermat#apotekerindonesia#apoteker#apotekermuda#ppiai @ Badung, Bali, Indonesia