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
16
u/patternboy Mar 08 '23
I'm experienced with R but a relative novice with python. I've never done any programming without an IDE, but yesterday I was reminded of the limitations of IDEs quite painfully. I spent hours trying to solve a problem with a set of dictionaries not being populated properly using a set of nested for loops. I understand this is a relatively simple task for any professional developer/data person. I'd never done such a complicated set of nested loops before though, iterating through several different lists/dictionaries of different lengths to be consolidated (all originating from a powershell subprocess stdout string).
It turned out that a totally correct line was just indented one loop too deep and this was messing up the loops. Literally a backspace solved the whole thing. But the IDE didn't help any as there was nothing wrong with the syntax. I of course felt the excitement once it finally worked, but also felt frustrated and stupid, and retired to bed at 4am and had recurring dreams about solving problems with key:value pairs that I had already solved.