paint-brush
Flip the Switchby@tejasmanohar
495 reads
495 reads

Flip the Switch

by Tejas Manohar3mSeptember 24th, 2015
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Over the years, I’ve read (and heard) a lot of reasons why switch statements are <a href="http://ericleads.com/2012/12/switch-case-considered-harmful/" target="_blank">harmful</a>, <a href="http://debuggable.com/posts/code-insults-round-1---why-switch-blocks-are-dumb:4901d363-d210-482c-9794-65bd4834cda3" target="_blank">dumb</a>, and even <a href="http://c2.com/cgi/wiki?SwitchStatementsSmell" target="_blank"><em>smelly</em></a> (lol). I don’t like to hate on a particular feature, and Douglas Crockford explains exactly why in the first chapter of his legendary book <a href="http://shop.oreilly.com/product/9780596517748.do" target="_blank"><em>JavaScript: The Good Parts</em></a><em>-</em>

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Flip the Switch
Tejas Manohar HackerNoon profile picture
Tejas Manohar

Tejas Manohar

@tejasmanohar

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite