Hey there. I feel you on not “getting it”. I think the answer lies within your first statement that I quoted. You’re not progressing, but you’re not being consistent. It’s not a coincidence
I’ve had the same thing, and it’s only since I’ve started doing more regular practice and recalling of the information, that I’ve become better.
Can you learn to drive a car having a lesson once a month? Sure, but you won’t pass in 6 months like others do. It’s a complex topic we learn, and we have to prepare our brains physically to take on this information.
We are no better prepared mentally to learn programming than we are playing the guitar, if you put in the consistent regualr practice, you will get better.
I always recommend reading books like A Mind for Numbers - Learning how to learn by Barbara Oakley. It doesn’t matter what you’re learning, it teaches more on how to learn. It’s easy to think “I just follow a course” or “I don’t need to learn how to learn”, but you’d be surprised.
Keep going, but increase your consistency… rather than do 5 hours once a week, try out 30 mins each day, just open a code sandbox somewhere, and recall what you learned the day before.
Have books lying around the house that you can easily pick up, but I have some technical books in most rooms that I pick up and read a concept for 10 mins a few times a day which helps.
Good luck, keep going!