Link Details

Link 24652 thumbnail
User 111696 avatar

By bloid
via blogs.msdn.com
Published: Jun 07 2007 / 18:05

The other day, I was reviewing a coworker's design for an area she was writing. As she was describing the responsibilities of each class, my attention was drawn to one in particular: "Why is this method in this class Foo? I mean, it's true that the operation does have something to do with Foo objects in general. But isn't a really specific method, one you'd expect the user of this object to be doing? It's a bit if you were to have this really app-specific string manipulation function, and then throwing it into the global string class even though no one else would ever need it".
  • 12
  • 1
  • 1000
  • 711

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.