When I was an undergrad taking an advanced class about probability theory, I asked my professor for help understanding the bigger picture. I could solve each of the problem sets, but I couldn’t see the bigger the picture. Why the hell are we doing this? The professor told me something like “Oh don’t worry, somethings are just impossible to fully understand the first time. Once you take a second and third class that uses these ideas the bigger picture will come together”
I have found this mindset to be incredibly true. Rather than philosophizing about the optimal way to learn to code (or anything) just:
1. read/take a class about the subject
2. use the ideas you learned
3. goto 1
While it seems inefficient, I think it can be a very natural way to learn and avoid all catch-22 situations