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

Резултати

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

Търсене: #nusapenida

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

@balinews · Post #121 · 21.07.2024 г., 11:30

❌Flying fox ride on Nusa Penida closed after malfunctioning 📱 A video of a child getting stuck on the Flying fox ride on Nusa Penida has gone viral. Only with great difficulty, desperately swinging, he reached the final point of the ride. The entire ride was 170 meters long. 👮‍♂️ The ride was closed not only for safety reasons, but also because it was operating without the necessary permits. @BaliNews #NusaPenida#accidents

Bali News

@balinews · Post #216 · 16.10.2024 г., 09:29

🛥️They want to turn Nusa Penida into an Indonesian Monaco 📰 Officials responsible for tourism development said that Monaco could be a model for Nusa Penida, which, in their opinion, has all the potential to become an oasis for luxury vacations. 🏝 They are convinced that Bali's satellite should be developed as a luxury tourist destination with economic and environmental appeal at its core. @BaliNews #projects#NusaPenida

Bali News

@balinews · Post #538 · 07.12.2025 г., 04:45

🏝AI? Or real Nusa Penida? If you chose the latter, here are all the ways to reach this paradise island. 📍 Nusa Penida is a small island located about 12 km southeast of the Indonesian island of Bali. 🚤 Main ways to get there: Fast Boat (The most popular option) • Departure from Sanur, Benoa Harbour, or Serangan ports • 30-45 minutes • From ~250,000 IDR (one-way). A return ticket is often more cost-effective Slow Ferry (The Cheapest) • Departs from Kusamba Port in eastern Bali • ~1 hour • Cost is low, but the schedule is irregular #wheretogo#NusaPenida#tourism@BaliNews

Bali News

@balinews · Post #520 · 30.10.2025 г., 11:35

🔋 On Nusa Penida the state‑owned company PLN (Persero) has launched the region’s first “smart microgrid” 🌞 A microgrid that integrates solar power plants, battery storage systems, and backup diesel generators, all managed by advanced algorithms. 🔄 Excess energy is stored for night‑time use, and when there’s a shortfall of power, the diesel generators kick in automatically. This marks a key milestone in the transition to smarter, greener energy infrastructure. #NusaPenida#tech@BaliNews

Bali News

@balinews · Post #525 · 11.11.2025 г., 11:15

🚧 Construction of Kelingking beach elevator halted ℹ️ In 2023, Chinese investors with local government support planned a 182-meter elevator at Kelingking Beach on Nusa Penida to make the 40-minute trek down safer and easier for tourists. 📰 Initially approved and promoted as a new local attraction, the project faced public backlash when the structure reached the top and blocked the iconic view. Construction has now been stopped, with authorities saying not all parties were properly consulted. #places#projects#NusaPenida@BaliNews

Bali News

@balinews · Post #394 · 17.04.2025 г., 13:36

👍Bali tourists will soon have easier access to Nusa Penida’s iconic viewpoints 📰 Leaders in Bali have confirmed that it will soon be easier and safer to access some of Nusa Penida’s most famous viewpoints. ℹ️ Nusa Penida is part of Klungkung Regency, and leaders from the local tourism office have confirmed that a new partnership has been made with the Department of Public Works and Public Housing to build a new road that will connect Broken Beach and Angel’s Billabong. 🛣 The new road will be just one kilometre in length, and 9 metres wide and will allow safer and direct access between the two iconic landmarks. This project is all part of a bigger plan to improve connectivity and infrastructure on the island. @BaliNews #places#tourism#roads#NusaPenida

Bali News

@balinews · Post #116 · 15.07.2024 г., 12:04

🧾 Nusa Penida's tourist tax will be increased and made electronic 🚤 The authorities of Nusa Penida want to introduce a new tax collection system. Now a tourist compulsory payment is 25,000 Rp upon entry to the island. It is collected at the port immediately upon arrival. The new e-ticket system should make it easier for tourists to pay. 🫰 However, along with the introduction of such a system, the size of the fee itself will increase. The authorities explain this step by the need to develop the island, to make it more convenient for both locals and visitors. ❓ The most intriguing question: "what amount of the fee can we talk about?" is still open. 📈 The target for the tourist tax levy on Nusa Penida is 24.8 billion Indonesian rupiah in 2024, which is more than in 2023 (17.7 billion Indonesian rupiah). @BaliNews #taxes#tourism#NusaPenida

Bali News

