@cryptopus I've been programming for years and the solution that helps me understand the most is by talking to myself while I code. Constantly questioning and answering myself the code that I've written. It sounds crazy but it works for me!
Try Rubber Ducking when you're stuck! https://en.wikipedia.org/wiki/Rubber_duck_debugging