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

Резултати

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

Търсене: #spain

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

@internationalgeographic · Post #5519 · 21.03.2025 г., 04:50

Seville, #Spain Metropol Parasol (the Metropol umbrella, Spanish The Metropol Parasol, also known as the Mushrooms of Seville, is a concrete and wooden structure located in the Plaza de la Encarnacion. Plaza de la Encarnación) in the old quarter of Seville. The building was designed by German architect Jürgen Mayer, and construction was completed in April 2011. The 28-meter-high facility covers an area of 150 by 75 meters and claims to be the largest wooden structure in the world.

Hashtags

International Geographic

@internationalgeographic · Post #5459 · 28.02.2025 г., 00:07

Fuerteventure, #Spain🇪🇸 This wonderful natural pool is located on the island of Fuerteventure. 🏝 Interestingly, Fuertever is considered one of the oldest islands of Spain, formed thanks to the eruption of the volcano more than 20 million years ago. This fact confirms the unusual form of the island and the complete absence of snakes and insects dangerous for humans. Also, the pluses of this place should include an almost complete absence of rains and a soft climate.

Hashtags

POPULAR FRONT

@popularxfront · Post #4449 · 11.01.2026 г., 16:56

🇪🇸#Spain / Catalonia: There were intense clashes yesterday in Sentmenat (Barcelona) between anti-fascist protesters and riot police. Groups of demonstrators took to the streets to oppose the opening of a new delegation and headquarters by the neo-Nazi group Núcleo Nacional. Hundreds of anti-fascist activists gathered near the industrial area where the far-right group was holding an event, leading to police charges as officers attempted to prevent protesters from reaching the venue. (📹 via @rebonico on X)

Hashtags

POPULAR FRONT

@popularxfront · Post #4037 · 02.12.2025 г., 10:44

🇪🇸#Spain: Europol and the Spanish National Police have uncovered a far-right accelerationist cell linked to The Base. Three suspects were arrested during coordinated raids in Madrid, Valencia and Castellón, with officers seizing firearms, ammunition, knives, tactical gear, and accelerationist/neo-Nazi propaganda. According to investigators, the cell was "highly radicalised" and it had conducted paramilitary style training, while being allegedly in contact with The Base's founder, Rinaldo Nazzaro. Only a month ago, The Base issued messages on its Telegram channels urging the consolidation of its dispersed international cells. (via The Guardian)

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1414 · 08.05.2025 г., 12:14

🌍Alhambra in Spain✨ 📏 📏 📏 📏 📏 📏 📏 📏 ⭐ Alhambra, a stunning fortress-palace in Granada, is one of Spain’s most iconic landmarks, showcasing beautiful Islamic architecture. 📏 📏 📏 📏 📏 📏 📏 📏 #Spain🇪🇸@voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1211 · 27.12.2024 г., 13:14

😍When talking about Barcelona, one immediately thinks of the Sagrada Familia. 📏 📏 📏 📏 📏 📏 📏 📏 After 137 years, this landmark has become one of the most visited not only in Catalonia but in all of Europe. 🌟 📏 📏 📏 📏 📏 📏 📏 📏 #Spain🇪🇸 @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1209 · 25.12.2024 г., 13:14

🗺Spain 🇪🇸 📏 📏 📏 📏 📏 📏 📏 📏 Mount Tibidabo — the highest point in the Spanish city of Barcelona, part of the Collserola range. 📏 📏 📏 📏 📏 📏 📏 📏 🌟From this hill, you get a stunning panorama of the Catalonian capital, enjoyed by both tourists and locals. Though relatively low at just over 500 meters above sea level, both the mountain and its summit attractions are visible from anywhere in the city. 📏 📏 📏 📏 📏 📏 📏 📏 #Spain @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1194 · 13.12.2024 г., 13:14

November in Barcelona is pure magic ✨ 📏 📏 📏 📏 📏 📏 📏 📏 💚This area between Urquinaona Square and Paseo de San Juan Avenue is a treasure trove of architectural masterpieces! Every building here is a work of art, rich in history and unique charm. 📏 📏 📏 📏 📏 📏 📏 📏 💚Imagine walking down a narrow street, the autumn leaves rustling underfoot, with majestic buildings towering around you, adorned with elegant balconies and carved doors. Time seems to slow down, and you’re immersed in the atmosphere of old Barcelona. 📏 📏 📏 📏 📏 📏 📏 📏 #Spain🇪🇸 @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1025 · 14.07.2024 г., 12:14

Spain 🇪🇸 Mount Tibidabo — the highest point in the Spanish city of Barcelona, part of the Collserola range. From this hill, you get a stunning panorama of the Catalonian capital, enjoyed by both tourists and locals. Though relatively low at just over 500 meters above sea level, both the mountain and its summit attractions are visible from anywhere in the city. #Spain @voyage

Hashtags

123•••78
ПредишнаСтр. 1 от 8Следваща