Design Patterns

Object-oriented design patterns are models that provide a solution to a common problem. These solutions have particular contexts to which they belong. So a pattern that solves one problem may not solve another. That is why I have created this ever-growing list of design patterns to help you become a better developer

You will probably find that you use some of these patterns in your daily development without ever realizing that they have a name. These names help developers discuss problems and solutions with a similar vocabulary improving communication. To discuss each pattern we will present a problem and a solution to help you understand the patterns better and to assist you in knowing when to use which pattern.

These patterns can be grouped into three categories: creational, structural, and behavioral.

Creational

Creational patterns are ones that generate instances of classes themselves rather than the developer directly instantiating them. This helps provide more flexibility by allowing the program to instantiate different objects depending on the situation.

  • Singleton Pattern uses the class to statically hold on to its own instance. When asking for an instance the class returns the previously created instance or it creates a new one if none have been created.

Structural

Structural patterns are ones that focus on how objects inherit other objects and what functionality they have.

  • Abstract Server uses abstractions for dependencies instead of concretions

Behavioral

Behavioral design patterns are focused on different objects communicate with each other.

  • Active Object is an old technique for implementing multiple threads of control.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

About the Author

  • Chris LondonSenior Web ArchitectPartners In Leadership

    I've always worked as an innovative programmer. My insights and creative thinking result in superior products and customer satisfaction. Working full time as a senior web architect I've used lots of exciting technologies (i.e., Ember, Backbone, Handlebars, etc) and developed a lot of exciting sites. In my spare time I hope to develop even more exciting and new technologies. I've been programming professionally for 9 years in everything from desktop applications to web applications to mobile applications.

    Web: https://plus.google.com/116403409191372324375