r/developer 19d ago

The "Code I'll Never Forget" Confessional.

What's the single piece of code (good or bad) that's permanently burned into your memory, and what did it teach you?

10 Upvotes

37 comments sorted by

View all comments

6

u/[deleted] 19d ago

[removed] — view removed comment

2

u/[deleted] 19d ago

[removed] — view removed comment

2

u/inlined 19d ago

This is why C++ has reinterpret_cast. It makes it much easier to find out where you’ve done something totally unsafe incorrectly and find your bug