Bad Methods vs Good Methods
I found this blog posting via the Thoughtworks blog aggregator. The ideas is that “small methods do not necessarily mean good methods”:http://vivekvaid.blogspot.com/2006/09/small-methods-good-code.html. The author then follows this statement up with a list of examples:
* BAD: 1) boolean methods that don’t start with is or are, 2) boolean methods that throw exceptions
* GOOD: boolean isSomethingInThisState() or areTheseValuesGood() shoudl return true or false. For heaven’s sake don’t throw exceptions in these method types. They are named for a specific reason and have convey specific behavior expectations