Re: Comments vs. "Extract Code"
Monday, December 22, 2003 06:31 AM
The rule of thumb should be that a method should perform one and only one unit of work. If it looks as though a method should perform multiple units of work then it should be split into multiple methods all of which should be called by an outer method whose unit of work would be stringing the other units of work together (i.e. invoking them). As an aside, even 'small' methods should be adequately commented. There's no such thing as self-documenting code.