《設計模式——可複用物件導向軟體的基礎》學習筆記(1.3)Describing design patterns

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.