Design pattern



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, most notably computer science.[2]




Contents





  • 1 Details


  • 2 Examples


  • 3 See also


  • 4 References


  • 5 Further reading


  • 6 External links




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.


.mw-parser-output .templatequoteoverflow:hidden;margin:1em 0;padding:0 40px.mw-parser-output .templatequote .templatequoteciteline-height:1.5em;text-align:left;padding-left:1.6em;margin-top:0

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]


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



  • Software design pattern, in software design.


  • Architectural pattern, for software architecture.


  • Interaction design pattern, used in interaction design / human-computer interaction


  • Pedagogical patterns, in teaching.

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



See also


  • Style guide

  • Design paradigm

  • Anti-pattern


References




  1. ^ ab Alexander, A Pattern Language


  2. ^ Gamma et al., 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..mw-parser-output cite.citationfont-style:inherit.mw-parser-output qquotes:"""""""'""'".mw-parser-output code.cs1-codecolor:inherit;background:inherit;border:inherit;padding:inherit.mw-parser-output .cs1-lock-free abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .cs1-lock-limited a,.mw-parser-output .cs1-lock-registration abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .cs1-lock-subscription abackground:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registrationcolor:#555.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration spanborder-bottom:1px dotted;cursor:help.mw-parser-output .cs1-hidden-errordisplay:none;font-size:100%.mw-parser-output .cs1-visible-errorfont-size:100%.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-formatfont-size:95%.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-leftpadding-left:0.2em.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-rightpadding-right:0.2em


  4. ^ Mettler T, Eurich M (2012). "A "design-pattern"-based approach for analyzing e-health business models". Health Policy & Technology. 1 (2): 77–85. doi:10.1016/j.hlpt.2012.04.005.


  5. ^ Sprenger M, Mettler T (2016). On the Utility of E-Health Business Model Design Patterns. European Conference on Information Systems.




Further reading



  • Alexander, Christopher (1977). A Pattern Language: Towns, Buildings, Construction. Oxford University Press. ISBN 0-19-501919-9.


  • Erl, Thomas (2009). SOA Design Patterns. New York: Prentice Hall/PearsonPTR. p. 864. ISBN 0-13-613516-1.

  • Frank Buschmann, Kevlin Henney, Douglas C. Schmidt "On Patterns and Pattern Languages"


  • Gamma, Helm, Johnson & Vlissides (1994). Design Patterns (the Gang of Four book). Addison-Wesley. ISBN 0-201-63361-2.CS1 maint: Multiple names: authors list (link) (Note: there is debate about whether the "Gang of Four" book actually contains any patterns in the Alexandrian's sense.)


  • 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.

  • Jenifer Tidwell. Designing Interfaces


  • Wolfgang Pree. Design Patterns for Object-Oriented Software Development

  • Leitner, Helmut (2015). Pattern Theory: Introduction and Perspectives on the Tracks of Christopher Alexander,
    ISBN 1505637430.


External links


  • Examples of Design Patterns in java


  • 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








Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay