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.
Read more