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

Kick Spy!, Kick Zeitgeist and Kick Widgets

48
kicks
published 1 year ago, submitted by jeremyjarrell jeremyjarrell 1 year ago

jeremyjarrell.com — Here's a simple way to remove all of those ugly switch statements and enums and to buy yourself a little more flexibility and testability as an added bonus!

Add a comment 2 comments | category: | Views: 21 | Get KickIt image code
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:
Good intro to the Strategy Pattern
posted by powerrush powerrush 1 year ago
This is a very good article. The example is simple to understand and yet also shows off the power available when utilising interfaces. I use enums a lot in my code and for most things they are great. I find they make code more readable but then you hit a scenario where you you have to extend an enum and there's a lot of additional work that comes with that.

John
posted by johnvbrennan 1 year ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge