Symptoms
CausesYou might be trying to minimize coupling between objects. Instead of the called object being aware of relationships between classes, you let the caller locate everything; then the method concentrates on what it is being asked to do with the pieces. Or a programmer generalizes the routine to deal with multiple variations by creating a general algorithm and a lot of control parameters. What to Do
PayoffImproves communication. May expose duplication. Often reduces size. Contraindications
NotesThis is one of those places where a smell doesn't guarantee a problem. You might smell a Long Parameter List but decide it's right for the situation at hand.
|