IT lexicon › Programming › Design patterns

Design patterns

Programming På svenska → Updated: 2026-07-30

Reusable solutions to common design problems in OOP. Codified by the "Gang of Four" (Gamma, Helm, Johnson, Vlissides) in Design Patterns, 1994.

23 original patterns in three categories: creational (Singleton, Factory, Builder, Prototype), structural (Adapter, Facade, Decorator, Proxy), behavioral (Observer, Strategy, Command, Iterator, Visitor). 2000s backlash: "Singleton is an anti-pattern", "GoF patterns are symptoms of OOP weakness". Functional languages often solve the same problems with higher-order functions. Modern OOP books (Robert Martin, Sandi Metz) lean toward simpler principles (SOLID).

← Back to the lexicon