Smells of Tangling: Reaching Through Objects
When code reaches through one object to another to get an answer (booking.member().plan().price()), one small rule change touches every place that reaches, and one is always missed; the smells of tangling all come from code that knows too much about other objects, and their cures move the knowledge to where it belongs.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- coupling, Law of Demeter, Message Chain, OOP, Shotgun Surgery, software-development