SUPPORT THE WORK

GetWiki

software design pattern

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
software design pattern
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{short description|Reusable design for writing code that provides a well-defined function}}In software engineering, a design pattern describes a relatively small, well-defined aspect (i.e. functionality) of a computer program in terms of how to write the code.Using a pattern is intended to leverage an existing concept rather than re-inventing it. This can decrease the time to develop software and increase the quality of the resulting program.Notably, a pattern does not consist of a software artifact. Most development resources that a programmer uses involve configuring the codebase to use an artifact such as a library (to name just one example). In contrast, to use a pattern, a programmer writes code as described by the pattern. The result is unique every time even though the result may be recognizable as based on the pattern.Some consider using patterns to be best practice for software design.Some consider using design patterns as a structured approach to computer programming.Conceptually, design pattern may be described as more specific than programming paradigm and less specific than algorithm.

History

Patterns originated as an architectural concept by Christopher Alexander as early as 1977 (c.f. "The Pattern of Streets," JOURNAL OF THE AIP, September, 1966, Vol. 32, No. 5, pp. 273–278). In 1987, Kent Beck and Ward Cunningham began experimenting with the idea of applying patterns to programming – specifically pattern languages – and presented their results at the OOPSLA conference that year.CONFERENCE
, Smith
, Reid
, Panel on design methodology
, OOPSLA '87 Addendum to the Proceedings
, 10.1145/62138.62151
, October 1987, Ward cautioned against requiring too much programming at, what he termed, 'the high level of wizards.' He pointed out that a written 'pattern language' can significantly improve the selection and application of abstractions. He proposed a 'radical shift in the burden of design and implementation' basing the new methodology on an adaptation of Christopher Alexander's work in pattern languages and that programming-oriented pattern languages developed at Tektronix has significantly aided their software development efforts., CONFERENCE
, Beck
, Kent
, Kent Beck
, Ward Cunningham, Ward, Cunningham
, Using Pattern Languages for Object-Oriented Program
, OOPSLA '87 workshop on Specification and Design for Object-Oriented Programming
,weblink
, September 1987
, 2006-05-26, In the following years, Beck, Cunningham and others followed up on this work.
Design patterns gained popularity in computer science after the book (Design Patterns|Design Patterns: Elements of Reusable Object-Oriented Software) was published in 1994 by the so-called "Gang of Four" (Gamma et al.), which is frequently abbreviated as "GoF". That same year, the first Pattern Languages of Programming Conference was held, and the following year the Portland Pattern Repository was set up for documentation of design patterns. The scope of the term remains a matter of dispute. Notable books in the design pattern genre include:
  • BOOK


, Erich
, Gamma
, Erich Gamma
, Richard Helm, Richard, Helm, Ralph Johnson (computer scientist), Ralph, Johnson, John Vlissides, John, Vlissides
, 1994
, Design Patterns: Elements of Reusable Object-Oriented Software
, Addison-Wesley
, 978-0-201-63361-0, Design Patterns (book)
,
  • BOOK


, Per
, Brinch Hansen
, Per Brinch Hansen
, 1995
, Studies in Computational Science: Parallel Programming Paradigms
, Prentice Hall
, 978-0-13-439324-7
,
  • BOOK


, Frank
, Buschmann
, Frank Buschmann
, Regine, Meunier, Hans, Rohnert, Peter, Sommerlad
, 1996
, Pattern-Oriented Software Architecture, Volume 1: A System of Patterns
, John Wiley & Sons
, 978-0-471-95869-7
,
  • BOOK


, Kent
, Beck
, Kent Beck
, 1997
, Smalltalk Best Practice Patterns
, Prentice Hall
, 978-0134769042
,
  • BOOK


, Douglas C.
, Schmidt
, Douglas C. Schmidt
, Michael, Stal, Hans, Rohnert, Frank, Buschmann
, 2000
, Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects
, John Wiley & Sons
, 978-0-471-60695-6
,
  • BOOK


