World Library  
Flag as Inappropriate
Email this Article

Design pattern

Article Id: WHEBN0000008745
Reproduction Date:

Title: Design pattern  
Author: World Heritage Encyclopedia
Language: English
Subject: LePUS3, Pattern language, Design, Canonical model, Fork–join model
Collection: Architectural Design, Software Design Patterns
Publisher: World Heritage Encyclopedia

Design pattern

A design pattern in pattern language.

The elements of this language are entities called patterns. Each pattern describes a problem that occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice. — Christopher Alexander[1]

The usefulness of speaking of patterns is to have a common terminology for discussing the situations designers already see over and over.



A pattern must explain why a particular situation causes problems, and why the proposed solution is considered a good one.[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.

A pattern must 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". The context must be documented within the pattern.

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

Domain-specific articles

See also

Further reading

[4] (Note: there is debate about whether the "Gang of Four" book actually contains any patterns in the Alexandrian's sense.)

  • Jenifer Tidwell. Designing Interfaces
  • Wolfgang Pree. Design Patterns for Object-Oriented Software Development


  1. ^ a b Alexander, A Pattern Language
  2. ^ et al.Gamma , 1994, Design Patterns (the "Gang of Four" book)
  3. ^ James Maioriello (2002-10-02). "What Are Design Patterns and Do I Need Them?". Retrieved 2011-03-21. The patterns are documented from a template that identifies the information needed to understand the software problem and the solution in terms of the relationships between the classes and objects necessary to implement the solution. 
  4. ^ James Coplien (2014-07-11). "Patterns: The Notion is Grounded in Alexander's Work". Retrieved 2014-07-16. The GoF claims to take its pattern inspiration from Christopher Alexander (as they say in the front matter of the book), who popularized the term in the broader field of design. To Alexander a pattern: is always an element of pattern language; contributes to deep human feeling; and is always geometric in nature. At least some of the GoF patterns fail on at least one of these points, and several fail on all three. 

External links

  • Java Design Patterns Full Tutorial
  • Full collection of design patterns (Creational, Structural, Behavioural) in C++ by Antonio Gulli
  • Design Patterns in Javascript by Tomás Corral
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.