Skip to content

Introduction to the most common Design Patterns with a theoretical explanation, UML diagram and C++ sample code

Notifications You must be signed in to change notification settings

BourbonCreams/DesignPatterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Design Patterns

What are Design Patterns (later DPs)? DPs are typical solutions to problems that occur often when developing software, more specifically in the design phase. They describe a recurring problem and the way to solve it as well as the consequences of applying it.

Types of Design Patterns

There exist three types of DPs:

  • Creational: they describe the way objects are instantiated;
  • Structural: they are concerned with the way objects are composed;
  • Behavioural: they define the way objects behave and interact between themselves.

Structure of the Repo

Every folder of this repo represents a DP and includes:

  • a theoretical explanation of the problem it solves and how;
  • a UML representation of the pattern. Use PlantText to copy-paste the PlantUML code of each DP;
  • a description of the elements of the pattern;
  • a code example in C++. You will need g++ (sudo apt install g++) to be able to compile the code examples (instructions to compile and run the code are provided).

Sources

This repo is based on "Design Patterns - Elements of Reusable Object-Oriented Software" written by Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides (Pearson).

About

Introduction to the most common Design Patterns with a theoretical explanation, UML diagram and C++ sample code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages