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

Резултати

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

Търсене: #roads

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

@balinews · Post #516 · 24.10.2025 г., 13:03

🛵 Two female tourists fell from the Yellow Bridge on Nusa Lembongan 📰 They were riding a motorcycle across the bridge connecting Nusa Lembongan and Nusa Ceningan when they lost control, collided with the railing, and plunged into the water. The police have urged local authorities and road services to urgently repair the bridge, which is in a state of disrepair and poses a threat to all road users. #accidents#roads@BaliNews

Bali News

@balinews · Post #278 · 28.12.2024 г., 10:01

🪨A road that collapsed near Ubud has blocked a tourist route 📍 A main road collapsed in Pedjeng village in Tampaksiring district, Gianyar. The collapse was 25 meters deep and 15 meters wide. 🚧 Authorities have completely closed the road as it was impassable for both cars and motorcycles. 📰 The Public Works Department is expected to restore the collapsed road as soon as possible. It is of great importance to locals and tourists alike. Passersby now have to make a significant detour. Farmers who used to use this route to transport their crops are also affected. @BaliNews #accidents#roads

Bali News

@balinews · Post #389 · 11.04.2025 г., 14:11

🛣Gilimanuk-Mengvi highway decided to split into three parts 📰 The Gilimanuk-Mengvi highway is in the news again. This time the authorities, apparently tired of finding investors and buying back land, decided to change their approach. 🔎 They have divided the 100-kilometer toll road into three sections and are going to work with each of them separately, namely: Section 1: Gilimanuk-Pekutatan, which is 53.6 km long. Section 2: Pecutatan-Soka, 24.3 km long. Section 3: Soka-Mengvi, 18.9 km long. 📆 It is scheduled to be completed in 2028. @BaliNews #roads#projects

Bali News

@balinews · Post #264 · 16.12.2024 г., 09:20

🛣Construction of a new highway to western Bali will resume in 2025 📰 Minister for Infrastructure Affairs Dodi Hanggoto said that construction of the Mengwi-Gilimanuk highway will continue in 2025. The minister emphasized that President Prabowo Subianto's plan to develop the north of the island, including the construction of a second airport there, cannot be fulfilled without a new road. 🔎 The road will be 97 kilometers long and the potential cost of construction is $1.58 billion. The project is now at the stage of approval of the general contractor. 📆 Also last week, Governor Wayan Koster confirmed that construction of the highway will begin in mid-2025. Until then, the local government is committed to buying the land for future construction. ℹ️ On September 10, 2022, authorities had already announced the start of construction, but after that, the project stood up due to lack of funding. We would like to believe that the new authorities will find the necessary funds and the project will still be realized. @BaliNews #projects#roads

Amazing Geography 🌍

@amazingeo · Post #333 · 04.10.2025 г., 20:31

🌍 The world’s highest paved international road, the Karakoram Highway, climbs over 4,700 meters linking China and Pakistan. Its route carves through mountains shaped by ancient glaciers and landslides. ✨ #transport⚡#mountains⚡#roads⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #554 · 03.01.2026 г., 20:31

🌍 The Trans-Amazonian Highway spans over 4,000 kilometers across Brazil, but much of it remains unpaved and nearly impassable in the rainy season, highlighting the challenges of transport geography in remote regions. ✨ #infrastructure⚡#roads⚡#rainforest⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #633 · 15.02.2026 г., 12:31

🌍 The world’s longest continuous road, the Pan-American Highway, stretches about 30,000 kilometers from Alaska to Argentina. Its route is interrupted by a wild jungle gap called the Darién Gap. ✨ #transport⚡#infrastructure⚡#roads⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Bali News

@balinews · Post #165 · 05.09.2024 г., 10:30

🛣Bali will have new bus routes and toll roads 🧳 The Kintamani region of Bali is gaining popularity with touristsand island authorities are looking for ways to make traveling to this remote area easier. 📍 The Bangli Transportation Authority has proposed adding new bus routes to Kintamani to make it easier for tourists to get there. There are plans to open a new Damri bus route that will connect Kintamani to Ubud via Payangan and Gianyar. 🪙 In southern Bali, congestion is also being tackled by building new roads. Indonesian Tourism Minister Sandiaga Uno revealed the construction of a new toll road that will connect resorts in southern Bali with northern regions. The project has been approved by the central government and a tender for construction will be held in 2025. 📆 The work will temporarily worsen traffic congestion in the Kuta, Jimbaran and Baypas Ngurah Rai and Labuan Sait areas. Travelers are advised to plan their trips in advance and take into account delays in the Bukit Peninsula area from September. @BaliNews #roads#transport#tourism

Bali News

@balinews · Post #147 · 20.08.2024 г., 09:02

🛣Transportation changes in Bali and their implications 📆 Next month sees the launch of several infrastructure projects that, while intended to improve the traffic situation in the long term, could make it much more difficult in the short term. These include: 1 - The start of construction of the metro, namely its first section between the airport and Kuta. 2 - The construction of two new underground interchanges: one in Sanur, at the intersection of Tohpati and Bypass, the second – the exit from Bypass towards Uluwatu. 3 - The ongoing mass paving of storm drains and sidewalks in central Bukit. ❓What should tourists do? The solution for tourists going to Bali anytime soon is to choose self-sufficient neighborhoods where you don't have to drive anywhere and everything can be done on foot. Plus, instead of staying for a week or more in one place, travelers divide their vacation into 3-4 days in one location and then move on to other places of interest. A classic set might look like this: Uluwatu/Bingin for beach vacations and beautiful sunsets, Ubud for cultural vacations, and north Bali for a couple days for unique nature. @BaliNews #roads#transport#tourism

Bali News

@balinews · Post #79 · 07.06.2024 г., 12:00

🛣Bali's big toll road project is back on the agenda 👍 One of Bali's biggest infrastructure projects resumes this month. Development teams have been given permission to proceed with work on the Gilimanuk-Mengwi toll road, which will connect the heart of the island to the far west, the Java Ferry. In June 2024, after nearly two years of delays and postponements, the land acquisition process will be allowed to continue. Construction itself will begin as early as September. @BaliNews #goodnews#transport#roads

Bali News

@balinews · Post #365 · 25.03.2025 г., 09:16

⛔Bali Tol Mandara toll road will close for 32 hours during Nyepi 📰 PT Jasamarga Bali Tol management company PT Jasamarga Bali Tol announced that it will temporarily close access to the Bali Tol Mandara Toll Road for 32 hours due to the Nyepi celebration on March 29, 2025. 🚧 The road will become inaccessible on Friday, March 28 at 23:00 and will reopen on Sunday, March 30 at 07:00. Although the road will be closed to the general public, passage will be free for emergency services and in case of non-emergency situations. @BaliNews #transport#roads#holidays

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