Link Details

Good things come to those who vote! Login and vote now.
Link 299937 thumbnail
User 301040 avatar

By gilf
via blogs.microsoft.co.il
Published: Nov 22 2009 / 13:08

Once in a while I’m stumbling on switch statements during a Code Review session. Whenever this is happening my first reaction is to understand why did the developer use it. Since using switch statement sometime implies spaghetti code and also can get very crowded (in case statements of course) in this post I’m going to show an alternative method that I pr...
  • 26
  • 5
  • 3216
  • 1664

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.