Coding is not to be learned by reading books and knowing theory, but by coding in practice. There are coding courses on these sites, however the real experience can be gathered on interactive coding lessons when you learn by doing coding.
How does it work?
The idea is to code during course. User gets short instructions and explanations and can write code to see how it really works. When something gone wrong with his code, he is instructed how to fix it. The learning windows looks as follows: