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

2.2k

u/RubbishArtist Mar 07 '23

It's normal as a senior programmer too

494

u/captainAwesomePants Mar 07 '23

Can confirm. Been a senior dev for years. Have lost days to a single semicolon or using the wrong variable or something.

123

u/nedal8 Mar 07 '23

I spent HOURS the other day, trying to figure out why this websocket wasn't working right.. turns out I never deleted the old instance when I rescoped it.. So there were two with the same name.. Still not sure how that even ran.

22

u/toferdelachris Mar 08 '23

This sounds like a nightmare scenario. That’s when it boils down to “shut the whole damn thing down and restart”

What’s that? Production server? Did I stutter? Shut it all down!

136

u/chaoticbean14 Mar 07 '23

an IDE saves a ton of time in some of these cases...

Literally big red "You missed a semicolon" or "this variable isn't used", etc.

Once I started using tools like that? My time spent programming dropped through the floor. Of course, my time spent just thinking about the efficiency of the code - went through the roof.

But it's very rare I make those kinds of mistakes now - and when I do time wasted on them is extremely small.

123

u/[deleted] Mar 07 '23

an IDE saves a ton of time in some of these cases...

Sure, but vim puts hair on your chest

/s

15

u/IlliterateJedi Mar 08 '23

For partial chest hair, use IdeaVim

17

u/tukanoid Mar 08 '23

For 65% use helix

11

u/mandradon Mar 08 '23

That gives you a different kind of cred because it's written in RUST!

7

u/[deleted] Mar 08 '23

Blazingly fast

→ More replies (1)
→ More replies (1)

41

u/UpbeatCheetah7710 Mar 08 '23

Who’s hair?

19

u/cthulhujr Mar 08 '23

I screamed

17

u/a_reply_to_a_post Mar 08 '23

i only vim on prod and copy random stack overflow copypastas into the shell like "hope this works!"

18

u/[deleted] Mar 08 '23

This guy devs

→ More replies (1)
→ More replies (3)

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.

→ More replies (7)
→ More replies (15)

15

u/a_reply_to_a_post Mar 08 '23

these kids these days don't even use semicolons in javascript anymore

sick little bastards and their eslinting

→ More replies (5)

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;
}
→ More replies (1)
→ More replies (7)

72

u/johnbburg Mar 07 '23

As a senior, your should be sure to blame other people's documentation and APIs first before you realize it's your mistake.

16

u/PaulCoddington Mar 08 '23

Don't forget to report it as a bug: the moment you have clicked the submit button you will have an epiphany that reveals exactly how you stuffed up.

5

u/a_reply_to_a_post Mar 08 '23

As a senior, your should be sure to blame other people

this is called "fucking your way to the top"

→ More replies (2)

15

u/SalamanderOk6944 Mar 07 '23

25 years of development experience. I'm an idiot.

Actually, I'm pretty quick and amazed at how quickly I can dial in on the root problem of an issue.

But

Sometimes I get stumped on things, take the really long way around, have no idea how to even initially ask about a challenge I'm facing, try a million wrong things.. because it's fun to understand.

That said, if it's work related, then time is a factor, and I'll make sure someone is updated to my progress. I may have to switch priorities.

14

u/a_reply_to_a_post Mar 08 '23

right there with you...20+ years of imposter complexing my way to a paycheck

i get asked to mentor new devs and i kinda let them know right away i really don't know shit, i've just been around long enough to make some semi educated guesses and break things down in a way that can be digested by idiots like myself

5

u/daerogami Mar 08 '23

break things down in a way that can be digested by idiots like myself

therein lies the wisdom

7

u/we_are_ananonumys Mar 08 '23

Saw this spectacular tweet once, something like “junior developer means everyone can see why your code is wrong. Senior developer means no one can see why your code is wrong.”

5

u/EatThyStool Mar 07 '23

The rage and disappointment never changes.

→ More replies (3)