, Patterns of Enterprise Application Architecture
, Martin
, Fowler
, Martin Fowler (software engineer)
, 2002
, 978-0-321-12742-6
, Addison-Wesley
,
  • BOOK


, Gregor
, Hohpe
, Bobby, Woolf
, 2003
, Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
, Addison-Wesley
, 978-0-321-20068-6, Enterprise Integration Patterns
,
  • BOOK


, Eric T.
, Freeman
, Elisabeth, Robson, Bert, Bates, Kathy, Sierra
, Kathy Sierra
, 2004
, Head First Design Patterns
, O'Reilly Media
, 978-0-596-00712-6
,
  • BOOK


, Craig
, Larman
, Craig Larman
, 2004
, Applying UML and Patterns (3rd Ed, 1st Ed 1995)
, Pearson
, 978-0131489066
, Although design patterns have been applied practically for a long time, formalization of the concept of design patterns languished for several years.REPORT
, 624834
, 10.1.1.62.6466
, Design Patterns Formalization
, Aline Lúcia
, Baroni, Yann-Gaël, Guéhéneuc, Hervé, Albin-Amiot
, June 2003
, École Nationale Supérieure des Techniques Industrielles et des Mines de Nantes
, Nantes
, EMN Technical Report,weblink
, ResearchGate
,

Practice

Design patterns can speed up the development process by providing proven development paradigms.WEB
,weblink
, Judith, Bishop
, C# 3.0 Design Patterns: Use the Power of C# 3.0 to Solve Real-World Problems
, C# Books from O'Reilly Media
, If you want to speed up the development of your .NET applications, you're ready for C# design patterns -- elegant, accepted and proven ways to tackle common programming problems.
, 2012-05-15
, Effective software design requires considering issues that may not become apparent until later in the implementation. Freshly written code can often have hidden, subtle issues that take time to be detected; issues that sometimes can cause major problems down the road. Reusing design patterns can help to prevent such issues,BOOK,weblink 636, Software Applications: Concepts, Methodologies, Tools, and Applications: Concepts, Methodologies, Tools, and Applications, 9781605660615, Tiako, Pierre F., Pierre F, Tiako, 31 March 2009, Formal Modeling and Specification of Design Patterns Using RTPA, 10.4018/978-1-60566-060-8, and enhance code readability for those familiar with the patterns.Software design techniques are difficult to apply to a broader range of problems.{{Citation needed|date=August 2014}} Design patterns provide general solutions, documented in a format that does not require specifics tied to a particular problem.

Motif

A pattern describes a design motif, a.k.a. prototypical micro-architecture, as a set of program constituents (e.g., classes, methods...) and their relationships. A developer adapts the motif to their codebase to solve the problem described by the pattern. The resulting code has structure and organization similar to the chosen motif.

Domain-specific patterns

Efforts have also been made to codify design patterns in particular domains, including the use of existing design patterns as well as domain-specific design patterns. Examples include user interface design patterns,WEB, Laakso, Sari A., 2003-09-16, Collection of User Interface Design Patterns,weblink 2008-01-31, University of Helsinki, Dept. of Computer Science, information visualization,JOURNAL, 12, 5, Heer, J.! Name! Description! In Design Patterns! In Code CompleteBOOK
, Code Complete
, Steve
, McConnell
, Steve McConnell
, June 2004
, Microsoft Press
, 978-0-7356-1967-8
, Design in Construction
, Table 5.1 Popular Design Patterns
, 2nd
, 104, Code Complete
,
! Other| Lazy initialization
last2 = Agrawala, Software Design Patterns for Information Visualization, IEEE Transactions on Visualization and Computer Graphics, 2006,weblink 10.1109/TVCG.2006.178, 17080809, 853–60, 10.1.1.121.4534, 11634997, secure design,BOOK, Secure Design Patterns, 2009 last1 = Dougherty last2 = Sayre last3 = Seacord last4 = Svoboda last5 = Togashi,weblink Software Engineering Institute,
"secure usability",THESIS, Ph.D. thesis, Design Principles and Patterns for Computer Systems That Are Simultaneously Secure and Usable, 2005
last = Garfinkel,weblink Web design WEB
, Yahoo! Design Pattern Library
, 2008-01-31
,weblink
, dead
,weblink" title="web.archive.org/web/20080229011119weblink">weblink
, 2008-02-29
, and business model design.WEB, How to design your Business Model as a Lean Startup?, 2010-01-06,weblink 2010-01-06, The annual Pattern Languages of Programming Conference proceedings Pattern Languages of Programming, Conference proceedings (annual, 1994—) weblink include many examples of domain-specific patterns.

