Sure...The basic argument (made on Google's site about unit testing Java code) was that static methods are relics of functional programming, and that they don't really belong in object-oriented programming. I don't remember all of the points they made in favor of this argument, but I remember that they made sense.
I think there may be some exceptions to this rule, like the use of static methods to construct objects, but I'm starting to question my habbit of creating a bunch of static utility methods. Here is the link to the Google article on why static methods are death to testability in Java code: http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/ Here is the link to Google's guide to writing testable code in Java: http://misko.hevery.com/code-reviewers-guide/ I hope this information is useful. I'm sorry that I didn't post it earlier. SS On Wed, Jan 14, 2009 at 4:14 PM, Stefan Steiniger <sst...@geo.uzh.ch> wrote: > well.. can you share what was questioning it? > > > Sunburned Surveyor wrote: >> Thanks for the comments guys. I'll leave it in my plug-in for now. >> After some thought, I may move the methods to a utility class in one >> of the packages mentioned. >> >> Some recent things I read have me questioning the use of static >> utility methods. I have decided against them completely just yet, but >> I'm trying not to use them as much as I did before. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel