What is Design Patterns?
💻 coding

What is Design Patterns?

1 min read 227 words
1 min read
ShareWhatsAppPost on X
  • 1Design Patterns is a foundational book on software design patterns, authored by the Gang of Four.
  • 2The book categorizes design patterns into creational, structural, and behavioral types, each serving different purposes in software development.
  • 3It has sold over 500,000 copies and is considered essential for understanding object-oriented design theory.

AI-generated summary · May not capture all nuances

Key Insight
AskGif

"Design Patterns is a foundational book on software design patterns, authored by the Gang of Four."

What is Design Patterns?

Design Patterns: Elements of Reusable Object-Oriented Software is a software engineering book describing software design patterns. The book's authors are Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides with a foreword by Grady Booch. The book is divided into two parts, with the first two chapters exploring the capabilities and pitfalls of object-oriented programming, and the remaining chapters describing 23 classic software design patterns. The book includes examples in C++ and Smalltalk.

It has been influential to the field of software engineering and is regarded as an important source for object-oriented design theory and practice. More than 500,000 copies have been sold in English and in 13 other languages. The authors are often referred to as the Gang of Four (GoF).

Patterns by Type

1. Creational pattern

Creational patterns are ones that create objects for you, rather than having you instantiate objects directly. This gives your program more flexibility in deciding which objects need to be created for a given case.

Factory Pattern

Singleton Pattern

2. Structural

These concern class and object composition. They use inheritance to compose interfaces and define ways to compose objects to obtain new functionality.

Adapter Pattern

Composite Pattern

Decorator Pattern

Facade Pattern

Proxy Pattern

3.Behavioural

Most of these design patterns are specifically concerned with communication between objects.

Command Pattern

Iterator Pattern

Observer Pattern

State Pattern

Strategy Pattern

Template Pattern

source: wiki

Enjoyed this article?

Share it with someone who'd find it useful.

ShareWhatsAppPost on X

AskGif

Published on 1 August 2018 · 1 min read · 227 words

Part of AskGif Blog · coding

You might also like

What is Design Patterns? | AskGif Blog