Design pattern explained

A design pattern is the re-usable form of a solution to a design problem. The idea was introduced by the architect Christopher Alexander[1] and has been adapted for various other disciplines, particularly software engineering.[2]

Details

An organized collection of design patterns that relate to a particular field is called a pattern language. This language gives a common terminology for discussing the situations designers are faced with.

Documenting a pattern requires explaining why a particular situation causes problems, and how the components of the pattern relate to each other to give the solution.[3] Christopher Alexander describes common design problems as arising from "conflicting forces"—such as the conflict between wanting a room to be sunny and wanting it not to overheat on summer afternoons. A pattern would not tell the designer how many windows to put in the room; instead, it would propose a set of values to guide the designer toward a decision that is best for their particular application. Alexander, for example, suggests that enough windows should be included to direct light all around the room. He considers this a good solution because he believes it increases the enjoyment of the room by its occupants. Other authors might come to different conclusions, if they place higher value on heating costs, or material costs. These values, used by the pattern's author to determine which solution is "best", must also be documented within the pattern.

Pattern documentation should also explain when it is applicable. Since two houses may be very different from one another, a design pattern for houses must be broad enough to apply to both of them, but not so vague that it doesn't help the designer make decisions. The range of situations in which a pattern can be used is called its context. Some examples might be "all houses", "all two-story houses", or "all places where people spend time".

For instance, in Christopher Alexander's work, bus stops and waiting rooms in a surgery center are both within the context for the pattern "A PLACE TO WAIT".

Examples

Business models also have design patterns.[4] See .

See also

Further reading

Notes and References

  1. Book: Alexander, Christopher . Christopher Alexander . . Center for Environmental Structure series . 2 . New York . . 1977 . 0-19-501919-9 . 3132495.
  2. Book: . Erich . Gamma . Richard . Helm . Ralph . Johnson . John . Vlissides . Addison-Wesley professional computing series . Reading, Mass. . . 1994 . 0-201-63361-2 . 31171684. The "Gang of Four" book.
  3. Web site: 2011-03-21 . James . Maioriello . 2002-10-02 . What are design patterns and do I need them? . developer.com.
  4. For example: Mettler . Tobias . Eurich . Markus . June 2012 . A 'design-pattern'–based approach for analyzing e-health business models . . 1 . 2 . 77–85 . 10.1016/j.hlpt.2012.04.005.