Search: in
Design pattern
Design pattern Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
design pattern Email this to a friend      design pattern

Design pattern

A design pattern in architecture and computer science is a formal way of documenting a solution to a design problem in a particular field of expertise. The idea was introduced by the architect Christopher Alexander in the field of architecture, and has been adapted for various other disciplines, including computer science.

An organized collection of design patterns that relate to a particular field is called a pattern language.

Contents


Overview

A pattern must explain why a particular situation causes problems, and why the proposed solution is considered a good one. 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 are both part of the context for the pattern "A PLACE TO WAIT."

Domain-specific articles

See also

References

Further reading

fa:????? ????? ja:???????? pl:Wzorzec projektowy th:??????????????? vi:M?u thi?t k? zh:????





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in design pattern

Search for design pattern in Tutorials
Search for design pattern in Encyclopedia
Search for design pattern in Dictionary
Search for design pattern in Open Directory
Search for design pattern in Store
Search for design pattern in PriceGig


Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Design pattern
design pattern top design pattern

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement