Utility Methods - Are They The Devil?

Awhile back I posted a blog on string comparisons.  The number of comments on that blog also spawned debate at AZGroups.  One of the intriguing manifestations of the debate was regarding the use of utility methods in general.

Some of the comments regarding utility methods go like this:

"Nothing but a wrapper around existing and proven framework code"

"No need to create utility methods that are less than 3 lines of code"

"Introduces unnecessary overhead"

Some replies practically suggested how evil such methods were.  It got even more interesting when Extension Methods entered the picture.

For what it is worth, I will continue writing utility methods, despite the horns growing above my ears.

Published Saturday, July 14, 2007 11:59 PM by Palermo4
Filed under: ,

Comments

# Utility methods, utility classes, common classes - a blob is not an abstraction

Tuesday, July 17, 2007 10:00 AM by Jeffrey Palermo [MVP]

I have to pick on my good friend, J. Michael Palermo IV . In his recent blog post, "utility methods

# re: Utility Methods - Are They The Devil?

Monday, August 27, 2007 12:42 AM by Vikram

I personally Like the idea of Utility methods. and specially  when they are being used in many places. If we do not have these helper methods and we have to change the functionality(that should have been written in the utility method) then its a real big pain.

Leave a Comment

(required) 
(required) 
(optional)
(required)