mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-27 21:22:55 +08:00
7 lines
435 B
Plaintext
7 lines
435 B
Plaintext
---
|
|
description: This rule enforces the Don't Repeat Yourself principle to avoid code duplication and improve maintainability.
|
|
globs: **/*.*
|
|
---
|
|
- Follow the DRY (Don't Repeat Yourself) Principle and Avoid Duplicating Code or Logic.
|
|
- Avoid writing the same code more than once. Instead, reuse your code using functions, classes, modules, libraries, or other abstractions.
|
|
- Modify code in one place if you need to change or update it. |