Back to list
Views:   8.7K
Replies:  1
Archived

Which design principles belong to these Design Patterns

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?

Or do they all use all of the design principles?

Thanks in advanced for your answers and explanations!

Roy Mengelers, Nov 03, 2010
This is homework . . . so do it yourself.
Feb 17, 2011
really a nice question.. - Don't Repeat Yourself (DRY) is for sure the singleton pattern.
Nov 29, 2010
I am a student from the Netherlands and a teacher expects us to answer that question, so I hope someone will have a answer for me...
Nov 04, 2010
Just to let you know that this is a very cool question. Just curious: are you a student or a practitioner?
Nov 03, 2010
Reply 1
Please refer to <<Head First Design Pattern>>, you can get the answers.
http://www.amazon.com/First-Design-Patterns-Elisabeth-Freeman/dp/0596007124
Walt Z, Dec 31, 2010


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2