The most fun way to learn coding is to pick and poke at code that you are interested in and then start a project that you want to accomplish. I also find that reading books or articles by the author of the language is far superior to reading just about anybody else’s writings. This was true for me with C, Python, and then the little C++ that I learned, my favorite introduction texts were written by Bjarne Stroustrup. The language authors seem to see the trees for the forests and you can get a better picture for what they care about in the language and the paradigm just seems a little clearer. K&R C was like this for me, and then some articles by Guido Van Rossum for Python that made a lot more sense and were more inspiring for me than some big fiddly tome.