Introduction For Pattern

I hope to share my knowledge on design patterns with you and I will post series of posts on this topic. First I am going to discuss what is design pattern and why people use this and then list what are the design patterns I am going to cover here. I will explain each pattern using Java,c++ and Ruby example codes. Usually pattern will not depend on a language user of it should have to have the ability to use it with any programming language.

A design pattern is a solution well tested by thousands of programmers and it gives solution for a problem in a context (problem domain). When we are using pattern for solve a problem always should consider following fact.

“Don’t consider pattern first and push it to solve the problem by forcing”

Good designers are not try to push patterns for the solution by force manner and they apply pattern in natural way. When they design solutions them fit to some patterns and then they used them. They strongly recommend that don’t make more complex the solution by pushing patterns to it in an unnecessary manner. Anyway for simple system also, its good to use a pattern if it drive for changes in future because by using pattern we can easily change the code. Other than that I need to mention here about the “forces” of a design, which is a buzzword in system designing and it consists of problem and the constraints in the context. Finally in this post I list patterns I’m going to address in my future posts in below,

  1. Observer pattern
  2. Decorator pattern
  3. Factory pattern
  4. Singleton pattern
  5. Command pattern
  6. Adapter pattern
  7. Facade pattern
  8. Template Method pattern
  9. Iterator pattern
  10. Composite pattern
  11. State pattern
  12. Strategy pattern
  13. Proxy pattern
  14. Compound pattern

Leave a Reply