# Data Clumps

> Groups of variables that always appear together should be extracted into objects.

- **Category**: Code Smells
- **Subcategory**: bloaters
- **Canonical URL**: https://designpattern.fyi/code_smells/data-clumps/

---

## Description
'**Intent**: Identify variables that always appear together in method signatures and function calls.

**Context**: You see the same group of parameters being passed around together (e.g., x, y, z coordinates or start date, end date).

**Solution**: Extract these clumps into their own class or object.'



## Use Cases
Use when the same group of variables appears together in multiple places.









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

