this post was submitted on 06 Mar 2025
445 points (99.1% liked)

Programmer Humor

21016 readers
1572 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 14 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 56 minutes ago
[–] [email protected] 3 points 1 hour ago

There’s an exponential amount of time between each panel. 1 hour, 5 hours, 2 days for the answer.

[–] [email protected] 12 points 5 hours ago (1 children)

And I always think I write good comments until a year later I'm like these comments don't help shit

[–] [email protected] 1 points 1 minute ago

Try to write as if you are explaining the functionality to an unrelated 3rd party like a new hire.

[–] [email protected] 8 points 6 hours ago

Me during code reviews of other people

[–] Horrabin 28 points 8 hours ago* (last edited 8 hours ago) (1 children)

This is probably more accurate:

-Who the fuck wrote such a shit!

-WHO???

-...

-Oh... it was me...

[–] [email protected] 25 points 7 hours ago (1 children)

Me at a previous workplace.

-This is a piece of shit, who is the code owner of this module.

  • Ah, it's me ("inheriting" code ownership when someone left was common)

  • Who did this change

  • Ah, it was me

  • Surely I just made a minor change to this line here, who wrote the function.

  • it was me, it was me all the way down

Fits the general theme of the thread as it was not giving any trouble for a year before being found.

[–] [email protected] 19 points 7 hours ago (2 children)

The more frustrated you are when running git blame the more likely the command turns out to be a mirror.

[–] Horrabin 4 points 5 hours ago

This is where the programmer's way to humbleness starts :-D

[–] ulterno 3 points 6 hours ago (1 children)

Last time that happened to me, it was a mirror, but also not.

I had moved functions from one file to another without changing the contents. As a result, all those lines referred to me.

And since I started thinking, I found this

[–] [email protected] 1 points 19 minutes ago

Good link that, I'll have to add those flags to my list of aliases

[–] [email protected] 34 points 10 hours ago (1 children)

Accurate, except the bottom right panel only happens in very limited circumstances, hardly ever after a year has passed.

Source: I've been writing software since 1983 or so.

[–] [email protected] 6 points 9 hours ago

Yeah same, also I don't usually need a year to think that. The next day often works. 😅

[–] Reptorian 8 points 10 hours ago

Sometimes, I just rewrite my code until it is good enough. Other times, I leave it to my memory, so I can figure it out later. And others, I'm just not happy about it, like the times I did bigbin2dec and it would only work well with something like thread-ripper.