Message Chains

This smell occurs when an object is acquired by a series of object getters. Such a message chain indicate that the client is coupled to the structure of the navigation and thus, any change to the intermediate relationships causes the client to change.


M. Fowler, “Refactoring: Improving the Design of Existing Code”. Addison-Wesley, 1999.

Design Smells


All rights reserved (c) Tushar Sharma 2017-23.