r/developer • • Oct 02 '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?

15 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/Nunc-dimittis Oct 05 '26

With some #ifdefs inside to differentiate between versions of the product, sometimes overlapping a case!

switch(something):

...

Case 10:

....

ifdef A

....

Case 11: ....

endif

....

Case 12: ....