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

Резултати

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

Търсене: #petdog

当前筛选 #petdog清除筛选

The kennel.ai core team and team of DogShow influencers can be contacted easily through Telegram, Twitter, YouTube etc or directly by email at [email protected] Feel free to offer marketing and promotional services Admin @NEO55555 #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

The Kennel.Ai ecosystem has a stabil Token https://kennel.ai/tokenomics …use of KC stabil Token is for making either donations to street dog feeding campaign https://kennel.ai/to-earn or for buying products ( on chain ) from the Webshop using crypto https://kennel.ai/shop #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

Happy December 01 🐶🦴 The kennel.ai core team and team of DogShow influencers can be contacted easily through Telegram, Twitter, YouTube etc or directly by email at [email protected] Feel free to offer marketing and promotional services Admin @NEO55555 #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

One of the core features of the Kennel.ai ecosystem is charitable donations to community that give their waste table food to street dogs https://kennel.ai/to-earn Millions of dog lovers worldwide care about the plight of abandoned street dogs …that’s why Team have created the offer of being the middle man for European and American dog lovers that like to donate money to sponsor the feeding of street dogs in places like India , Romania and other countries where the street dogs need help… at least join the platform today to show your support for this campaign 🐾 https://kennel.ai/login Have a great day …. #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

The Pet dog Industry problem is that the data collected is held on hundreds of independent servers Worldwide 25 million new pet dogs are registered with the worlds fragmented kennel clubs each year This is a multi billion dollar industry, the average price for a pet dog now in 2023 Europe and USA is $1000-1500$ In the Future every Pet dog will be physical digital asset , data on chain Kennel.Ai creates a unique editable NFT for each new pet dog registered You can join the Kennel.Ai ecosystems and help tobtest the platform by registering a dog, start to earn tokens for the data provided by you and supplemental tokens for the data provided by owners of any offspring produced by your dog https://kennel.ai/login Kennel.Ai aims to provide one place on chain for all the worlds kennel clubs members, breeders and pet dog owners to record and own their dog life data… #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

One of the core features of the Kennel.ai ecosystem is charitable donations to community that give their waste table food to street dogs https://kennel.ai/to-earn Millions of dog lovers worldwide care about the plight of abandoned street dogs …that’s why Team have created the offer of being the middle man for European and American dog lovers that like to donate money to sponsor the feeding of street dogs in places like India , Romania and other countries where the street dogs need help… at least join the platform today to show your support for this campaign 🐾 https://kennel.ai/login Have a great day …. #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

The kennel.ai core team and team of DogShow influencers can be contacted easily through Telegram, Twitter, YouTube etc or directly by email at [email protected] Feel free to offer marketing and promotional services Admin @NEO55555 #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

The kennel.ai core team and team of DogShow influencers can be contacted easily through Telegram, Twitter, YouTube etc or directly by email at [email protected] Feel free to offer marketing and promotional services Admin @NEO55555 #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

One of the core features of the Kennel.ai ecosystem is charitable donations to community that give their waste table food to street dogs https://kennel.ai/to-earn Millions of dog lovers worldwide care about the plight of abandoned street dogs …that’s why Team have created the offer of being the middle man for European and American dog lovers that like to donate money to sponsor the feeding of street dogs in places like India , Romania and other countries where the street dogs need help… at least join the platform today to show your support for this campaign 🐾 https://kennel.ai/login Have a great day …. #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

In our busy lives reminders are essential How about reminders for when your pet dogs vaccinations are due for boost Kennel.ai records dog life data on chain such as vaccination type and expiry date Platform reminds pet dog owners when either a vaccination or booster is needed via mobile and by a notification when user is logged in to platform with Google or Web3 metamask https://kennel.ai/login Kennel.Ai aims to provide one place on chain for all the worlds kennel clubs members, breeders and pet dog owners to record and own their dog life data… #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

The Pet dog Industry is massive , behind every pet dog sale their is a professional pet dog breeder 25 million new pet dogs are registered with the worlds fragmented kennel clubs each year This is a multi billion dollar industry, the average price for a pet dog now in 2023 Europe and USA is $1000-1500$ In the Future every Pet dog will be physical digital asset , data on chain Kennel.Ai creates a unique editable NFT for each new pet dog registered You can join the Kennel.Ai ecosystems and register a dog, start to earn tokens for the data provided by you and for the data provided by owners of any offspring produced by your dog https://kennel.ai/login Registration process uses Artificial intelligence to help end genetic breeding faults by suggesting near perfect breeding mate for your dog #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

One of the core features of the Kennel.ai ecosystem is charitable donations to community that give their waste table food to street dogs https://kennel.ai/to-earn Millions of dog lovers worldwide care about the plight of abandoned street dogs …that’s why Team have created the offer of being the middle man for European and American dog lovers that like to donate money to sponsor the feeding of street dogs in places like India , Romania and other countries where the street dogs need help… at least join the platform today to show your support for this campaign 🐾 https://kennel.ai/login Have a great day …. #dogs #$DOGS #petdog#dogbreeder#kennelclub#blockchain#Ai

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