Object-oriented programming

Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Patterns that imply mutable state may be unsuited for functional programming languages. Some patterns can be rendered unnecessary in languages that have built-in support for solving the problem they are trying to solve, and object-oriented patterns are not necessarily suitable for non-object-oriented languages.

Examples

Design patterns can be organized into groups based on what kind of problem they solve. Creational patterns create objects. Structural patterns organize classes and objects to form larger structures that provide new functionality. Behavioral patterns provide communication between objects and realizing these patterns.

Creational patterns {| class"wikitable"

Abstract factory pattern>Abstract factory| Provide an interface for creating families of related or dependent objects without specifying their concrete classes.| {{yes}}| {{yes}}| {{n/a}}
Builder pattern>Builder| Separate the construction of a complex object from its representation, allowing the same construction process to create various representations.| {{yes}}| {{yes}}| {{n/a}}
Dependency injection>Dependency Injection| A class accepts the objects it requires from an injector instead of creating the objects directly.| {{n/a}}| {{yes}}| {{n/a}}
Factory method pattern>Factory method| Define an interface for creating a single object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.| {{yes}}| {{yes}}| {{n/a}}
Proxy pattern>Proxy pattern.| {{yes}}| {{yes}}{{abbrPatterns of Enterprise Application Architecture}}BOOK
, Martin
, Fowler
, Martin Fowler (software engineer)
, 2002
, Patterns of Enterprise Application Architecture
, Addison-Wesley
, 978-0-321-12742-6
,weblink
, }}
Multiton pattern>Multiton| Ensure a class has only named instances, and provide a global point of access to them.| {{yes}}| {{yes}}| {{yes}}
Object pool pattern>Object pool| Avoid expensive acquisition and release of resources by recycling objects that are no longer in use. Can be considered a generalisation of connection pool and thread pool patterns.| {{yes}}| {{yes}}| {{yes}}
Prototype pattern>Prototype| Specify the kinds of objects to create using a prototypical instance, and create new objects from the 'skeleton' of an existing object, thus boosting performance and keeping memory footprints to a minimum.| {{yes}}| {{yes}}| {{yes}}
Resource Acquisition Is Initialization>Resource acquisition is initialization (RAII)| Ensure that resources are properly released by tying them to the lifespan of suitable objects.| {{yes}}| {{yes}}| {{yes}}
Singleton pattern>Singleton| Ensure a class has only one instance, and provide a global point of access to it.| {{yes}}| {{yes}}| {{yes}}
">

