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

Резултати

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

Търсене: #tourism

当前筛选 #tourism清除筛选

🤝 Staff of the Office of the Honorary Consul met with representatives of the travel company KUDAKA TRAVEL, which promotes travel to South Africa. 🇿🇦 🌍 We have already met with our colleagues several times to discuss possible areas of cooperation: • https://t.me/sarconsulurals/279 • https://t.me/sarconsulurals/602. ✈️ Company representatives, Aleksandra Shvetsova and Maria Yedigareva (pictured), shared that in late March – early April they will travel to South Africa with a group of tourists. 📸 We look forward to photos and stories from their trip to South Africa! #Tourism

Hashtags

“Cape Town has been crowned the World's Best Food City in the 2024 Condé Nast Traveller Readers' Choice Awards. The city, sprawling with tasty corners and crevices, is proud of its intricate and often complex food story, which adds to its charm. With a tantalising 95.65 score in the prestigious competition, Cape Town bested culinary hotspots like Tokyo, Rome, and Porto, cementing itself as the world's culinary capital.” Source: https://www.news24.com/life/food/news/we-have-changed-the-game-cape-town-crowned-best-food-city-in-the-world-20241029 #tourism

Hashtags

Trump's Ear

@trumpsear_tg · Post #1894 · 11.12.2025 г., 15:01

Facebook Instagram Account: Trump wants to view tourists' social networks before letting them into the country. 🌐📱 The administration of United States President Donald Trump is developing a new plan according to which tourists will be required to provide a history of their activity on Facebook, Instagram and other social networks over the past five years. 🔍 The new rule will apply, among other things, to those entering from Australia, Germany, Japan and the United Kingdom, who can now visit the United States without a visa. ✈️ In total, this will affect about 40 countries included in the Visa Waiver Program (VWP), whose citizens can stay in the United States for up to 90 days. 🌍 The idea of checking social media is part of the United States Government's overall plan to sharply restrict entry into the country. The authorities explain the decision by the need to "protect the United States from foreign terrorists and other threats to national and public security." 🛡 The document has not yet entered into force: first, it will be submitted for public discussion after publication in the Federal Register. 📄 Earlier, the Washington Post reported that the government has already checked several million people who live in the United States. The United States Citizenship and Immigration Services (USCIS) also stated that it would check immigrants for possible "anti-American" statements on the Internet when applying for documents. 💬🇺🇸 #Trump#Tourism 👂More on Trump's Ear

Addis Standard

@addisstandardeng · Post #21471 · 20.02.2026 г., 12:47

News: #Ethiopia earns over $2.6 billion from #tourism in six months Addis Abeba-Ethiopia has generated more than $2.6 billion in tourism revenue after welcoming over 700,000 international visitors during the first six months of the 2018 Ethiopian fiscal year, the Ministry of Tourism said. In a statement reported by state media, the ministry attributed the performance to the development of new tourist destinations and the renovation of existing sites. Officials said the growth has made a significant contribution to the country’s foreign currency earnings. The ministry also cited Addis Abeba’s role as a hub for major international conferences and diplomatic engagements as a key factor behind the rise in visitor numbers and revenue. The latest Tourism Barometer by the United Nations World Tourism Organization projects that Ethiopia’s tourism sector could grow by 15 percent by 2025, positioning the country among Africa’s leading destinations. https://www.facebook.com/share/1GNKaQwdaj/

Trump's Ear

@trumpsear_tg · Post #1907 · 15.12.2025 г., 17:03

Tourists to the United States would have to reveal their social media activity from the last five years, under new Trump administrationplans. The mandatory new disclosures would apply to the 42 countries whose nationals are currently permitted to enter the US without a visa, including longtime US allies Britain, France, Australia, Germany and Japan. #Tourism#Media 👂More on Trump's Ear

Trump's Ear

@trumpsear_tg · Post #2379 · 16.04.2026 г., 23:59

US, Mexico, and Canada host the World Cup this summer, but the US economy isn't feeling the boost. 🏠📉 Contrary to billions expected, US entrepreneurs see little impact. Hotel associations report lower-than-promised returns; New York pre-bookings for June/July match last year. Philadelphia and San Francisco agree. 🏨 FIFA, which booked rooms for staff/teams, is now canceling thousands. In Philadelphia alone, 2,000 rooms were canceled. Consequently, hotels in Atlanta, Dallas, and Miami are dropping prices. 💸 Low demand stems from the Trump administration's aggressive foreign policy, making visas harder for tourists to obtain. 🛑✈️ #FIFA#Tourism 👂More on Trump's Ear ⚠️

