# Comments

> Excessive comments that should be replaced with better code.

- **Category**: Code Smells
- **Subcategory**: Dispensables
- **Canonical URL**: https://designpattern.fyi/patterns/comments/

---

## Description
'**Intent**: Identify when comments are used to explain complex code that could be simplified.

**Context**: You have code that requires extensive comments to understand. The comments indicate that the code itself is unclear.

**Solution**: Refactor the code to be self-documenting. Use Extract Method to simplify complex logic, and rename variables and methods for clarity.'



## Use Cases
Use when code requires extensive comments to be understood.









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