Structural patterns {| class"wikitable"

! Name! Description! In Design Patterns! In Code Complete! OtherAdapter pattern>Adapter, Wrapper, or Translator| Convert the interface of a class into another interface clients expect. An adapter lets classes work together that could not otherwise because of incompatible interfaces. The enterprise integration pattern equivalent is the translator.| {{yes}}| {{yes}}| {{yes}}Bridge pattern>Bridge| Decouple an abstraction from its implementation allowing the two to vary independently.| {{yes}}| {{yes}}| {{yes}}Composite pattern>Composite| Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.| {{yes}}| {{yes}}| {{yes}}Decorator pattern>Decorator| Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.| {{yes}}| {{yes}}| {{yes}}Delegation pattern>Delegation| Extend a class by composition instead of subclassing. The object handles a request by delegating to a second object (the delegate)| {{yes}}| {{yes}}| {{yes}}| Extension object| Adding functionality to a hierarchy without changing the hierarchy.| {{yes}}| {{yes}}| {{yes}}Facade pattern>Facade| Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.| {{yes}}| {{yes}}| {{yes}}Flyweight pattern>Flyweight| Use sharing to support large numbers of similar objects efficiently.| {{yes}}| {{yes}}| {{yes}}| Front controller| The pattern relates to the design of Web applications. It provides a centralized entry point for handling requests.| {{yes}}| {{yes}}{{abbr|J2EE Patterns|Core J2EE Patterns: Best Practices and Design Strategies (2nd Edition)}}BOOK
, Deepak
, Alur
, John, Crupi, Dan, Malks
, 2003
, Core J2EE Patterns: Best Practices and Design Strategies
, 166
, Prentice Hall
, 978-0-13-142246-9
,weblink
, {{abbr|PoEAA|Patterns of Enterprise Application Architecture}}BOOK
, Martin
, Fowler
, Martin Fowler (software engineer)
, 2002
, Patterns of Enterprise Application Architecture
, 344
, Addison-Wesley
, 978-0-321-12742-6
,weblink
, }}Marker interface pattern>Marker| Empty interface to associate metadata with a class.| {{yes}}| {{yes}}Effective JavaBOOK
, Bloch
, Joshua
, Effective Java
, 179
, Item 37: Use marker interfaces to define types
, 2008
, 978-0-321-35668-0
, Addison-Wesley
,weblink
, Second
, }}
Module pattern>Module| Group several related elements, such as classes, singletons, methods, globally used, into a single conceptual entity.| {{yes}}| {{yes}}| {{yes}}Proxy pattern>Proxy| Provide a surrogate or placeholder for another object to control access to it.| {{yes}}| {{yes}}| {{yes}}Twin pattern>TwinHTTP://WWW.SSW.JKU.AT/RESEARCH/PAPERS/MOE99/PAPER.PDF >TITLE=TWIN – A DESIGN PATTERN FOR MODELING MULTIPLE INHERITANCE, | Twin allows modeling of multiple inheritance in programming languages that do not support this feature.| {{yes}}| {{yes}}| {{yes}}">

