The original website is http://www.dofactory.com/topic/1259/which-design-principles-belong-to-these-design-patterns.aspx
The Explanation before the question:
I need to study the following patterns:
- Factory Pattern
- Abstract Factory Pattern
- Singleton \ Lazy load Pattern
- Observer Pattern
- Strategy Pattern
- Command Pattern
- State Pattern
- Template method Pattern
- Adapter Pattern
- Facade Pattern
- Decorator Pattern \ Wrapper
- Bridge Pattern
I need to study which design principles belong to which pattern:
- Don't Repeat Yourself (DRY)
- Favor object composition over class inheritance
- Program to an interface, not an implementation
- Low/Loose coupling
- Open/Close principle (OCP)
- Dependency Inversion Principle (DIP)
- Law of Demeter
- Hollywood principle
- Single Responsibility principle (SRP)
The question that i would like to get an answer to is:
Which design principles belong to which design pattern, to be more specific which design pattern has the most advantages of which design principles?
本文探讨了常见设计模式与软件设计原则之间的联系,如单一职责原则、开放封闭原则等,并分析每种设计模式如何体现这些原则。
1103

被折叠的 条评论
为什么被折叠?



