I think the problem with attention issues goes away when the child is trying to build something with code, rather than switching from one game to another looking for one that captures his attention. Coding is a deeply absorbing activity and I've seen our students lose track of time because they are so absorbed in coding their game/animation/website. Quite the opposite of short attention span, actually.
If you have the time, you can consider monitored coding sessions where your son can practise coding and you can keep an eye on how long he spends on the Internet and if he diverts his attention elsewhere. As for attention issues, I read that if done right, just enough computer usage can help a person focus better and strengthen his memory.
If you're interested in getting your child started on digital literacy, Google x Saturday Kids x 21C Girls is running a free full day coding camp at Google's offices this Saturday 27/8 (boys can join too!). https://www.eventbrite.sg/e/google-x-saturday-kids-x-21c-coding-camp-aug-27-2016-tickets-27256620285
Promo terbesar expert care sudah dimulai, diskon hingga Rp.100.000 sedang berlangsung di shopee, ada juga voucher diskon 100% alias gratis bagi bunda yang beruntung. Buruan cek di https://shope.ee/9UfEMMqqTg (id-11863)