The Decorator Design Pattern and Open Closed Principle

Interested in Design Patterns? Check out this article on InsideRIA that explains the Decorator Design Pattern. This article explains the Open Closed Principal and discusses favoring composition over inheritance. These are very powerful OOP concepts that can be leveraged to produce more flexible and robust code. The Decorator is a great pattern to learn after gaining an understanding of the Strategy pattern. InsideRIA also has a great article exploring the Strategy Design Pattern if you’d like to learn more about it. If things go as planned we’ll take a look at the Factory Pattern next. Design Patterns are great and I hope these articles help developers understand them. Remember that a thorough understanding of these patterns should be gained before using them in production code.


Leave a Reply