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

3

u/NomadStorm Oct 04 '26

A 3000 case switch statement.

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

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