Videos are quite good since you easily follow what is happening
While learning something new, I'd prefer to have some kind of guide, so that I understand the basics properly. Later it's definitely the vast ocean of Internet.
20 years ago I'd have still said books are better, but today I prefer websites -- or even pdf's of books -- over actual print for one simple reason.
SEARCH. Good old ^F.
It's also part of why I dislike videos for learning, you can't search them and they're hard to refer back to. Part of why when people refer me to a video (which I find utterly useless in most cases for learning) the first words out of my mouth are "Do you have a transcript?"
I don't read many books. In general, I prefer to look up the specific things I'm stuck at or curious about. Or read the beginner guide / walkthrough / tour of whatever language or library I'm learning.
But coincidentally I did buy Types and Programming Languages yesterday. For getting a good overview of a new field, I think books may be a good way. It'd be only the second book this year.
Books are good, but the best books for me are the ones that guide you through hands-on coding exercises; and online learning systems are a better way to do that.
What I'm really saying is this will remain a personal question with no right and wrong answer. Some people learn best from books, others from tutorials, others from pairing. Most important thing is to find your learning style.
marvellous gwenzi
Learning web development
Drew Davis
Books (or rather, eBooks, really) are how I learned about programming to begin with. So I'd say I prefer them to an extent, but if you really desire interactability, online sites are definitely the way to go. I tend to retain more gleaning from a book.