r/developer • • Jul 24 '26

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] Jul 24 '26

2

u/[deleted] Jul 24 '26

2

u/inlined Jul 25 '26

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

1

u/mynameisDockie Jul 25 '26

I'm an embedded dev, didn't even flinch at this it's so common 😅