Files
nexus/wiki/concepts/DRY原则.md
2026-04-14 16:02:50 +08:00

19 lines
324 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "DRY原则"
type: concept
tags: [编码, 原则]
sources: [dev-experience-standards]
last_updated: 2026-04-14
---
## Definition
Don't Repeat Yourself不重复代码原则。
## 实践
- 提炼公共逻辑
- 避免复制粘贴
- 模块化复用
## Connections
- [[单一职责]] ← 关联 ← [[DRY原则]]