DEV Community

Discussion on: Is “Defensive Programming” actually healthy?

Collapse
 
andreasjakof profile image
Andreas Jakof

When I looked at the code and saw, that „redblinking“ will result in „go“, I immediately thought:“Oh F**k!“
I like your approach, but wouldn’t a switch be more readable? Making the „nevergonnagethere“ the „default“ of the switch?