Behavioral patterns {| class"wikitable"

! Name! Description! In Design Patterns! In Code Complete! OtherBlackboard (design pattern)>Blackboard| Artificial intelligence pattern for combining disparate sources of data (see blackboard system)| {{yes}}| {{yes}}| {{yes}}Chain-of-responsibility pattern>Chain of responsibility| Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.| {{yes}}| {{yes}}| {{yes}}Command pattern>Command| Encapsulate a request as an object, thereby allowing for the parameterization of clients with different requests, and the queuing or logging of requests. It also allows for the support of undoable operations.| {{yes}}| {{yes}}| {{yes}}|Fluent interface| Design an API to be method chained so that it reads like a DSL. Each method call returns a context through which the next logical method call(s) are made available.| {{yes}}| {{yes}}| {{yes}}Interpreter pattern>Interpreter| Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.| {{yes}}| {{yes}}| {{yes}}Iterator pattern>IteratorAggregate pattern>aggregate object sequentially without exposing its underlying representation.| {{yes}}| {{yes}}| {{yes}}Mediator pattern>Mediator| Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it allows their interaction to vary independently.| {{yes}}| {{yes}}| {{yes}}Memento pattern>Memento| Without violating encapsulation, capture and externalize an object's internal state allowing the object to be restored to this state later.| {{yes}}| {{yes}}| {{yes}}Null Object pattern>Null object| Avoid null references by providing a default object.| {{yes}}| {{yes}}| {{yes}}Observer pattern>Observer or Publish/subscribe| Define a one-to-many dependency between objects where a state change in one object results in all its dependents being notified and updated automatically.| {{yes}}| {{yes}}| {{yes}}Design pattern Servant>Servant| Define common functionality for a group of classes. The servant pattern is also frequently called helper class or utility class implementation for a given set of classes. The helper classes generally have no objects hence they have all static methods that act upon different kinds of class objects.| {{yes}}| {{yes}}| {{yes}}Specification pattern>Specificationbusiness logic in a Boolean algebra>Boolean fashion.| {{yes}}| {{yes}}| {{yes}}State pattern>State| Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.| {{yes}}| {{yes}}| {{yes}}Strategy pattern>Strategy| Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.| {{yes}}| {{yes}}| {{yes}}Template method pattern>Template method| Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.| {{yes}}| {{yes}}| {{yes}}Visitor pattern>Visitor| Represent an operation to be performed on instances of a set of classes. Visitor lets a new operation be defined without changing the classes of the elements on which it operates.| {{yes}}| {{yes}}| {{yes}}">

Concurrency patterns {| class"wikitable"

! Name! Description! In POSA2BOOK
, Douglas C.
, Schmidt last2 = Stal
last3 = Rohnert last4 = Buschmann
, 2000
, Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects
, John Wiley & Sons
, 978-0-471-60695-6
, ! OtherActive object>Active Objectasynchronous method invocation and a scheduling (computing)>scheduler for handling requests.| {{yes}}| {{n/a}}Balking pattern>Balking| Only execute an action on an object when the object is in a particular state.| {{no}}| {{n/a}}Binding properties pattern>Binding properties| Combining multiple observers to force properties in different objects to be synchronized or coordinated in some way.Binding Properties| {{no}}| {{n/a}}| Compute kernel| The same calculation many times in parallel, differing by integer parameters used with non-branching pointer math into shared arrays, such as GPU-optimized Matrix multiplication or Convolutional neural network.| {{no}}| {{n/a}}Double checked locking pattern>Double-checked locking| Reduce the overhead of acquiring a lock by first testing the locking criterion (the 'lock hint') in an unsafe manner; only if that succeeds does the actual locking logic proceed.Can be unsafe when implemented in some language/hardware combinations. It can therefore sometimes be considered an anti-pattern.| {{yes}}| {{n/a}}Event-Based Asynchronous Pattern>Event-based asynchronous LAST1 = NAGEL LAST2 = EVJEN LAST3 = GLYNN LAST4 = WATSON LAST5 = SKINNERPUBLISHER = WILEYISBN = 978-0-470-19137-8, Event-based Asynchronous Pattern, | {{no}}| {{n/a}}| Guarded suspension| Manages operations that require both a lock to be acquired and a precondition to be satisfied before the operation can be executed.| {{no}}| {{n/a}}Join-pattern>Join| Join-pattern provides a way to write concurrent, parallel and distributed programs by message passing. Compared to the use of threads and locks, this is a high-level programming model.| {{no}}| {{n/a}}Lock (computer science)>Lock| One thread puts a "lock" on a resource, preventing other threads from accessing or modifying it.Lock Pattern| {{no}}PoEAA}}Messaging pattern>Messaging design pattern (MDP)| Allows the interchange of information (i.e. messages) between components and applications.| {{no}}| {{n/a}}Monitor (synchronization)>Monitor object| An object whose methods are subject to mutual exclusion, thus preventing multiple objects from erroneously trying to use it at the same time.| {{yes}}| {{n/a}}Reactor pattern>Reactor| A reactor object provides an asynchronous interface to resources that must be handled synchronously.| {{yes}}| {{n/a}}Read/write lock pattern>Read-write lock| Allows concurrent read access to an object, but requires exclusive access for write operations. An underlying semaphore might be used for writing, and a Copy-on-write mechanism may or may not be used.| {{no}}| {{n/a}}Scheduler pattern>Scheduler| Explicitly control when threads may execute single-threaded code.| {{no}}| {{n/a}}| Service handler patternLAST2=TABONE TITLE=ELIXIRST: A SESSION-BASED TYPE SYSTEM FOR ELIXIR MODULES DATE=OCTOBER 2023 DOI=10.1016/J.JLAMP.2023.100891thread-per-session.SCHMIDT LAST2=VINOSKI TITLE=OBJECT INTERCONNECTIONS: COMPARING ALTERNATIVE PROGRAMMING TECHNIQUES FOR MULTI-THREADED CORBA SERVERS (COLUMN 7) JOURNAL=SIGS C++ REPORT S2CID=2654843, | {{no}}| {{n/a}}Thread pool pattern>Thread pool| A number of threads are created to perform a number of tasks, which are usually organized in a queue. Typically, there are many more tasks than threads. Can be considered a special case of the object pool pattern.| {{no}}| {{n/a}}Thread-Specific Storage>Thread-specific storage| Static or "global" memory local to a thread.| {{yes}}| {{n/a}}| Safe Concurrency with Exclusive Ownership| Avoiding the need for runtime concurrent mechanisms, because exclusive ownership can be proven. This is a notable capability of the Rust language, but compile-time checking isn't the only means, a programmer will often manually design such patterns into code - omitting the use of locking mechanism because the programmer assesses that a given variable is never going to be concurrently accessed.| {{no}}| {{n/a}}| CPU atomic operationC Sharp (programming language)>C# language uses the Interlocked class for these capabilities.| {{no}}| {{n/a}}

