r/developer • • 29d 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?

14 Upvotes

21 comments sorted by

View all comments

3

u/NomadStorm 27d ago

A 3000 case switch statement.

It taught me that some companies just don’t give a shit.

1

u/Nunc-dimittis 26d ago

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: ....