this post was submitted on 27 Feb 2026
1005 points (99.3% liked)

Programmer Humor

30129 readers
230 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
[–] sunbeam60@feddit.uk 35 points 2 days ago (2 children)

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.

[–] ilinamorato@lemmy.world 6 points 1 day ago

I want to hear so many more of these stories.

[–] CanadaPlus@lemmy.sdf.org 3 points 1 day ago* (last edited 1 day ago)

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.

It's weird to me that programming practice has changed that much in 20 years. That's still closer to today than to Dennis Richie doing his thing.