Documentation

The documentation for a design pattern describes the context in which the pattern is used, the forces within the context that the pattern seeks to resolve, and the suggested solution.WEB
, Dick
, Gabriel
, Richard P. Gabriel
, A Pattern Definition
,weblink
, 2007-03-06weblink" title="web.archive.org/web/20070209224120weblink">weblink > archive-date = 2007-02-09, There is no single, standard format for documenting design patterns. Rather, a variety of different formats have been used by different pattern authors. However, according to Martin Fowler, certain pattern forms have become more well-known than others, and consequently become common starting points for new pattern-writing efforts.WEB
, Martin
, Fowler
, Martin Fowler (software engineer)
, Writing Software Patterns
,weblink
, 2006-08-01
, 2007-03-06
, One example of a commonly used documentation format is the one used by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides in their book Design Patterns. It contains the following sections:
  • Pattern Name and Classification: A descriptive and unique name that helps in identifying and referring to the pattern.
  • Intent: A description of the goal behind the pattern and the reason for using it.
  • Also Known As: Other names for the pattern.
  • Motivation (Forces): A scenario consisting of a problem and a context in which this pattern can be used.
  • Applicability: Situations in which this pattern is usable; the context for the pattern.
  • Structure: A graphical representation of the pattern. Class diagrams and Interaction diagrams may be used for this purpose.
  • Participants: A listing of the classes and objects used in the pattern and their roles in the design.
  • Collaboration: A description of how classes and objects used in the pattern interact with each other.
  • Consequences: A description of the results, side effects, and trade offs caused by using the pattern.
  • Implementation: A description of an implementation of the pattern; the solution part of the pattern.
  • Sample Code: An illustration of how the pattern can be used in a programming language.
  • Known Uses: Examples of real usages of the pattern.
  • Related Patterns: Other patterns that have some relationship with the pattern; discussion of the differences between the pattern and similar patterns.

Criticism

