this post was submitted on 27 Feb 2026
891 points (99.6% liked)
Programmer Humor
30053 readers
1829 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.