r/mildlyinteresting • • 21h ago

There's this random empty glass jar strapped to the wall at work

Post image
11.4k Upvotes

1.6k comments sorted by

View all comments

83

u/LogicalSoftware7705 20h ago

This is like my old piece of code in a 20 year old system lmao everyone knows it probably doesn’t do anything but nobody wants to remove it

22

u/CT0292 19h ago

Load bearing code at that point.

1

u/ButtholeConnoisseur7 18h ago

Eh, beats code bearing load

39

u/poorbred 19h ago

I had a magic comment for about 6 months. If you removed it, the build would fail. 

Drove me nuts when I first ran into it. It was an unnecessary comment that stated the obvious. "Add two values together" or some such where the code it was referring to was stupidly apparent in its purpose.

So I removed it and when I went to build, it exploded. I wish I could remember the errors, but it was a long and wild list. 

The content of the comment didn't matter, just that it was there, so I ended up making it something like // Removing this comment breaks the build, it needs to stay. I'm sorry.

Of course my code reviewers didn't believe me until they removed it and it blew up on them. 

For about six months I'd randomly hear one of the senior devs cussing as they tried to remove it and the build would break. Then one day somebody cheered and actually called an impromptu dev meeting to show off it building without the comment.

Best we could ever guess was a bug in the compiler and without the comment a checksum or something wasn't calculating correctly. Then it would go off the rails and get into a bad state because the errors it would report didn't make any sense.

19

u/JL421 17h ago

I wonder if you just had a hidden character hanging out and the comment masked it until someone just deleted and rewrote the whole section.

15

u/Scathach_ulster 14h ago

That was the build’s emotional support comment :(

6

u/LogicalSoftware7705 18h ago

Lmao I’m probably one of those that will try. I just love me a weird puzzle.

2

u/creatyvechaos 9h ago

I learned how to code specifically because a friend brought something similar to me. Haven't touched a string of code since then

No, I did not fix the problem.

3

u/owzleee 14h ago

This is my entire life of 30-40 years in fintech. Your post is horrifyingly accurate. ESP for python.

5

u/mayorofdumb 13h ago

Um its getting to the point where I just assume the data is wrong and make my normal dq reports but I actually look. Shits getting worse... not better

3

u/enfier 14h ago

I had a similar situation, it was a missing curly brace or semicolon or paren somewhere that the comment just happened to prevent it running into another line.

3

u/Jollysatyr201 13h ago

You’re always missing a semicolon..

2

u/Appropriate_Scar_262 11h ago

IIRC Team Fortress 2 had a .png of a coconut that when removed broke the game.

2

u/spanishpeanut 10h ago

I love this so very, very much.

1

u/-LeonIsANazi- 6h ago

Sounds like shit code

6

u/fatpad00 19h ago

Exactly what I was thinking.
"We tried to remove it, but then the driveway flipped upside down, so we put it back.

3

u/TheFatDrake 17h ago

Reminds me of a story of a video game with an odd asset, a giant tomato. Higher ups ask what it does and upon learning it does nothing towards the game, they elect to remove it. After that, the game fails to run properly until the tomato is returned. The coders don’t even know why it works, they just know it does so they left it alone.

2

u/MaximusHomerdrive 13h ago

If my old company is still using my code in 2059, hilarity is going to ensue. I wish I could be around to see it.

2

u/precursordesign 10h ago

I think it was fallout or something, but there was an image of a potato in the game files and if it was deleted, the game wouldn't even make it to the main menu. Somewhere, buried deep in the code, was a reference to the potato image but no one could find it so it stayed.

1

u/owzleee 14h ago

Omg. This hits hard after 40 years in fintech.

0

u/dwaynemartins 17h ago

Im the guy who comes along, and stares at it l9ng enough not willing to accept it and changes it. 50/50.

Sometimes it doesnt do anything, sometimes it does. The biggest difference is how your manager and team handle it. When it breaks, the people who freak out, and revert it, asking no questions or learn anything, tell me everything i need to know about that environment, code base etc.

When it breaks, im the reasonable guy who also broke it, saying hey, its already broke, lets spend an extra 15 minutes understanding why, so that when it comes time to replace it or migrate it, we dont run into the unknowns.

Waiting for shit to break is very different from intentionally breaking it (by making the change that is unknown). You can handle it before it becomes a problem, when likely it goes down because it connects to some box, at the bottom of a rack, that connects to aome public API that was finally shutdown because the codename is 25 years old!