`
Poechant
  • 浏览: 212136 次
博客专栏
Bebe66e7-3a30-3fc9-aeea-cfa3b474b591
Nginx高性能Web服务...
浏览量:23496
5738817b-23a1-3a32-86de-632d7da73b1e
Cumulus实时媒体服务...
浏览量:21406
社区版块
存档分类
最新评论

《设计模式——可复用面向对象软件的基础》学习笔记(1.3)Describing design patterns

 
阅读更多
1.What is important to describe DP
(1)Graphical notations capture the end product of the design process.
(2)We should record the decisions, alternatives, and trade-offs that led to it.


2.The way to describe DP
Each pattern is divided into sections according to the following template. The template lends a uniform structure to the information.
(1)Pattern name and Alias:名称和别名
(2)Classification:类别,便于理解。
(3)Intent:目的
(4)Motivation:a scenario about the problem and solution.
(5)Applicability:适用性
(6)Structure:图形的方式说明结构
(7)Participants:用到哪些类或对象,各自功能
(8)Collaborations:各Participants如何实现功能
(9)Consequences:为什么用这个DP?从results、trade-offs等方面入手
(10)Implementation:实现该DP时要注意的pitfalls、hints和techniques
(11)Sample Code:样例代码
(12)Known Uses:实际案例
(13)Related Patterns:相关DP
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics