Tuesday, October 20, 2015

Design Patterns

What is a Design Pattern?

A design pattern is a re-usable form of a solution to a design problem.  It helps us by not having to re-invent the wheel when we design and code solutions.  

Finding the right fit is crucial:  A) Using the wrong pattern for a problem can cause more problems; and B) Using a pattern for a trivial problem is overkill and, thus, costly.  Along this line, there is a term, anti-pattern, for a common response to a recurring problem that is typically ineffective and counterproductive.

It is my opinion that the patterns need not be memorized.  What is most important that their concepts be understood enough to know when they should be applied.  It is useful to review the various explanations and code samples when beginning a new design with a fresh perspective.  They also come in very handy when refactoring existing code.

So as not to reinvent the wheel myself, please see the following references for more information.

Where are some Good References?