r/learnprogramming • u/Total-Subject2763 • Mar 07 '23
Is it normal as a junior programmer..
To spend hours looking over the same block of code, trying to sort out ‘why the f*ck isn’t this working!?’, only to realize the error you made is so monumentally, and stupidly obvious that it leaves you feeling like a completely useless moron? Lol
1.6k
Upvotes
195
u/insertAlias Mar 07 '23
Last week, I spent almost an hour debugging a particular error. I could not, for the life of me, understand why a particular bug I was working on just wasn't being fixed with the code I just submitted. It was doing things that it shouldn't have been able to do with the edits I made.
My error? I forgot to save the file before running the "deploy to dev" script. I was debugging the previous version of my code.
Another common issue: I'll bash my head against something for hours. Then call in another dev to look at my issue, only to realize exactly what the problem is while describing it to them. It's called Rubber Duck Debugging, and it's normal, but damned if it doesn't happen to me practically every time. I even try to do it without the other person, but for whatever reason, it still happens.
I've been doing this professionally for 16 years. We all make dumb mistakes and miss obvious issues. You just try to do better in the future.