Bali News

@balinews · Post #610 · 24.04.2026 г., 12:15

😅Nusa Penida is absolutely stunning… but wow, the crowds 📸 Every viewpoint feels packed, and getting that “perfect” photo takes patience. Still worth it for the views, but definitely not the hidden paradise it once was. If you’re planning to visit – come early, expect people, and bring a little extra patience ;) #places#tourism@BaliNews

Bali News

@balinews · Post #584 · 21.03.2026 г., 11:00

📍Ten #places to add to your Bali itinerary 1. Lahangan Sweet 2. Alas Harum 3. Lemukih Waterfalls 4. Sari Timbul 5. Gembleng Waterfall 6. Nusa Penida Snorkeling 7. Taman Dedari 8. Sekumpul Waterfall 9. Nusa Penida Island 10. Pura Ulun Danu Bratan #tourism@BaliNews

Bali News

@balinews · Post #574 · 24.02.2026 г., 09:21

😉Bali is not just Canggu 🛵 A list of authentic locations for a far more magical holiday experience: 📍 Munduk: Serenity in the mountains, home to iconic temples. 📍 Menjangan: An underwater paradise with crystal-clear waters, perfect for snorkeling or diving. 📍 Ubud: Expansive green terraced rice fields that soothe the soul. 📍 Amed: Coastal beauty set against the majestic backdrop of Mount Agung. 📍 Ungasan: Turquoise beaches framed by breathtaking cliffs. #tourism#places@BaliNews

🌿A Hidden Gem in South Africa’s Northern Cape 🇿🇦 Tucked away far from the noise of everyday life, Doornkloof Nature Reserve lies in the heart of South Africa’s vast Northern Cape. The reserve stretches along the banks of the Vanderkloof Dam, the country’s second-largest dam and one of its top fishing destinations. 🎣🐟 If you love wide open spaces, endless horizons, and pure silence — this is the place for you. 🌄✨ 🌱 Covering 12,000 hectares, the reserve is remarkably untouched and a true paradise for nature lovers. 🌿 Up to 420 plant species 🦌48 mammal species 🐸 8 amphibian species 🐦 172 bird species 🚴‍♂️🥾 Activities include cycling, hiking, angling, kayaking, birdwatching, and self-drive game viewing. A place where nature speaks — and silence heals. 💚 📹Fly fishing in Vanderkloof Dam - Doornkloof Nature Reserve: https://www.youtube.com/watch?v=neuNbqqkyoM #Tourism#Nature

Le Bonheur Reptiles and Adventures: A Crocodile Experience Near Cape Town Just 60 kilometers northeast of Cape Town, in the scenic area of Simondium, you'll find Le Bonheur Reptiles and Adventures, home to over 200 crocodiles! 🦎Get Up Close – Feed the crocs and sample crocodile meat at the on-site restaurant. 🐊For Thrill-Seekers – Spend an unforgettable 20 minutes in a water cage, observing these powerful predators up close in their natural habitat. 🎥Don’t Miss Out – Watch this short video for a sneak peek of the adventure! P.S. Did you know that Yekaterinburg also has a crocodile farm? It’s called KrokodilVil, located at 17 Bebelya St. 📹 Video: Watch here 🌐 Website: lebonheuradventures.co.za #Tourism#Nature

🦁 Aquila Private Game Reserve near Cape Town Just under two hours from Cape Town lies one of South Africa’s most popular private reserves — Aquila Private Game Reserveand Spa, named after the black eagle native to the area. The reserve is home to an impressive range of wildlife, including the iconic Big Five — lion, rhinoceros, elephant, buffalo, and leopard — as well as zebras, hippos, crocodiles, flamingos, and over 170 bird species. It’s an ideal destination for a first safari experience or a relaxed nature getaway. In addition to guided safaris, Aquila offers excellent on-site facilities, including an outdoor swimming pool, a spa, and stunning landscapes that combine adventure with comfort. 📹 Video (English): https://www.youtube.com/watch?v=VDcSDZQxrr4 #Nature#Tourism

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