this post was submitted on 20 May 2026
1029 points (100.0% liked)

Programmer Humor

31506 readers
1438 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 50 comments
sorted by: hot top controversial new old
[–] thirstyhyena@lemmy.world 22 points 6 hours ago (1 children)

As the sole programmer of a certain project, I often leave rant comment on what the previous programmer was thinking.

[–] ScriptSage@lemmy.zip 4 points 17 minutes ago

I was complaining to my friends about how bad the programming was on a project I was wrapping up and then they asked, "Isn't this a personal hobby project?" yes it is.

[–] NigelFrobisher@aussie.zone 9 points 6 hours ago

Also, the previous engineer was me.

[–] AllHailTheSheep@sh.itjust.works 9 points 6 hours ago

I wrote code today I know I will have to touch in 2 weeks. I'm already dreading it. that shits a mess.

[–] Ensign_Crab@lemmy.world 83 points 12 hours ago* (last edited 11 hours ago) (1 children)

especially your own code.

"This is obvious" I said. "Surely I won't need to comment this," I said.

[–] Feathercrown@lemmy.world 68 points 11 hours ago
[–] rockSlayer@lemmy.blahaj.zone 195 points 13 hours ago (17 children)

god, this code is awful. Who wrote this?

git blame

Oh

[–] Feathercrown@lemmy.world 55 points 11 hours ago (3 children)

I love that they called it "blame" lol. They knew what it would be used for.

[–] myotheraccount@lemmy.world 17 points 11 hours ago

Subversion tried to call it "annotate", but that didn't stick ;)

[–] affenlehrer@feddit.org 14 points 11 hours ago

Not sure if was there from the beginning but it was originally developed by Linus Torvalds and he can be quite harsh to the Linux contributors.

load more comments (1 replies)
[–] jubilationtcornpone@sh.itjust.works 6 points 7 hours ago (1 children)

Past me was a moron sometimes.

[–] InternetCitizen2@lemmy.world 8 points 7 hours ago

Still am. But I used to too

[–] hdsrob@lemmy.world 89 points 13 hours ago (2 children)

Been writing the same software for 20+ years now, don't even need git blame to figure out what asshole wrote this shit.

[–] SystemDisc@lemmy.dbzer0.com 12 points 11 hours ago

Why is it always me? Haha

[–] Feathercrown@lemmy.world 6 points 11 hours ago

Yup there are certain patterns that I can just tell

[–] NotSteve_@lemmy.ca 21 points 11 hours ago (1 children)

That exact chain of events happened to me at my last job and I audibly laughed realising it was my own code. To my own credit though, it was a file I had written four years prior which at that point was more than half my whole career in the past

[–] some_designer_dude@lemmy.world 22 points 10 hours ago

If you aren’t ashamed of your work a year ago, you’re stagnating!

Sometimes you don't even recognize your own trash, 6 weeks later.

[–] dan@upvote.au 10 points 11 hours ago

These days I see so much AI slop that my reaction when I see code I hand-wrote myself is "hey, that's pretty good".

My team's code is great, but we use a lot of shared code written by other teams, with varying levels of quality.

load more comments (11 replies)
[–] WesternInfidels@feddit.online 52 points 13 hours ago* (last edited 13 hours ago) (14 children)

I go back and look at my old code and find it clear and beautiful, easy to understand, a pleasure to read. "Ah yes," I'll say to myself, "that approach was clever and elegant. Gosh, past me was pretty smart!"

I like to appreciate it in this manner. Because that way, for a moment at least, I can forget about how it doesn't actually work.

[–] chocrates@piefed.world 3 points 8 hours ago

I love when someone opens a bug in my code and I get to "how the hell did this ever work?"

[–] MonkderVierte@lemmy.zip 15 points 11 hours ago

But it would work beautifully, if it would work.

load more comments (12 replies)
[–] TrickDacy@lemmy.world 12 points 11 hours ago

I don't think you have to be a software engineer to understand that people do shit half-assed.

[–] aeronmelon@lemmy.world 21 points 12 hours ago (4 children)

Electrical engineer: “what was that other guy thinking?”

Software engineer: “What was I thinking?” (It’s code from last night)

load more comments (4 replies)
[–] rumba@lemmy.zip 15 points 12 hours ago (4 children)

I watched a team invent a new language to get around updating some eccentric code.

They could have sat down and commented it and made their changes

They could have refactored what was there.

They could have scrapped it and wrote fresh

Instead, they designed an entire natural language system so that non-programmers who were writing in XML could just write in English.

They ended up making so many required keywords as helpers that the non-programmers kept using the old system because the XML was easier for them work with.

Note: wasn't my code, wasn't my dept, when I heard the plan I went to check it out, the old system was functional but like C- work at best. At some point, they wrote a compiler for the new system.

[–] applebusch@lemmy.blahaj.zone 5 points 10 hours ago (1 children)

inventing a new language is almost never the right solution. there was a guy at my last job who tried to do this pretty much every time he ran into a problem with some shitty legacy software he had to work with. rather than take the time to fix it to do what he needed, he took ten times longer to slap another layer of custom bullshit on top of it. ultimately it came down to him being a really shitty engineer too afraid to change existing code, too lazy to do his due diligence, just clever enough to implement a shitty workaround, but not clever enough to realize how shitty it was. everything he made barely worked, was way overcomplicated, and no one else even wanted to try to learn his arcane bullshit syntax.

[–] rumba@lemmy.zip 3 points 8 hours ago

We do all look at code, get immediately annoyed that it doesn't just make sense. most of us at least have the wherewithal to stick with it and work on the engine as it sits :)

load more comments (3 replies)
[–] bedwyr@piefed.ca 7 points 11 hours ago (1 children)

Electricians are a rather self-impressed bunch in my experience, like I would rather drink with a couple plumbers than electricians.

[–] SirSamuel@lemmy.world 7 points 9 hours ago (1 children)

Electricians think their way is the only way. Get three electricians together and you'll get four ways of running the conduit, and a six hour argument. Electricians are constantly upset because "those bastards in HVAC put the ductwork in my way". There are three types of screw an electrician will run into in the field, which is why the average electrician owns forty-seven screwdrivers.

Plumbers only need to know three things:

  1. Poop rolls downhill
  2. Payday is Friday
  3. Don't chew your fingernails

Oh, and if you want to piss off a pipe fitter, call them a plumber

Whatever sense of self-importance a person has can't survive the first day spent snaking shit out of a sewer pipe.

load more comments
view more: next ›