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?