C03 · 設計模式 詳細 ROADMAP
計畫文件,不會被 Quartz 渲染。
回 foundations → ../index.md / 公開頁 → index.md
章節目標
GoF 23 個經典設計模式 + 現代 Concurrency / Integration Pattern。每篇包含:問題背景、UML / 流程圖、程式碼實作、實戰應用場景。
跟其他章分工:
🧠 知識型
F-A 創建型 Creational Patterns(5/5 ✓)
| # | 主題 | Slug | Stage |
|---|
| 01 | Singleton | 01-singleton-pattern | 🌿 |
| 02 | Factory Method | 02-factory-pattern | 🌿 |
| 22 | Abstract Factory | 22-abstract-factory-pattern | 🌿 |
| 12 | Builder | 12-builder-pattern | 🌿 |
| 21 | Prototype | 21-prototype-pattern | 🌿 |
F-B 結構型 Structural Patterns(7/7 ✓)
| # | 主題 | Slug | Stage |
|---|
| 07 | Adapter | 07-adapter-pattern | 🌿 |
| 19 | Bridge | 19-bridge-pattern | 🌿 |
| 17 | Composite | 17-composite-pattern | 🌿 |
| 05 | Decorator | 05-decorator-pattern | 🌿 |
| 08 | Facade | 08-facade-pattern | 🌿 |
| 20 | Flyweight | 20-flyweight-pattern | 🌿 |
| 06 | Proxy | 06-proxy-pattern | 🌿 |
F-C 行為型 Behavioral Patterns(10/11,Iterator 待補)
| # | 主題 | Slug | Stage |
|---|
| 13 | Chain of Responsibility | 13-chain-of-responsibility-pattern | 🌿 |
| 10 | Command | 10-command-pattern | 🌿 |
| 24 | Iterator(⭐ GoF 漏補) | 24-iterator-pattern | 🌱 |
| 14 | Mediator | 14-mediator-pattern | 🌿 |
| 15 | Memento | 15-memento-pattern | 🌿 |
| 04 | Observer | 04-observer-pattern | 🌿 |
| 11 | State | 11-state-pattern | 🌿 |
| 03 | Strategy | 03-strategy-pattern | 🌿 |
| 09 | Template Method | 09-template-method-pattern | 🌿 |
| 16 | Visitor | 16-visitor-pattern | 🌿 |
| 18 | Interpreter | 18-interpreter-pattern | 🌿 |
F-D 補充模式(GoF 之外,現代 / 資源管理)
| # | 主題 | Slug | Stage |
|---|
| 23 | Object Pool | 23-object-pool-pattern | 🌿 |
F-E Concurrency Patterns(新增,現代必要)
GoF 寫於 1994 年,當時沒有主流 concurrency 模式。2020+ 多核 / async 環境下這類 pattern 極常用。
| # | 主題 | Slug | Stage |
|---|
| 25 | Thread Pool | 25-thread-pool-pattern | 🌱 |
| 26 | Read-Write Lock | 26-read-write-lock-pattern | 🌱 |
| 27 | Producer-Consumer | 27-producer-consumer-pattern | 🌱 |
| 28 | Active Object | 28-active-object-pattern | 🌱 |
| 29 | Reactor / Proactor | 29-reactor-proactor-pattern | 🌱 |
F-F 現代 DI 與物件管理(新增,可選)
| # | 主題 | Slug | Stage |
|---|
| 30 | Dependency Injection(不是 GoF 但無處不在) | 30-dependency-injection-pattern | 🌱 |
F-G Functional Programming 概念(新增,跨 OO 的另一條軸)
GoF pattern 是 OO 為主。2020+ 前後端都大量用 functional 概念——不限單一語言,是跨語言的 paradigm。本節講概念,不是 language-specific 實作。
| # | 主題 | Slug | Stage |
|---|
| 33 | Immutability 核心概念 | 33-immutability | 🌱 |
| 34 | Pure Function / Side Effect | 34-pure-function | 🌱 |
| 35 | Higher-Order Function 實戰 | 35-higher-order-function | 🌱 |
| 36 | Functor / Monad(入門) | 36-functor-monad | 🌱 |
💣 Anti-pattern
| # | 主題 | Slug | Stage |
|---|
| 31 | Design Pattern 誤用 | 31-pattern-antipatterns | 🌱 |
🧰 對應檢查工具
| # | 主題 | Slug | Stage |
|---|
| 32 | Pattern 檢查工具 | 32-pattern-tooling | 🌱 |
章節進度統計
- 知識主題:原 23 + 6 新增 + 4 FP + 2 Anti-pattern/Tools = 35 項
- 🌿 growing:23(GoF 22 + Object Pool)
- 🌱 seed:12
本章內容範圍變更(2026-04):
- 補上漏掉的 Iterator(GoF 23 完整)
- 新增 F-E Concurrency Patterns 5 題(Thread Pool / RW Lock / Producer-Consumer / Active Object / Reactor)
- 新增 Dependency Injection(非 GoF 但現代必要)
- 新增 F-G Functional Programming 概念(Immutability / Pure Function / HOF / Functor-Monad 入門)
跨系列連結