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

Резултати

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

Търсене: #ubud

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

@balinews · Post #599 · 31.03.2026 г., 17:35

🌿 Ubud isn’t just a place – it’s a state of mind 🧘‍♀️ It’s not about parties – it’s about balance, inspiration, and reconnecting with yourself. Why you should go: • stunning nature and views • calm, cozy atmosphere • yoga, meditation & retreats • delicious, healthy food • rich Balinese culture #places#Ubud@BaliNews

Hashtags

Bali News

@balinews · Post #558 · 27.01.2026 г., 07:00

📸 Top 5 photo spots in Ubud 1️⃣ Cretya ubud 2️⃣ Tukad cepung waterfall 3️⃣ Tegallang rice terrace 4️⃣ Tirta empul 5️⃣ Saraswati temple #places#Ubud@BaliNews

Hashtags

Bali News

@balinews · Post #31 · 30.04.2024 г., 09:49

🌴 Bali zoo has a new animal: the Asian tapir The zoo near Ubud in Gianyar district has a new member. By the beginning of the Muslim holiday Lebaran there brought a new animal. It's an Asian tapir. The black and white tapir can still be found in the wild, walking in the jungles of Sumatra Island. They are solitary individuals that reach a length of 2 to 2,5 meters. The animals eat leaves and fruits, and their nose resembles a small trunk, like an elephant's. @BaliNews #wheretogo#Ubud

Bali News

@balinews · Post #606 · 14.04.2026 г., 11:05

🧘 Ubud is hosting the Bali Spirit Festival 2026 this week This is one of Bali’s most renowned festivals dedicated to yoga, music, dance, and somatic practices. 📆 The festival will take place from April 15 to 19 at The Yoga Barn and Puri Padi. The main program is scheduled for the upcoming weekend, from April 17 to 19. Before that, the organizers will host: ✨ a free evening gathering – April 15 ✨ an open day – April 16 📲 More info and tickets on the official website. #events#Ubud@BaliNews

Hashtags

Bali News

@balinews · Post #146 · 19.08.2024 г., 12:30

📰 The consequences of the fire at the market in Ubud 🧑‍🚒 The flames could not be extinguished due to the construction of the building! 🚒 The central market of Ubud was seriously damaged as a result of a fire racing in the building on August 17. The flames broke out in the eastern part of the basement of the market. The fire was caused by a short circuit in kiosk No. 3, selling T-shirts and other textiles. 🛵 The fire destroyed the contents of many shops and many motorbikes parked nearby. Extinguishing the flame took 8 hours. Those who fought the fire blame the construction of the market for the prolonged fire. @BaliNews #accidents#Ubud

Bali News

@balinews · Post #523 · 09.11.2025 г., 12:40

🌴 New hotels coming to Ubud, Bali in 2027 Tourism in Bali continues to grow, and two major hotel openings are set for 2027: 🛎 Hotel Indigo Bali Ubud (IHG Hotels & Resorts) • 130 rooms in the heart of Ubud’s cultural district • Built near Blangsinga Waterfall, local craft markets, and Blangsinga Glass Bridge • Will offer immersive cultural experiences, local guides, and culinary programs • Aims to connect guests with Ubud’s heritage, nature, and creative community • Second IHG property in Ubud, following Kimpton Bali Ubud 🛎 Atiara Ubud Bali (Radisson Collection) • 52 rooms, including a 530 sqm Presidential Suite with private pool • Features wellness suites, outdoor terraces, yoga decks, and jacuzzis • First Radisson luxury property in Indonesia, targeting domestic and international travelers #tourism#places#Ubud@BaliNews

Bali News

@balinews · Post #549 · 09.01.2026 г., 09:35

⭐️It looks like a movie featuring Gerard Butler may be filming in Ubud 📸 The actor has been spotted several times in the city center, calmly walking around, chatting with people, and taking photos with fans — without security or a film crew, dressed in casual everyday clothes, far from the usual Hollywood glamour. 👍 The very fact that a Hollywood star of this level can freely walk around Ubud and interact with locals has once again fueled conversations about Bali as a place where celebrities can be “just people,” rather than targets for paparazzi. What do you think — is this a film shoot, or is Butler simply vacationing on the island? #celebrities#Ubud@BaliNews

Bali News

@balinews · Post #497 · 25.09.2025 г., 09:05

📰Balinese sculpture park gains popularity online 📍 In Ubud, the Sari Timbul sculpture garden is rapidly gaining popularity. A massive Barong head at the entrance, the mystical Kala Rau statue, and figures from Balinese folklore make it one of the most unusual places to visit. 👀 Here, visitors can not only take striking photos but also watch the process of glass blowing and wood carving. #places#Ubud#wheretogo@BaliNews

Bali News

@balinews · Post #221 · 22.10.2024 г., 10:55

🎙Stand Up secret show on Bali this Friday 📰 Secret Comedy Night is Bali's only underground stand-up comedy show. Why is it a secret? All past shows have sold out resulting in having to sadly turn away many people at the door. Hence, the location now is a secret and the online sales stop once capacity is reached. Address will be sent to you privately upon your ticket purchase. ⏳ Doors open for dinner & drinks starting from 6.30 pm. 🎤 Show starts: 7.45 pm. 🍸 Food & drinks available for sale at the venue. 📍 Ubud Area (address detail will be revealed upon ticket purchase). 🎫 Early bird tickets – Rp 255,000. 🖥 Details of the event via the link. @BaliNews #wheretogo#events#Ubud

Bali News

@balinews · Post #262 · 13.12.2024 г., 10:00

🐒Monkey Forest in Ubud has been closed indefinitely after the death of tourists 📰 Bali appears to have lost one of its most popular tourist attractions. After the tragedy at Monkey Forest, which claimed the lives of two foreigners, the park in the center of Ubud was closed indefinitely. 🌳 Recall, on Tuesday, due to the squally winds in Monkey Forest fell a huge tree. Two tourists died. At the site of the tragedy held a religious ceremony. 🪔 According to Balinese Hindu tradition, it is necessary to hold a pekaruan ceremony to cleanse the space of uncleanness and calm the negative energies present in the space. It is believed that if one does not get rid of these negative energies, incidents may happen again. The ceremony is usually closed to the general public. @BaliNews #accidents#places#Ubud

Bali News

@balinews · Post #24 · 25.04.2024 г., 10:25

👳‍♂️ Sadhguru flew to Bali to recuperate after an illness Where else could one meet India's most popular yogi and mystic if not in Ubud. Sadhguru went for a walk through the busy Balinese streets, surprising the islanders and visitors with his appearance. It was hard not to notice him, because he went on the tour not alone, but with a full delegation. These are the participants of the unique 10-day program "Mystical Reflections", with which he came to Bali. Bali brings tranquility and vigor for physical and spiritual recovery Sadhguru @BaliNews #celebrity#Ubud

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