# Message Chains

> Long chains of method calls that make code fragile.

- **Category**: Code Smells
- **Subcategory**: Couplers
- **Canonical URL**: https://designpattern.fyi/patterns/message-chains/

---

## Description
'**Intent**: Identify long chains of method calls (a.b().c().d()) that make code fragile to changes.

**Context**: You have code that calls methods on objects returned from other method calls, creating long chains that break easily.

**Solution**: Hide delegate objects using Hide Delegate, or extract methods to shorten the chains.'



## Use Cases
Use when method call chains are long and brittle.









---
**Reference**: [Original Source](https://refactoring.guru/smells/message-chains)

