@zapovednick · Post #8 · 19.04.2022 г., 14:13
Coming soon... #сидр#заповедник#новинка#newrelease
TGINSIGHT SIMILAR POSTS
Изходен канал @clockstackwheels · Post #721 · 26.12
Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev
Hashtags
Търсене: #newrelease
@zapovednick · Post #8 · 19.04.2022 г., 14:13
Coming soon... #сидр#заповедник#новинка#newrelease
@revheadcrypto · Post #65 · 09.07.2024 г., 16:11
🚘🚘 Skoda is preparing for the premiere of a new electric vehicle. It's the compact crossover Elroq, which will rank below the Enyaq in the company's lineup, serving as an electric addition to the current Karoq crossover. The base Skoda Elroq 50 is equipped with a 170-horsepower electric motor on the rear axle and a 55 kWh battery. Skoda Elroq 60 will come with a 204-horsepower motor and a 63 kWh battery. Skoda Elroq 85 features a 285 hp motor and will be equipped with an 82 kWh battery. The top version Elroq 85x will have a dual-motor all-wheel drive system - 299 hp. It will reach a top speed of 180 km/h and have a range of 560 km without recharging.🌟🔌🔋 #SkodaElroq#ElectricVehicle#NewRelease#Auto
@revheadcrypto · Post #47 · 05.07.2024 г., 16:07
Volkswagen is gearing up to introduce a special surprise for the Chinese market - the new electric coupe-style crossover, ID.Unyx! The first official photos have been released, and it's safe to say that the design of this vehicle is nothing short of mesmerizing. It's a variation on the already prominent Cupra Tavascan, with its own unique twist. The ID.Unyx will be powered by potent electric motors - one at the rear axle delivering 231 hp and, for those seeking extra power, an additional motor with 109 hp. This model promises not only efficiency and eco-friendliness but also impressive performance. This vehicle effortlessly combines elegance, modern style, and cutting-edge technology. The Volkswagen ID.Unyx is the perfect choice for those who value comfort, efficiency, and a dynamic appearance. Strive for excellence - choose the Volkswagen ID.Unyx! 🌟🚗 #Volkswagen#IDUnyx#electricvehicle#newrelease#crossover
@revheadcrypto · Post #113 · 16.07.2024 г., 10:00
🚗 The new liftback and wagon Audi A5 have been unveiled ahead of the premiere! The A5 is based on a new platform called PPC (Premium Platform Combustion) – obviously, this is a variation of the PPE architecture for electric cars focused on internal combustion engines. The engine lineup will be led by a 2.0-liter turbo engine producing 268 hp, paired with a seven-speed dual-clutch transmission instead of the previous automatic. Optional all-wheel drive will be available. The S5 version will feature a 3.0-liter V6 engine with 362 horsepower. Sources also mention a small electric motor delivering 24 hp and 230 Nm. Exciting times ahead for Audi enthusiasts! 🌟🔥 #AudiA5#NewRelease#LuxuryCars#AutomotiveIndustry#Innovation#Performance#Auto🏎️
@revheadcrypto · Post #250 · 06.08.2024 г., 09:32
🚗✨Nissan Unveils the Updated Frontier Pickup!🌟 Get ready for the all-new look of the Nissan Frontier, designed specifically for the North American market! 🇺🇸💪 🔧What's New? - Fresh exterior design for a bold presence! - Upgraded media system with a larger screen for an enhanced driving experience! 📱🎶 - Expanded features to keep you connected and comfortable! ⚙️Under the Hood: No changes here! The Frontier continues to boast a powerful 3.8-liter V6 engine with 310 horsepower and a smooth 9-speed automatic transmission! 🚀 #NissanFrontier#PickupTruck#NewRelease#AutomotiveNews#V6Power#Auto
@revheadcrypto · Post #448 · 05.09.2024 г., 13:45
🚗✨ Introducing the updated Volvo XC90! ✨🚗 After nearly a decade, the XC90 has received a stunning makeover with a refreshed exterior featuring new headlights, grille, and bumpers. Plus, enjoy an enhanced suspension and a modern media system with a larger screen! 📱🔊 This new XC90 will only be available with hybrid powertrains based on gasoline engines, as the company has phased out diesel options. ⚡️🚫 🔋 The plug-in hybrid XC90 offers an impressive electric range of about 70 km, with a total driving range of 800 km! Meanwhile, mild-hybrid versions with a 48-volt starter-generator reduce fuel consumption by 15%. 🌍💚 #VolvoXC90#Hybrid#Sustainability#Innovation#CarLovers#NewRelease#Auto
@revheadcrypto · Post #414 · 31.08.2024 г., 16:58
🚗✨Introducing the All-New Volkswagen Passat in China!🇨🇳 Say hello to the latest sedan that combines sleek design with innovative features! While it may resemble the European wagon, the Chinese Passat boasts a unique look with aggressive bumpers and stylish black accents. 😍 🌟Key Features: - 11.6-inch Passenger Display for ultimate entertainment! 📱 - Convenient Seat Adjustment Button for rear passengers to maximize comfort! 🪑 Under the hood, choose between two powerful turbo engines: - 1.5L with 160 hp ⚡️ - 2.0L with 220 hp 🚀 🗓️Sales Begin on September 10th! #Volkswagen#Passat#NewRelease#China#CarEnthusiasts#Innovation#LuxuryOnWheels#Auto
@revheadcrypto · Post #458 · 07.09.2024 г., 12:55
🚙✨ Exciting News! The new Mitsubishi Pajero Sport has hit the testing grounds! 🛤️🔍 Despite its camouflage, it's clear that the front design draws inspiration from the current L200/Triton pickup. 🛻💨 The new front end beautifully complements the familiar rear styling. Could this be a prototype testing individual components in a non-production body? 🤔🔧 While the release date remains a mystery, the current model is set to be discontinued in 2025. ⏳📅 #MitsubishiPajeroSport#CarTesting#NewRelease#Mitsubishi#SUV#AutoNews#Innovation#Auto