IME to learn to program… you have to do programming.
That’s really it, you have to write code, and actively practicing the skills, do the repetitions (declaring functions, loops, branches) and build up the memory and mindset.
Reading other peoples’ code is also useful, so is theory (DS&A), but the doing is the learning.
Once you’ve had to copy or look up documentation on how to declare a function/method for the nth time, it’ll start sticking in your head.
IME to learn to program… you have to do programming.
That’s really it, you have to write code, and actively practicing the skills, do the repetitions (declaring functions, loops, branches) and build up the memory and mindset.
Reading other peoples’ code is also useful, so is theory (DS&A), but the doing is the learning.
Once you’ve had to copy or look up documentation on how to declare a function/method for the nth time, it’ll start sticking in your head.