Tuesday, June 07, 2005

Strategy 7 - Method longer than 10 lines

If your method is longer than 10 lines you might be on the verge of being procedural.

Try using the extract/compose method refactoring (basically your method indentation should be a most one deep). Then look to see if those pieces you removed could be moved elsewhere.


Post a Comment

<< Home