@balinews · Post #97 · 22.06.2024 г., 10:46

🛟A new tragedy at Kelingking Beach 🌊Three tourists were swept away by powerful waves while swimming at Kelingking Beach on Nusa Penida. As a result of the incident, one person died and two were injured. ⚠️ Tourists started swimming there despite warning signs on the beach. They were swimming near the shore, but suddenly a large wave came and dragged them into the ocean. The victims were helped out of the water by a team of lifeguards. ❗️ Stay safe and always follow weather warnings on our channel as well as local authorities! @BaliNews #accidents#Kelingking#NusaPenida

Bali News

@balinews · Post #106 · 04.07.2024 г., 12:01

🧗🏻‍♂️Extreme amusement at Extreme park Bali on Nusa Penida ⛰️ Extreme park Bali has opened on the cliff above Tartle Beach. 🪢 Ropejumping or rope-swinging is not bungee jumping, where the jump is head down. The park uses climbing ropes, bindings and harnesses. 🦘The jump is about five seconds of free fall from a 130-metre cliff, after which the ropes lengthen and the system cushions, the jumper moves into a horizontal pendulum motion, which prevents the person from returning to the wall, and the vertical speed is damped. The person hangs on the ropes, and meanwhile instructors lower the load rope to pull him upwards on the winch. 🎫 The price per jump is from 2.000.000 idr. Bookink is available on Instagram. @BaliNews #wheretogo#places#sports#NusaPenida

Bali News

@balinews · Post #108 · 05.07.2024 г., 13:30

⚠️New precautions to be introduced at Bali's most dangerous beach ❗️ Due to the increasing number of accidents and deaths at Kelingking Beach, Bali authorities are taking urgent measures to ensure the safety of tourists. 📍 Kelingking Beach, located on the island of Nusa Penida, has long been known for its treacherous beauty that attracts hundreds of thousands of tourists every year. Now vacations on this picturesque beach are set to get safer. 🛟 Security guards will be stationed at Kelingking Beach and other dangerous areas of Nusa Penida. 👮🏻‍♀️ Klungkung Tourism Office head Ni Made Suliyastivati said fences and warning signs have already been installed at several beaches with a high risk of accidents. She added: "We have put up warning signs and no bathing signs. We will reinforce this by placing guards at vulnerable sites." @BaliNews #beaches#places#Klungkung#NusaPenida

Bali News

@balinews · Post #88 · 15.06.2024 г., 10:03

🏝A residential complex and a glass elevator: Nusa Penida has begun to be developed 📸 A copter video taken near a famous beach on Nusa Penida has excited not only the Balinese, but the whole of Indonesia. The footage clearly shows a giant construction site right on the cliff. The first layer of vegetation and soil has already been removed, and in its place are the smooth and landscaped cement foundation blocks. The construction of a 182-meter-high glass elevator directly to the beach and observation decks on the cliff slope became known last year. The project of the Chinese developer shocked many people then. Both locals and foreigners said that such infrastructure would destroy the atmosphere of natural grandeur on Nusa Penida. However, local officials cited employment opportunities for locals and revenue generated by the tourist attraction as some of the pluses. Not so long ago, Nusa Penida was just an island of pristine Bali. Ten years ago it was not so easy to get here, let alone with modern hotels and a mass flow of tourists. @BaliNews #construction#events#Klungkung#NusaPenida

Нуса Пенида: Приключение мечты! 🌴🌊 Хотите попасть в рай? Отправляйтесь на Нуса Пенида! Этот остров рядом с Бали – сокровище Индонезии с бирюзовыми волнами и захватывающими видами. 🤩 Что вас ждет? 👇 • Пляжи мечты: Келингкинг Бич (скала-динозавр 🦖), Broken Beach, Angel's Billabong. • Снорклинг и дайвинг: Кораллы, рыбы, скаты манта! 🐠🐡 • Впечатляющие виды: Фотографируйте каждый уголок! 📸 • Релакс: Наслаждайтесь закатами и уединением. 🌅 Нуса Пенида – это незабываемое приключение! Готовы? 😉 Делитесь впечатлениями 👇🏼 #Chatik#Чатик#NusaPenida#Бали#Bali#Индонезия#Indonesia#Отдых#Путешествия#Пляж#Море#Снорклинг#Дайвинг#ПутешествиеМечты#РайскоеМесто#Отпуск#Travel#Beach#Sea#Vacation#Paradise