Archive for May, 2011

Private static methods might be a smell
Wednesday, May 4th, 2011

I was extracting smaller methods out of existing big ones, in a class I was working on. Some of these extracted methods became “utility methods”: they would perform some operation on the parameters given to it, but not use any of the fields in the class. These methods could just as well have been static. [...]