Monday, November 26, 2012

Design Pattern - Factory Pattern

You might also like seeing Observer Pattern, Strategy Pattern and Decorator Pattern


The next Pattern is the Factory Design Pattern. This pattern is often confused with the Simple Factory.
The difference is that in the Factory Design Pattern it is the subclass that controls instantiation of the object.

An everyday example of  Factory Pattern is the Java Collections iterator. Depending on the sub-class we get different types of iterators that shares a common interface.

One Slider? Coming up




Tuesday, November 13, 2012

Design Pattern - Decorator Pattern

You might also like seeing Observer Pattern and Strategy Pattern.

The next pattern in the series is the Decorator Pattern. Simply put a decorator creates a new instance by decorating the current object with additional responsibility. One slide to remember the pattern? Here we go ...

Monday, November 5, 2012

Design Pattern - Observer Pattern

The wiki article is great introduction to the Observer Pattern.

Looking for a one slide to easily help remember the pattern? Here we go ...