DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 637 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

16
kicks
published 1 year, 6 months ago, submitted by dwhittaker 1 year, 6 months ago

devlicio.us — Thoughts about best practice for handling Switch statements using Enums

tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Nice comments about OO_Design prinicples :-)
posted by .NetKicks 1 year, 6 months ago
Yeah that was be.

The best practice for using Enums is to not use them but consider subclasses, state or strategy patterns as recommended by Fowler in Refactoring.

[)amien
posted by DamienG DamienG 1 year, 6 months ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads by The Lounge