Switch Statements with Enums best practice(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 4 years, 7 months ago

Thoughts about best practice for handling Switch statements using Enums

2 comments |category: |Views: 26

tags: another

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:

posted by .NetKicks.NetKicks(1304) 4 years, 7 months ago 0

Nice comments about OO_Design prinicples :-)

Reply

posted by DamienGDamienG(1405) 4 years, 7 months ago 0

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

Reply

information Login or create an account to comment on this story