读书笔记
fat_how
这个作者很懒,什么都没留下…
展开
-
Design Patterns Explained (1) - Tranditional Design
Part II? Limitations of Traditional Object-Oriented Designed作者举了一个需求的实例, 并在此需求上用OO方法给出一个设计方案.这个方案虽然使用OO方法设计的, 但还是作为反面教材给出的.在下面的章节里作者应该会给出符合Design Patterns的设计方案.这个设计方案不好的原因在于:?????? ?too much atten原创 2004-09-08 09:55:00 · 701 阅读 · 0 评论 -
Design Patterns Explained (6) - Abstract Factory
当你有这样的类结构: A1, A2,...,An 继承于 AB1, B2,...,Bn 继承于 B...K1, K2,...,Kn 继承于 K在 Condition_i 的情况下使用 Xi, 当n>=2的时候管理将会很困难, 所以构造这样的 工厂 来负责 Condition :Cond1, Cond2,...,Condn 继承于 Cond利用 Condi, 可以产生 Ai, B原创 2004-09-21 10:12:00 · 901 阅读 · 0 评论 -
Design Patterns Explained (4) - Adapter
intent: Convert the interface of a class into another interface that the clients expect. Adapter lets classes work together that could not otherwise because of incompatible interface.Problem: A syst原创 2004-09-16 12:30:00 · 898 阅读 · 0 评论 -
Design Patterns Explained (5) - New Perspective
New? perspective of the tranditional comceptsOject - a boundle of data and members vs. things with responsibility.Encapsulation - hiding data vs. the ability to hide anything.Inheritance - for s原创 2004-09-17 15:17:00 · 877 阅读 · 0 评论 -
Design Patterns Explained (6) - Bridge
intent: Decouple an abstraction from its implementation so that the two can vary independently.Implementation here means the objects that the abstract class an its derivations use to implement thems原创 2004-09-18 02:46:00 · 908 阅读 · 0 评论 -
Design Patterns Explained (2) - Introduction
What is Design Patterns?“A solution to a problem in a context” - Christopher AlexanderA pattern involves 4 itemsThe name of the pattern The purpose of the pattern, the probem it solves How w原创 2004-09-13 09:41:00 · 687 阅读 · 0 评论 -
Design Patterns Explained (3) - Facade
Facade pronounces /f2sa:d/ "Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use."原创 2004-09-15 09:24:00 · 822 阅读 · 0 评论