Play the long game when learning to code
stackoverflow.blog
stackoverflow.blog
So many current situations where this applies...
Suppose my advice to any coders looking for it or aspiring ones, is to keep it fresh and to always seek Something new, even if you’ve forgotten some ways you’ve built before. It may lead you to a door you haven’t traveled through before. To me that’s what this is all about. Starting somewhere and keep seeking doors.
Huh. I don't know any programmers (novice or otherwise) who spend time memorizing syntax.
That said, IME, the best way to learn programming is by doing. Even if you know only the very basics, just start working on projects, and you'll learn more concepts and features as and when you need them, look them up, and implement them.
I almost define senior engineers by their experience dealing with issues more than anything else.
I find for me the Feynman technique works best for learning. Basically it says, assume you know everything needed to do the work or teach someone else about it, then go do the work or try to teach someone (by writing a blog post for example), and continue until you face a blocker where you actually don't know how to progress or don't know enough to teach that part, then go read just enough to get unblocked, rinse and repeat until you know it all.
What I like about this is that it maximises the search space to spend your learning effort on what really matters. Otherwise it's easy to say... spend too much time on early chapters and not enough on later ones for example.