DEV Community


Discussion on: Reverse switch?

xanderyzwich profile image
Corey McCarty

It seems really clever!

Clever code should not be used in production unless it is completely necessary, and then it should be commented/whitespaced in such a way to improve the readability. I'd never thought about this, and it does seem quite usable as long as you don't intend on using the code for more than 6 months or letting anyone else look at it.