design-patterns-principles
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDesign Patterns & Principles
设计模式与原则
Overview
概述
Provide concise, consistent explanations of patterns and principles using local reference documents.
使用本地参考文档,提供简洁、一致的模式与原则解释。
Quick Workflow
快速工作流程
- Identify scope: patterns, principles, or both.
- Load relevant references: and/or
references/design-patterns.md.references/design-principles.md - Respond in Chinese with short sections.
- For patterns: 定义 / 适用场景 / 优缺点 / 典型实现
- For principles: 定义 / 适用场景 / 落地要点
- If the user asks for depth or concrete examples, ask one clarifying question before expanding.
- 确定范围:模式、原则,或两者兼具。
- 加载相关参考文档:和/或
references/design-patterns.md。references/design-principles.md - 以中文分小节回复。
- 针对模式:定义 / 适用场景 / 优缺点 / 典型实现
- 针对原则:定义 / 适用场景 / 落地要点
- 如果用户要求深入内容或具体示例,先提出一个澄清问题再展开。
Common Mistakes
常见误区
- Confusing architecture patterns with design patterns. If the request is about system architecture, clarify scope first.
- Mixing pattern names. Verify the pattern exists in the references before answering.
- 将架构模式与设计模式混淆。如果请求涉及系统架构,先明确范围。
- 混淆模式名称。在回答前先确认该模式在参考文档中存在。
Resources
资源
references/design-patterns.mdreferences/design-principles.md
references/design-patterns.mdreferences/design-principles.md