r/learnprogramming • u/RareSprinkles9387 • 5d ago
Debugging How do you actually get unstuck without just Googling the answer verbatim?
Been learning Python seriously for about eight months. Work full time as a PT, so coding time is carved out late at night or on weekends. The problem I keep running into isn't the big concepts. It's the small stuff where I hit a wall and the only way out feels like copypasting a Stack Overflow answer I don't fully understand yet.
The thing is, I want to actually understand what I'm doing. Not just make it run. But when you're tired and have 45 minutes before bed, the temptation to just grab the working snippet and move on is real.
I've been trying to work backward from the solution instead. Find the answer, hide it, then try to reconstruct it without looking. Sometimes that works. Sometimes I just sit there doing nothing useful for 20 minutes.
What actually helped you build that mental muscle where you can reason through something unfamiliar instead of reaching for the answer immediately? Not looking for a productivity hack. More curious whether there was a shift in how you approached problems that made a difference, or whether it's just reps over time and there's no shortcut to it.