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

Резултати

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

Търсене: #smartphones

当前筛选 #smartphones清除筛选
🦅 [ perspective ix ]

@perspectiveix · Post #1038 · 10.12.2017 г., 20:30

While time spent on all game consoles remained flat, usage of apps & the web on #smartphones saw notable lifts in time spent. Overall, media usage increased by 30 mins in Q2 2017. 🚀@PerspectiveIX

Hashtags

🦅 [ perspective ix ]

@perspectiveix · Post #1261 · 11.05.2018 г., 19:00

​​📱Have We Reached Peak Smartphone? After a decade of growth, the global #smartphone market came to a standstill in 2017. According to latest estimates from market research firm IDC, a worldwide total of 1,472 million #smartphones were shipped in 2017, virtually unchanged from the 1,473 million units shipped in the previous year. 🚀@PerspectiveIX 🌳https://prs.pctvix.co/2rBpZT1

🦅 [ perspective ix ]

@perspectiveix · Post #1806 · 02.05.2019 г., 09:01

📱Top Grossing Google Play Categories in Q1 2019 There are some stark contrasts here with the top iOS grossing categories in Q1 2019. We're all just humans with #smartphones, and yet, how #iOS users and #Android users spend their money on mobile varies so drastically. Business apps are getting a lot more spend from Android users. Entertainment is still a power category, but definitely less so in North America and Latin America. The most significant drop-off is spending on Social apps. The category is completely gone from the top 10 Google Play picture. Like Social, the Lifestyle category is gone from the top list altogether. 🚀@PerspectiveIX via Apptopia.

🦅 [ perspective ix ]

@perspectiveix · Post #1347 · 21.06.2018 г., 19:30

​​📱 vs 📺Mobile Soon to Pass TV in Time Spent But IoT could one day soon capture some of those mobile minutes Americans are spending less time with most major media, with one major exception: #smartphones. In 2018, adults will still dedicate more time per day to #TV—nearly 3 hours, 50 minutes—than to any other medium, but TV time is shrinking, down from 4 hours, 37 minutes in 2012. #Mobile time will increase to 3 hours, 35 minutes in 2018, and by 2019 mobile will be the new leader in time spent, with 3 hours, 43 minutes of engagement vs. TV’s 3 hours, 42 minutes. 🚀@PerspectiveIX ☕️prs.pctvix.co/2M8AAOb

🦅 [ perspective ix ]

@perspectiveix · Post #1192 · 09.04.2018 г., 19:30

​​🎧Smartphones Drive Podcast Usage More than 23 million adults in the U.S. have listened to a #Podcast in the past month on a #Smartphone. That’s double the amount who listened on a computer in 2017. Three years ago, the computer is where the largest podcast audience could be found. From 2014 to 2017, the podcasting audience on smartphones increased by 157%. The growth of podcasting is being driven by #smartphones. 🚀@PerspectiveIX 🌀 ⁣http://prs.pctvix.co/TelegramIX

Online Education

@OnlineEducation10 · Post #70 · 23.02.2021 г., 07:21

As of November 2019: 54 percent of the urban population of 12+ years and 32 percent of the same in the rural areas had internet access 77 percent of urban and 61 percent of rural internet users aged 12 and above used it every day, while 7 percent of urban and 13 percent of rural users used it less than once a week 99 percent of both urban and rural internet users aged 12 yrs. and above used mobile phones to access the internet 433 million people aged 12 yrs. and above, and 71 million people aged 5-11 yrs. were active internet users in India Mobile penetration in India 502.2 million people in India had smartphones as of December 2019 The number of smartphone users is expected to be 859 million and 504 million respectively by 2022 #Online#Education#Trends#Mobile#Internet#Smartphones 👍 Join @OnlineEducation10

🦅 [ perspective ix ]

@perspectiveix · Post #1561 · 24.09.2018 г., 08:00

​​📷How the Camera Industry was Hit by Smartphones Over the past few years, #smartphone cameras have improved significantly. So much so in fact, that many people no longer see the need to carry or buy a dedicated camera. While professionals and photo enthusiasts will always get better results using high-end cameras and lenses, modern #smartphones take pictures that are easily sufficient for the demands of the average consumer. To the camera and photo equipment industry, the rise of smartphone photography has had devastating effects. According to CIPA, a Japan-based industry group with members such as #Olympus, #Canon and #Nikon, worldwide camera shipments dropped nearly 80 percent between 2010 and 2017. 🚀@PerspectiveIX via Statista. ❓What do you usually take photos with?

🦅 [ perspective ix ]

@perspectiveix · Post #1680 · 27.11.2018 г., 10:30

​​📱Your Phone's Radiation For most people nowadays, their #smartphone is within arm's reach 24 hours a day. It's in their pocket while they're at work, it's in their hand on the train ride home and it's on their bedside table as they go to sleep. With this level of proximity and usage, many can't quite shake the niggling feeling that they might be risking damage to themselves in the long run. While conclusive longitudinal research on the effects of cell phone radiation is still hard to come by, for those looking to hedge their bets, this infographic shows the phones that emit the most radiation when held to the ear while calling. The German Federal Office for Radiation Protection (Bundesamt für Strahlenschutz) has a comprehensive database of #smartphones - new and old - and the level of radiation they emit. Following the criteria set for this chart (see footnotes), the current smartphone creating the highest level of radiation is the Mi A1 from Chinese vendor Xiaomi. In fact, the top list is dominated by handsets made by Chinese companies, with #Xiaomi, #OnePlus, #Huawei and #ZTE accounting for 12 of the 15 phones with the largest values. It must be said though, that premium #Apple phones such as the #iPhone 7 and the recently released iPhone 8 are also here to be seen. 🚀@PerspectiveIX via Statista. ❓Would this concern you and the smartphone you might buy?