Some links about learning to code:
To be continued
Just to put my two cents in: I started writing some lists of instructions in 1977, with an HP25. In 1979, at graduate engineering school, I was taught TI's 9900 assembly language, FORTRAN, Pascal and Epsimone, and played with BASIC, COBOL and Prolog. Later, I learned (or, more precisely for some of them, I used) Sail, C, Bliss, and some additional assembly languages. I went on with C++, Object Pascal, Java, and again some assembly languages.
Nowadays, looking back at the past, I can say that most of the code I wrote before 1990 was garbage. So, it took me more than 10 years to learn how to produce reliable and easy to maintain code. And it would have taken even more if I hadn't worked with people who taught me a lot. Some of them were (and are still) very good developers (thanks, Bernard, Jean-Marc, Ernesto...) Some others were not developers, but were always looking for more quality, reliability and customer satisfaction (thanks, Gérard).