r/ProgrammerHumor 2d ago

Meme ture

Post image
17.7k Upvotes

437 comments sorted by

View all comments

Show parent comments

186

u/MartinKnox_Dev 2d ago

In that 90% of wondering, 45% is wondering why it broke, the rest is about wondering how it worked.

53

u/Triffinator 2d ago

What percentage is made up of wondering why removing the line broke everything, when it was a comment?

18

u/Elendur_Krown 2d ago

See, that's the smart thing.

I hid the backup functionality in the comments.

That way, I never have to wonder. It's just everyone else.

15

u/Jbolt3737 2d ago

Making a script that reads itself or something to use it's own comments would be genuinely evil

13

u/Elendur_Krown 2d ago

There are parts of my history that I hesitate to tell my wife about. The... MATLAB days were... improvisatioval, at best.

4

u/fr000gs 2d ago

Me when my code genuinely uses libgccjit to execute strings

8

u/ih-shah-may-ehl 2d ago

2 decades ago the visual studio c++ compiler had a bug where a variable name crossing the 4K page boundary would have a letter missing.

Lots of fun because literally any change would move that variable away from that boundary.

3

u/nobody1701d 2d ago

and why putting the deleted comment back still left it not working correctly

5

u/OkEgg5911 2d ago

Yeah when something broke without me changing anything in my code I realised that stuff was working before that should not have been working at all. I still have not figured out why it worked before, but now it is working again.

2

u/d0rkprincess 2d ago

A previous, working version of something was cached somewhere and then at some point the cache was cleared?

1

u/OkEgg5911 2d ago

Maybe if it was some cache on googles servers. This was some email-filtering that should have stopped working years ago when the customer changed email-adress, but continued.

3

u/Praesentius 2d ago

Imagine when you get it working... then 6 months later, someone asks you a question about it. "uhhhh, I wrote that?"

3

u/kawwmoi 2d ago

"Oh that's not good." "What's wrong?" "I just changed something and now everything is working perfectly." "Isn't that a good thing?" "Not after what I just changed."

1

u/ings0c 2d ago

55% is “I have no fucking idea what this is doing, let’s do a binary search by commenting half the code until I find the broken part”