Learn to Code by Building Projects
This is a neat idea, but I'd recommend starting on an altnerative. Pick an open source project and modify its behavior. It will serve as a code style corpus to guide the process, and it's already a polished product, so you don't have to get into the nitty gritty of the last 20%.For a more concrete example, I learned php by creating a phpbb instance for my friends and then making addons/changing how it worked. The ratio of work done to results accomplished was high.It's also very valuable to learn how codebases might be laid out and how to just find the parts you want.