Design Pattern
Definition
Design patterns describe reusable solutions to recurring problems in software design.
A design pattern explains a problem, the context and a possible structure of the solution, such as Observer or Factory. It is not a finished code and should only be used if it fits the specific problem.
Simply explained
Like proven building plans for architects: you don’t reinvent the wheel for stairs or doors every time.
Why it matters in practice
Relevant for comprehensible, maintainable software; use additional abstraction only for recognizable benefits.
Example from business
Possible example: A web application informs multiple views of a changed order status using the Observer pattern.
Limits and pitfalls
- Overengineering: Enforce patterns where simple functions suffice; wrong pattern selection increases complexity.
Origin & history
Made famous by the 'Gang of Four' (Gamma, Helm, Johnson, Vlissides, 1994).
Use in mid-sized companies
- Maintainable web applications, modular ERP extensions and API architectures in IT departments.
Frequently asked questions
Are design patterns language-independent?
Many concepts can be transferred; their concrete implementation and usefulness depend on the language and its functions.
What is an anti-pattern?
A recurring solution approach with adverse consequences.
Sources
- Helm, Johnson & Vlissides (veröffentlicht 31.10.1994), Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley · Gamma, Helm, Johnson & Vlissides (veröffentlicht 31.10.1994), Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley
Sources checked on 10/09/2026.
Editorially reviewed on: