Mike’s Dump

September 10, 2005

The Evils of Helper Classes

Filed under: Code — mikesdump @ 3:38 am

I came across a couple of good posts here and here on helper classes.
Although I don’t believe helper classes should be thrown out altogether
it is easy to abuse them. In the Java project I was working on recently
there were a couple different helper classes (using the term loosely
here) I refactored into a single singleton class (another one of
those practices you don’t want to overuse). By creating a new class and
renaming the methods to provide a better abstraction eliminated the
need for the two helper classes. The posts along with the comments are
well worth the read.

About these ads

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: