this post was submitted on 27 Feb 2026
1030 points (99.4% liked)

Programmer Humor

30077 readers
2000 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] ilinamorato@lemmy.world 82 points 18 hours ago (3 children)

First Dev: "Oof. Uh...hm. Ok. So...no, give me a second, I'm thinking...So, the player character already has an attribute for a familiar that we're not using, since we removed familiars from the game. We could use that as a scarf, I think. One of the options was a tiger that walked next to the character, we could translate that up and around to the neck. Animation would be tough...could we come up with some reason why the scarf sticks to his shirt? ...no? How about a reason why it's always fluttering behind him? ...ok. So yeah, that should work...I think. We're a month out from code freeze, so we won't be able to do much with it other than put it in."

After launch

Project Manager: "Hey, people on Twitch have discovered that some of the player's clothes disappear randomly if you lose to the lich in level six...?"

Second Dev: "Weird. I'll take a look..."

Second Dev, in Slack: "Hey, does anyone know why all of the neck-slot customization items are coded as cats? Turns out the Dog Lich still deletes cat familiars if you lose to it."

[–] sunbeam60@feddit.uk 22 points 10 hours ago

Been there, so many times.

Late in Perfect Dark Zero’s development (a complete shitshow to get launched for X360 day 1) we added something called “kill planes”, behind which all entities would get nuked. The aim was that you would physically move through the world and eventually get to “no turning back” points, behind which we could remove all entities to save some cycles.

Turns out there were a large amount of places that assumed that once they had a pointer to an entity that pointer would remain valid.

So yeah, code that was like “I’ll just flip this bit on this entity I kept track of” was now flipping random bits on memory.

These were fun to chase down.

In the end we inplemented NoTaD pointers (“notified on target destruction”, essentially weak pointers but this was back in the day when weak pointers and smart pointers weren’t really well defined) that would discover when the thing they took a precious pointer to was actually no longer valid.

[–] ZombiFrancis@sh.itjust.works 18 points 17 hours ago

Also a cautionary tale on adding and removing features without plan or controls. Every 'hey could we add...? It's what everyones talking about!' is another step taken away from the design.

[–] AnarchistArtificer@slrpnk.net 10 points 16 hours ago

Oh man, this has really cracked me up. You made me laugh so hard I was at risk of waking up my housemates