Some suggest that design patterns may be a sign that features are missing in a given programming language (Java or C++ for instance). Peter Norvig demonstrates that 16 out of the 23 patterns in the Design Patterns book (which is primarily focused on C++) are simplified or eliminated (via direct language support) in Lisp or Dylan.CONFERENCE
, Norvig
, Peter
, Peter Norvig
, Design Patterns in Dynamic Languages
,weblink
, 1998, Related observations were made by Hannemann and Kiczales who implemented several of the 23 design patterns using an aspect-oriented programming language (AspectJ) and showed that code-level dependencies were removed from the implementations of 17 of the 23 design patterns and that aspect-oriented programming could simplify the implementations of design patterns.CONFERENCE
, Hannemann
, Jan
, Kiczales
, Gregor
, Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications - OOPSLA '02
, Gregor Kiczales
, Design pattern implementation in Java and AspectJ
, 2002
, 161
, OOPSLA '02
, 10.1145/582419.582436
, 1581134711
,
See also Paul Graham's essay "Revenge of the Nerds".WEB
, Graham
, Paul
, Paul Graham (computer programmer)
, Revenge of the Nerds
,weblink
, 2002
, 2012-08-11,
Inappropriate use of patterns may unnecessarily increase complexity.BOOK
, McConnell
, Steve
, Code Complete: A Practical Handbook of Software Construction, 2nd Edition
,weblink
, registration
, 2004
, 105, Pearson Education
, 9780735619678
,
By definition, a pattern must be programmed anew into each application that uses it. Since some authors see this as a step backward from software reuse as provided by components, researchers have worked to turn patterns into components. Meyer and Arnout were able to provide full or partial componentization of two-thirds of the patterns they attempted.JOURNAL
, Bertrand
, Meyer
, Bertrand Meyer
, Karine, Arnout
, Componentization: The Visitor Example
, Computer (magazine), IEEE Computer
, 39
, 7
, 23–30
, July 2006
,weblink
, 10.1109/MC.2006.227, 10.1.1.62.6082
, 15328522
,
In order to achieve flexibility, design patterns may introduce additional levels of indirection, which may complicate the resulting design and decrease runtime performance.

See also

{{Div col|colwidth=22em}} {{div col end}}

References

{{reflist|30em}}

Further reading

  • BOOK


, A Pattern Language: Towns, Buildings, Construction
, Alexander
, Christopher
, Ishikawa, Sara, Silverstein, Murray, Jacobson, Max, Fiksdahl-King, Ingrid, Angel
, Shlomo, 1977
, Oxford University Press
, 978-0-19-501919-3, New York
, Christopher Alexander
, A Pattern Language: Towns, Buildings, Construction
,
  • BOOK


, Core J2EE Patterns: Best Practices and Design Strategies
, Alur
, Deepak
, Crupi, John, Malks
, Dan, May 2003
, Prentice Hall
, 978-0-13-142246-9, 2nd
,
  • BOOK


, Implementation Patterns
, Beck
, Kent
, October 2007
, Addison-Wesley
, 978-0-321-41309-3, Kent Beck
,
  • BOOK


, Proceedings of the 18th International Conference on Software Engineering
, Beck
, Kent
, Crocker, R., Meszaros, G., Coplien, J. O., Dominick, L., Paulisch, F., Vlissides
, J., March 1996
, 25–30, Kent Beck
, James O. Coplien, John Vlissides,
  • BOOK


, A Pattern Approach to Interaction Design
, Borchers
, Jan
, John Wiley & Sons
, 2001
, 978-0-471-49828-5
,
  • BOOK


, Pattern Languages of Program Design
, Coplien
, James O.
, Schmidt
, Douglas C., 1995
, Addison-Wesley
, 978-0-201-60734-5, Jim Coplien
,
  • BOOK


, Pattern Languages of Program Design 2
, Coplien
, James O.
, Vlissides, John M., Kerth
, Norman L., 1996
, Addison-Wesley
, 978-0-201-89527-8, Jim Coplien
, John Vlissides,
  • BOOK, Designing Distributed Control Systems: A Pattern Language Approach, Eloranta, Veli-Pekka, Koskinen, Johannes, Leppänen, Marko, Reijonen, Ville, Wiley, 2014, 978-1118694152,
  • BOOK


, Analysis Patterns: Reusable Object Models
, Fowler
, Martin
, Addison-Wesley, 1997
, 978-0-201-89542-1
, Martin Fowler (software engineer)
,
  • BOOK


, Patterns of Enterprise Application Architecture
, Fowler
, Martin
, Addison-Wesley, 2003
, 978-0-321-12742-6
, Martin Fowler (software engineer)
,
  • BOOK


