SunnyGeGe / Practical-Design-Patterns-in-modern-cpp

example of modern design patterns GOF and object-oriented computer programming (SOLID) in C++11/14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ SOLID

is an acronym for the first five object-oriented design(OOD)** principles** by Robert C. Martin These principles, when combined together, make it easy for a programmer to develop software that are easy to maintain and extend. They also make it easy for developers to avoid code smells, easily refactor code, and are also a part of the agile or adaptive software development.

  • Single responsibility principle
  • Open–closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency inversion principle

C++ Design Patterns (do not abuse them: let the thing simple as possible)

Software design patterns are general reusable solutions to problems which occur over and over again in object-oriented design enviroment. It is not a finished design that can be transformed into source code directly, but it is template how to solve the problem. We can classify them by purpose into creational (abstract the instantiation process), structure (how classes and objects are composed to form larger structures) and behavioral patterns (the assignment of responsibilities between objects).

Creational Patterns

Structural Patterns

  • Adapter, interface to an object
  • Bridge, implementation of an object
  • Composite, structure and composition of an object
  • Decorator, responsibilities of an object without subclassing
  • Facade, interface to a subsystem
  • Flyweight, storage costs of objects
  • Proxy, how an object is accessed (its location)

Behavioral Patterns

  • [Chain of Responsibility later], object that can fulfill a request
  • [Command later], when and how a request is fulfilled
  • [Interpreter later], grammar and interpretation of a language
  • [Iterator later], how an aggregate's elements are accessed
  • [Mediator later], how and which objects interact with each other
  • [Memento later], what private information is stored outside an object, and when
  • [Observer later], how the dependent objects stay up to date
  • [State later], states of an object
  • [Strategy later], an algorithm
  • [Template Method later], steps of an algorithm
  • [Visitor later], operations that can be applied to objects without changing their classes

Other Languages

In my repository you can find implementation of desgin patterns also in languages as

References

Design patterns in this repository are based on

About

example of modern design patterns GOF and object-oriented computer programming (SOLID) in C++11/14

License:MIT License


Languages

Language:C++ 100.0%