I was not cut for programming when I started coding at the age of 9. As a typical very hyperactive kid , I lacked the ability not only to understand and write code but even more important, to physical sit down on a chair. I was a kid being… welll… a kid. Took me a year to figure out what a loop really is, I was mainly copying other’s people code and making small stupid utility applications which were nothing more than code examples. Yet I was the coolest kid in the block because back in 1988 , programming was pure magic for pretty much everyone.
When you start with the idea that even 1 line of code is amazing, it’s kinda hard not to be motivated, even if you are a very hyperactive 9 years old.
Nowadays I learn mainly through the usage of debuggers, I like to follow the execution, examining the data as it changes and follow the clues. It makes me feel like true Sherlock Holmes, trying to found out how I murdered a good functional code. In the end it’s not very different than when I started as I kid, I still take it one line of code at a time. I like to create my own development tools and libraries to help me code in and a bit easier way. I also like to use just pen and paper and make diagrams and mental maps that help me understand and remember how complex code works and is meant to be used.
In short, absolutely nothing special.
My secret is that I am still amazed I can write one line of code. I enjoy success in tiny things to keep me motivated and always to find a way that makes me love coding a bit more.
Stay motivated, that’s the only thing required. If you punish yourself for every mistake you make, you won’t be coding for long.