r/learnprogramming • • 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

297 comments sorted by

View all comments

Show parent comments

6

u/freerider Mar 08 '23

I spent 3 hours on a similar If clause:

a = 4;
if(a < 3);
{ 
     std::cout << "a is less than 4" << std:: endl;
}

2

u/aaachris Mar 08 '23

I missed that semicolon at first, but that would take some time to pin point on a working code.