Utility classes

I’ve long been wary when I see utility classes being added to projects, and I recently came across this article on using extension to avoid proliferation of utility classes.

Sometimes utility classes are fine (I’m a fan of Apache Commons Lang, for example), and extension often isn’t possible or doesn’t fit for various reasons. But once in a while I see utility classes and can’t for the life of me work out how it could have seemed to be a good idea to create them.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s