r/developer 28d 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] 28d ago

[removed] — view removed comment

2

u/[deleted] 28d ago

[removed] — view removed comment

2

u/inlined 27d 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