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

Резултати

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

Търсене: #italy

当前筛选 #italy清除筛选
International Geographic

@internationalgeographic · Post #5729 · 07.06.2025 г., 10:15

Tuscany, #Italy Tuscany is the birthplace of the Italian language. Tuscany was a very important cultural and historical center. She had a significant impact on the social and artistic development of Europe and the whole world.

Hashtags

International Geographic

@internationalgeographic · Post #5709 · 25.05.2025 г., 18:26

Burano Island, Venice, #Italy In order not to get lost in the thick fog and find their way home, the residents of Burano painted their houses in very bright colors. Later, such a need disappeared, but the tradition remained. Today, the coloring of houses is regulated by the municipality. Residents can only paint their houses according to the permitted palette.

Hashtags

International Geographic

@internationalgeographic · Post #5707 · 24.05.2025 г., 13:36

Milan Cathedral, #Italy The main Cathedral of Milan (Duomo di Milano) - The Duomo or Cathedral of the Nativity of the Virgin Mary was built for more than 500 years. Construction began in the 14th century and ended in the early 19th century, with the last door of the temple being installed in 1965.

Hashtags

International Geographic

@internationalgeographic · Post #5703 · 23.05.2025 г., 05:51

Sardinia, #Italy🇮🇹 Sardinia has a law prohibiting the export of sand and pebbles from the island. The most traditional dish in Sardinia is Fregola pasta, made from a paste of unusual shape, served with tomato sauce and an abundance of seafood. One of the favorite delicacies of Sardinians is sea urchins.

Hashtags

International Geographic

@internationalgeographic · Post #5655 · 04.05.2025 г., 05:26

Loreto Island, #Italy Due to the small number of documents that have survived to this day, little is known about the island's past, until 1910, when Cavalier Vincenzo Ricchieri decided to build a neo-Gothic castle here, which today is a private residence.

Hashtags

International Geographic

@internationalgeographic · Post #5650 · 01.05.2025 г., 12:52

Dolomites, #Italy The Dolomites are often called the Prealps, the beginning of the Alps, although these mountains are not very high. There are 18 peaks with a height of more than 3 thousand meters, and in some places there is even snow in summer.

Hashtags

International Geographic

@internationalgeographic · Post #5460 · 28.02.2025 г., 09:42

Umbria, #Italy🇮🇹 From the windows of Castello-Di-Rocko Castle-now a hotel with 36 Syuts, a restaurant and an underground spa-and residences views of neat rows of vineyards and cypress alleys. For almost 30 years, the Bolz family managed to return the thousand -year castle to life, but there are still many work ahead of their own admission. The immediate plans are to open a second restaurant in the territory, but this is only another, not the last step.

Hashtags

✨Jast mi🌷🇫🇷

@jastm1 · Post #5299 · 04.06.2025 г., 15:04

「🌺」#italy The sightseeing did not end there. For the next couple of days we kept exploring Florence. Thanks to our wonderful professor almost everyday we had field trip to some gallery or museum with guides who told us about the history of Florence and more. For the rest of the time we explored on our own, went to popular affogato place, to bookstore with cinema inside and golden bridge where we watched sunset (it was the best place imo). The art galleries and museums in Florence are PACKED! Overall we went to Villa la Pietra (which is the villa owned by NYU💅), Pitti Palace and Boboli Gardens, The Uffizi Gallery, Gucci Museum, and last but not least Ferragamo Museum. The one I enjoyed the most was Pitti Palace and Boboli Gardens AND Ferragamo Museum. More about them in upcoming posts... All those times the weather was rainy and sometimes sunny, it changes so fast. Sometimes you can catch musicians performing in the middle of the streets just like we did. It is so fascinating honestly. ~🍋~ ↬@jastm1🌊

Hashtags

✨Jast mi🌷🇫🇷

@jastm1 · Post #5289 · 03.06.2025 г., 19:09

「🌺」#italy Firenze – First Couple of Days 🇮🇹 We arrived on campus and were immediately blown away by its beauty and grandeur. It wasn’t just beautiful it was absolutely massive. Everywhere we looked, there were tall trees and old sculptures, all perfectly blended into the landscape. We had a mini tour of the campus followed by a quick walk through the city center. I was honestly too stunned to speak, everything was just so incredible 🥲. Then came the food: we had what might have been the best pizza ever. It was seriously THAT good. And of course, we had gelato at local spot. Little did we know … it was not even the best gelato in town! Exhausted but happy, we called it a night. Wait for next part. ✨ ~🍋~ ↬@jastm1🌊

Hashtags

✨Jast mi🌷🇫🇷

@jastm1 · Post #5272 · 22.05.2025 г., 18:39

「🌺」#italy We also tried affogato at one of the oldest places in Florence! Under the rain it was really nice to have hot espresso with vanilla ice cream🥰. I really want to come back here with my family, I am kind of feeling guilty for experiencing all of this by myself only 😭🙏. ~🍋~ ↬@jastm1🌊

Hashtags

✨Jast mi🌷🇫🇷

@jastm1 · Post #5269 · 22.05.2025 г., 09:16

「🌺」#italy It is a bit hard to find halal food cause sometimes they even add alcohol in food with only veggies so you need to be careful. Guess we are vegetarians in Italy 😄🤩 Tomato,basil and cheese combo is SOO good tho! ~🍋~ ↬@jastm1🌊

Hashtags

✨Jast mi🌷🇫🇷

@jastm1 · Post #5264 · 22.05.2025 г., 09:13

「🌺」#italy Architecture in Italy is crazy just like in every other city in Europe! You can just take a random picture and it would be so aesthetic. The only thing is that we were warned to be aware of our bags and overall to stay alert and walk in groups🥲🚨 ~🍋~ ↬@jastm1🌊

Hashtags

123•••10•••1516
ПредишнаСтр. 1 от 16Следваща