Auto-sync: 2026-04-22 12:02

This commit is contained in:
2026-04-22 12:02:55 +08:00
parent 143d1fd105
commit b1e6af2458
54 changed files with 2882 additions and 503 deletions

View File

@@ -0,0 +1,28 @@
---
title: "模块化编程"
type: concept
tags: [software-engineering, architecture, modular-design, code-organization]
sources: [开发经验与项目规范整理文档]
last_updated: 2025-12-30
---
## Definition
**模块化编程** 是一种将程序划分为独立、可复用模块的软件开发方法。每个模块有明确的职责边界,通过定义良好的接口与其他模块交互。
## Core Principles
- 高内聚:模块内部元素紧密相关
- 低耦合:模块之间依赖最小化
- 清晰接口:模块通过公共接口通信
- 独立部署:模块可独立开发、测试和部署
## Related Concepts
- [[单一职责原则]] — 模块化的设计基础
- [[DRY原则]] — 模块化的目标之一是提高复用
- [[微服务架构]] — 模块化的架构级别应用
## Source Reference
来源:[[开发经验与项目规范整理文档]]