, Head First Design Patterns
, Freeman
, Eric
, Freeman, Elisabeth, Sierra, Kathy, Bates
, Bert, 2004
, O'Reilly Media
, 978-0-596-00712-6, Kathy Sierra,
  • BOOK


, Beyond Software Architecture
, Hohmann
, Luke
, Fowler, Martin, Kawasaki
, Guy, Addison-Wesley
, 2003
, 978-0-201-77594-5
,
  • BOOK


,weblink
, Patterns of Software: Tales From The Software Community
, Gabriel
, Richard
, Oxford University Press
, 1996
, 978-0-19-512123-0
, 235
, Richard P. Gabriel
,weblink" title="web.archive.org/web/20030801111358weblink">weblink 2003-08-01,
  • BOOK


, Design Patterns: Elements of Reusable Object-Oriented Software
, Gamma
, Erich
, Helm, Richard, Johnson, Ralph, Vlissides
, John, 1995
, Addison-Wesley
, 978-0-201-63361-0
, book_Gamma1995, Erich Gamma
, Richard Helm, Ralph Johnson (computer scientist), John Vlissides, Design Patterns (book)
,
  • BOOK


, Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
, Hohpe
, Gregor
, Woolf
, Bobby, 2003
, Addison-Wesley
, 978-0-321-20068-6, Enterprise Integration Patterns
,
  • BOOK


, Holub on Patterns
, Holub
, Allen
, Apress
, 2004
, 978-1-59059-388-2
,
  • BOOK


, Remoting Patterns: Foundations of Enterprise, Internet and Realtime Distributed Object Middleware
, Kircher
, Michael
, Völter
, Markus
, Zdun
, Uwe
, 2005
, John Wiley & Sons
, 978-0-470-85662-8
, registration
,weblink
,
  • BOOK


, Applying UML and Patterns
, Larman
, Craig
, Prentice Hall
, 2005
, 978-0-13-148906-6, Craig Larman
,
  • BOOK


, Program Development in Java: Abstraction, Specification, and Object-Oriented Design.
, Liskov
, Barbara
, Guttag
, John, 2000
, Addison-Wesley
, 978-0-201-65768-5, Barbara Liskov
, John Guttag,
  • BOOK


, Pattern Languages of Program Design 5
, Manolescu
, Dragos
, Voelter, Markus, Noble
, James, 2006
, Addison-Wesley
, 978-0-321-32194-7
,
  • BOOK


, EJB Design Patterns: Advanced Patterns, Processes and Idioms
, Marinescu
, Floyd
, John Wiley & Sons
, 2002
, 978-0-471-20831-0
,weblink
,
  • BOOK


, Pattern Languages of Program Design 3
, Martin
, Robert Cecil
, Riehle, Dirk, Buschmann
, Frank, 1997
, Addison-Wesley
, 978-0-201-31011-5, Robert Cecil Martin
,
  • BOOK


, Patterns for Parallel Programming
,weblink
, registration
, Mattson
, Timothy G
, Sanders, Beverly A., Massingill
, Berna L., 2005
, Addison-Wesley
, 978-0-321-22811-6
,
  • BOOK


, Design Patterns Explained, Second Edition: A New Perspective on Object-Oriented Design
, Shalloway
, Alan
, Trott
, James R.
, 2001
, Addison-Wesley
, 978-0-321-24714-8
,weblink
,
  • BOOK


, Pattern Hatching: Design Patterns Applied
, Vlissides
, John M.
, Addison-Wesley
, 1998
, 978-0-201-43293-0, John Vlissides
,
  • BOOK


,weblink
, Small Memory Software: Patterns for systems with limited memory
, Weir
, Charles
, Noble
, James, 2000
, Addison-Wesley
, 978-0-201-59607-6
,weblink" title="web.archive.org/web/20070617114432weblink">weblink 2007-06-17,
{{Design Patterns patterns}}{{Authority control}}

- content above as imported from Wikipedia
- "software design pattern" does not exist on GetWiki (yet)
- time: 5:08am EDT - Sat, May 18 2024
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 23 MAY 2022
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
CONNECT