Rohit Pant's Blog Posts Tagged 'GoF' (4)

GoF Series - Abstract Factory

Hello !

                 Time for another pattern. Abstract Factory (AF). Let's start with the GoF intent.

 

Intent :

"Provide an interface for creating families of related or dependent objects without specifying their concrete classes"

 

Deep Dive

There are many ways of arriving at this pattern when it…

Continue

Added by Rohit Pant on August 14, 2011 at 10:00pm — No Comments

GoF Pattern Series - Bridge

Friends,

             GoF Intent “Decouple an abstraction from its implementation so that the two can vary independently”. This is one definition which is magical. If I see the words used for constructing the definition, I feel that I know these words. Words like Decouple, Abstraction, Implementation we all come along with them all the time. But if I read the sentence I don't understand it. How is that possible, it's pure magic. Let us try to understand this pure…

Continue

Added by Rohit Pant on July 2, 2011 at 11:30pm — No Comments

GoF Pattern Series - Facade

Friends,

     GoF define Façades intent as ­ “Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher­level interface that makes the subsystem easier to use”.

A good way to remember Façade is to imagine a sub system that is badly designed or complex or legacy system. In all the cases there might be a need to reuse the system because of some reason or the other. You know sometimes we do get to work in a project which needs to interact…

Continue

Added by Rohit Pant on June 11, 2011 at 10:30pm — No Comments

GoF Pattern Series - Adapter

 

Introduction 

There is no real reason to pick these three patterns for the first blog on series of pattern related blogs. It's just that we had to make a start, somewhere !  But these three patterns are very interesting and to some extent very similar. Consider a diagram below ­                              

Client → Adapter → Original Class                             

Client → Façade → Original…

Continue

Added by Rohit Pant on June 10, 2011 at 3:00am — No Comments

© 2014   Created by Rohit Pant.

Badges  |  Report an Issue  |  Terms of Service