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

Резултати

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

Търсене: #tabanan

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

@balinews · Post #226 · 26.10.2024 г., 11:15

🌾Jatiluwih rice terraces prepare to launch laser show 🎆 The famous Jatiluwih Rice Terraces in Tabanan, a UNESCO World Heritage Site, will delight tourists with a nighttime laser show. 🌅 The aim of this project is to make the rice terraces attractive to visitors even after 6pm. Usually it is quiet after sunset and all cafes and stores are closed. 🔜 The show is scheduled to officially open to the public from December 1, 2024. @BaliNews #places#Tabanan

Bali News

@balinews · Post #479 · 16.08.2025 г., 13:55

🔥Fire at Ulaman Eco Luxury Resort: bamboo resort in Tabanan burned down 📰 One of the island's most famous eco-resorts, Ulaman Eco Luxury Resort, burned down in Tabanan. The flames engulfed the buildings during the day, and strong winds accelerated their spread. The fire was clearly visible from afar, as the complex is located in rice fields. 👩‍🚒 Seventeen bamboo villas were destroyed. Fortunately, none of the residents were on site at the time of the fire. #accidents#Tabanan@BaliNews

Bali News

@balinews · Post #332 · 26.02.2025 г., 07:04

📰Helicopter pad near Jatiluwih fields to open in March 🌾 The Jatiluwih Rice Terraces, a UNESCO World Heritage Site, will have a helipad. The helipad for VIP visitors to the attraction has already been constructed and the official opening will take place in March 2025. 🚁 At the moment, the period of testing and trial landings has been completed. The helipad will have no impact on the protected landscape and the rice terraces themselves. @BaliNews #transport#places#Tabanan

Bali News

@balinews · Post #482 · 20.08.2025 г., 13:15

🛕Tanah Lot Arts and Culture Festival at Pura Tanah Lot Temple 📆 On August 22 (Friday), the festival will bring together spectacular performances, music, cuisine, and an atmosphere imbued with the spirit of the island. 📍 Tanah Lot Temple is one of the nine main sacred temples of Bali. It is protected by UNESCO. Thousands of tourists come every day to see this amazing place. 🌅 Guests will enjoy vibrant cultural performances: traditional dances, the mesmerizing sounds of gamelan, and the main symbol of the festival – the colorful Gebogan parade, taking place against the backdrop of the sunset sky. #events#culture#Tabanan@BaliNews

Bali News

@balinews · Post #149 · 22.08.2024 г., 12:00

🍛Where to try rare Balinese dishes this weekend? 🧑‍🍳 Already this weekend, from August 23 to 25, an art and cooking festival will be held at Tanah Lot Temple in Tabanan. The organizers promise not just to open a food court, but to treat visitors to rare masterpieces of Indonesian cuisine. 🌅 All three days of festivities will be organized and conducted by the efforts of the people of 23 traditional villages. At sunset, they will participate in a very colorful traditional Gebogan parade with the theme “Sunset in Paradise”. @BaliNews #wheretogo#events#festivals#Tabanan

Bali News

@balinews · Post #247 · 25.11.2024 г., 13:45

🪩21-meter immersive sphere The Dome Experience opened in Bali 🔎 A rather interesting interactive object has appeared in Bali. This is The Dome Experience by Labyrinth Collective. The company has built a huge dome with a diameter of 21 meters, inside which there is a screen with an area of 600 square meters. 🔊 484 powerful speakers with a total length of 60 meters are installed behind the screen in a circle. Inside, in the center of the hall is a stage for performances. In addition to the visual and powerful sound spatial effects, the audience will also be treated to a show presented by dancers. 📍 The dome is located at Luna Beach Club within the new conceptual innovation village Nuanu. It is a “creative city” project in Bali, next to Nyanya Beach in Tabanan district. 📆 The sessions are held every Wednesday and Saturday from 11 am to 12:30 pm and tickets can also be purchased online at IDR 490,000 for tourists. 📱labyrinthartbali @BaliNews #wheretogo#places#entertainment#Tabanan

Bali News

@balinews · Post #300 · 25.01.2025 г., 10:25

📰Alit Saputra public sports complex opened in Tabanan 📍 The renovation of the Alit Saputra sports ground in Tabanan has been completed. The look of the former soccer field has changed beyond recognition. 👍DC Field, dirty and neglected, especially during the rainy season, has now become a modern and lively sports complex. 🏋️‍♀️ It has sports equipment, kid's play areas, and picnic and activity areas. Even in rainy weather, you can exercise on the treadmills. 🫔 Along the edge of the complex, vendors offer local traditional snacks, creating a real street party atmosphere. @BaliNews #goodnews#places#wheretogo#sport#Tabanan

Bali News

@balinews · Post #92 · 17.06.2024 г., 15:27

🚍 An electric bus for tourists has come up at Jatiluwih 🍚 The Jatiluwih rice terraces have a new option for tourists. They can now use electric shuttle buses to explore this unique area. 👥 At the moment, these vehicles can accommodate 14 people. Tourists will be able to drive from the parking lot through the rice fields in a quiet and eco-friendly vehicle, enjoying the silence and fresh air. ⛰️ The Jatiluwih Rice Terraces are located in Tabanan District and are recognized as a UNESCO World Heritage Site. They are located on the slopes of Mount Batukaru and cover an area of about 303 hectares. @BaliNews #wheretogo#goodnews#places#Tabanan#Jatiluwih

Bali News

@balinews · Post #208 · 11.10.2024 г., 04:37

🎉The biggest family festival in Bali this Saturday 👨‍👩‍👧‍👦SAMANA Festival is a vibrant family festival in Nuanu City, taking place on October 12th, 10:00 – 18:00. 🥳 This annual event offers an unforgettable day of fun, creativity, and togetherness, designed to bring families closer through a variety of activities and experiences tailored for children of all ages. The festival will feature lots and lots of activities, programs, entertainment, and shows for you to enjoy thoroughout the day. 🎫 Tickets are available to buy here, they start from 55 Rp. @BaliNews #wheretogo#events#kids#entertainment#Tabanan

#Indonesia#Bali#Tabanan#Flood#weather#climate#destruction#anomaly#climatechange 🇮🇩 Сильное наводнение на Бали 🌧🌊🚨 22 апреля 2026 года сильные дожди вызвали серьезное наводнение в Банджаре Лодаланге, деревни Кукух (район Марга, провинция Табанан, Бали, Индонезия). Наводнительные воды затопили дома и сельскохозяйственные угодья, а дороги были заблокированы. Жители сообщили о повреждении имущества и перебоях в транспорте. Власти развернули экстренные службы для эвакуации пострадавших и смягчения последствий катастрофы.