Geoffroy’s Weblog

November 2, 2010

Static Methods are a Code Smell

Filed under: Coding Best Practices — gseive @ 8:31 pm

Resharper signals those methods in a class that can be made static. It’s rarely a good idea to follow blindly its advice. In an object oriented system work gets done by objects collaborating with one another. Behavior happens at the instance level. What happens at the class level should be the exception rather the norm.

http://searchwindevelopment.techtarget.com/tip/0,289483,sid8_gci1395284,00.html?track=NL-150&ad=752477&asrc=EM_USC_10977590&uid=6036330

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.