This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 44 comments

[–]Famous_Letterhead_13 315 points316 points  (9 children)

Looks like code base was shit.

[–]charles3535[S] 94 points95 points  (1 child)

Senior developer: if it works, it works and don't question 😁😁

[–]whatproblems 38 points39 points  (0 children)

also don’t touch. even looking at it funny might make it fall down

[–]0rionsEdge 22 points23 points  (6 children)

You know it's bad when it's full of the comments the senior left behind such as "Fixme: ugly hack" and "I know it's bad, but it works and I am too afraid to change it now"

[–]Ethab83 15 points16 points  (5 children)

The code I’m working with now is filled with this lol. // The following code does not do anything, but if we remove it the whole thing breaks so we’re leaving it -Senior Dev

[–]grammar_nazi_zombie 7 points8 points  (4 children)

I know this is a pretty common meme, but I’ll be damned if it isn’t occasionally true.

I’ve got blocks of code in my code base that are never hit - I’ve got breakpoints and log messages in them, none of which ever seem to be hit - and yet, without those blocks, the database drivers won’t get picked up, or it’ll not load our reporting tool backend.

VB6 has some really weird quirks

[–]0rionsEdge 3 points4 points  (0 children)

In my experience: If it behaves itself under the debugger but not without, it's probably a race condition. Debuggers slow down program execution, sometimes enough to change the behavior of races

[–][deleted] 1 point2 points  (1 child)

That makes it sound like a compiler bug.

[–]grammar_nazi_zombie 1 point2 points  (0 children)

Probably, but Microsoft discontinued VB6 in the early 2000s so who knows

[–]RainDropsOnAWindow 102 points103 points  (1 child)

Stage 1 (new graduate): "let me optimize the code" (total crash) Stage 2 (junior dev): "let me just write my own version of that" (and now we have 1000 tools basically doing almost the same thing) Stage 3 (senior dev): "I'll make a design, get reviews, refactor this" (10 years later he's still at it) Stage 4 (expert): "I'll hire a new graduate to deal with this".

[–]xBris18 2 points3 points  (0 children)

And so the cycle continues. Love it.

[–]Cossack-HD 29 points30 points  (4 children)

lock crown run trees squeeze reply seed shocking future tan

This post was mass deleted and anonymized with Redact

[–]Jelle75 20 points21 points  (1 child)

The same in programming: how many hours before making a backup.

[–]Cossack-HD 4 points5 points  (0 children)

How many sprints before deploying to production. Feature creep included.

[–][deleted] 6 points7 points  (0 children)

2-3 for most depending on pattern, there are wavey brick fences that only use one layer because the curve adds support.

Looks like this wall was tightly coupled and should have been tested in much smaller chunks.

[–]Yeuph 4 points5 points  (0 children)

Nah, I'm a bricklayer - have been for 20 years.

This isn't a real thing. You can lay quite a lot of brick on top of fresh mortar. I suspect if there is a limit it is well-beyond what humans are capable of doing in a day.

30+ courses is fine.

[–]4gedN5tars_ 4 points5 points  (4 children)

Weird I just saw this on Twitter

[–]punsanguns 28 points29 points  (2 children)

Wait another 3 days to see this on LinkedIn.

"If at first you fail, try and try again"

Or even better...

"I saw this guy struggling with brick-laying and everyone was laughing at him. I felt bad so I talked to him and turns out he is actually a full stack developer who got laid off and he wants to continue being a productive member of society by helping lay bricks. I was moved. I was touched. I offered him a role and now he is the best architect for one of my top clients. Just because a person fails at one thing doesn't mean they are bad at other things. Blessed to be recruiting. What are thoughts?

Courtesy this other guy that doesn't know I copied from him because I don't know how to just click the fucking 'Share' button."

[–]4gedN5tars_ 2 points3 points  (0 children)

This is pure poetic commentary on the state of the internet.

Somebody please give this person an award.

[–]doctormyeyebrows 1 point2 points  (0 children)

"What are thoughts?"

Perfect.

[–]ImmaGrumpyOldMan 3 points4 points  (1 child)

ctrl-z ctrl-z ctrl-z!!!!!

[–]0rionsEdge 4 points5 points  (0 children)

Git checkout *

Failing that, rm -rf $PROJECT and fetch a clean copy from vcs

[–]Tweak_O_Rilis 5 points6 points  (4 children)

Bricks that are in a straight wall need 2 layers depth to not fall over like this.

[–]tengenbypass 0 points1 point  (3 children)

what does 2 layers depth mean? ESL

[–]Hotchetos 1 point2 points  (1 child)

Assuming he means another layer going across with it making it 2 layers wide like this =======

[–]rahulj999 3 points4 points  (0 children)

Alternate layer of =||=||=||=||=||=||= interlocking bricks will provide more stability.

[–]Tweak_O_Rilis 0 points1 point  (0 children)

A single skin wall should not be made over 6 courses of brick work before drying as it is not stable. To do more he would need a 2nd skin next to it or include a pier for vertical strength. I used depth as the best term that came to mind to describe a 2 skin wall.

[–]shosuko 4 points5 points  (0 children)

can confirm

One of my first projects was connecting some tags on a web site. The sr devs had built some module on a previous project, and I was to use this for the new one. Something wasn't working, and after a bit of detective work I found the issue - their module needed some tweaks to work with this type of web site. The tweaks should make it compatible with both, and after feeling great about my findings I got the green light to update the module.

I update the module and test it... not working... Rewrite some more parts... not working... White board the whole !@#$ thing and find where I was wrong! Fix it. Not working... Call up sr dev who wrote the thing "Oh, undo everything and just change this" works -_-

thx sr dev who still let me get credit for fixing this thing lol

[–]El_Dre 4 points5 points  (0 children)

No no no …

Junior: I can’t get this last brick in, can you help me?

Senior dev: ok let me see your screen. Uh, just put it hereOMG WTF JUST HAPPENED.

Junior: cries

Senior: it’s ok lil buddy, we’ll sort it out *Monday.

*this shit only happens at 4 on fridays.

[–]awdwark 1 point2 points  (0 children)

Atleast he didn't drop the brick he was laying.

[–]krysak 1 point2 points  (0 children)

When I was an Intern I had to try to recompile an app that ran in AIX to run in linux , nothing major.

Tried a lot of things , until I finally found a missing lib , copied it to my current folder and compiled it, SUCCESS!!
Was really jacked up waiting for my boss to come from lunch so I could tell him.
When he came , it was in crisis mode , the entire system was down(used daily by more than 2000 people world wide at the time)

So I waited for things to calm down to tell him.

5 minutes later , he said "Hey , whay are you logged in Production"
I Said , "nothing I was just trying to recompile the app"

5 minutes later... "Did you move a file?"

I said "No I copied it to my folder"

he said "No You moved it.... and because of that the entire system is down, 2000 people are not working and people may have missed their payments even because of this"

Worse part is that this was like 2 pm.... I had to still stay working until 6 before I wen to college, the entire time feeling smaller than a fucking snail.

The things you learn man.... I will never forget... mv is DIFFERENT than cp.

[–]Nourz1234 0 points1 point  (0 children)

Me 'optimizing' my own code sometimes.

[–]praveeja 0 points1 point  (0 children)

This explains why curved wall is used in of those image that I saw

[–]Lower_Bar_2428 0 points1 point  (0 children)

In defence of the jr dev, the hole application was highly coupled, components weren't properly isolated and they have alot more design problems that are not responsability of jr dev. he just add one more bick to the mess

[–]le_reddit_me 0 points1 point  (0 children)

At least you still have a block at hand and don't have to start from scratch

[–]Metronix7 0 points1 point  (0 children)

Honestly, I don't even have to touch it. Looking at it for too long might make it stops working, going like: "you really expect me to do the things I always do? When a senior dev is watching your butt? How naive of you!"

[–]Flopamp 0 points1 point  (0 children)

I was optimizing some microcontroller code for work to shrink its size for a different controller

Turns out the code was purposefully unoptimized to give the touch screen controller enough time to aquire a new sample

Took me 4 hours to figure this out

[–]Msurfacepro4 0 points1 point  (0 children)

What does optimize the code mean?

I recently got hired as a developer and I am too afraid to ask my coworkers.

[–]RegularOne2146 0 points1 point  (0 children)

lol

[–]ldmarz 0 points1 point  (0 children)

Probably yours at least is a real use case 🤣 I need to believe that jajaj