Screen time itself isn't a bad thing, it's what you do with it. If your kid is sitting there watching YouTube or other videos, that's passive, and not that great. But there are some really excellent, interactive, educational apps out there for kids, especially on tablets.
I've found the tutorials on Lynda.com to be very engaging. The videos are very thorough, and it's definitely worthwhile coding/making notes as you watch the video. I started with James Williamson's Essential HTML Training, then moved on to Simon Allardice's Essential Javascript. Once you have the basics, try and come up with a little side project of your own and just go for it. If you get stuck, there's lots of help available on places like StackOverflow.