Python week Python week
This week up to 80% off on Python courses. More info

GOF - Behavioral Patterns

Observer

Observer

The Observer design pattern allows the object to manage a number of observers who respond to changes of its state by calling their methods.
FreeUnratedWritten by David Capka
Strategy

Strategy

The Strategy design pattern allows to replace an algorithm with another one at runtime without changing the code. Algorithms are encapsulated modules.
FreeUnratedWritten by David Capka
Template method

Template method

The Template Method design pattern defines the template of an algorithm as its individual steps. The descendants then implement these steps.
FreeUnratedWritten by David Capka
State

State

The State design pattern allows an object to dramatically change its behavior, which depends on the object's state. Replaces complex branching.
PremiumUnratedWritten by David Capka
Memento

Memento

Memento is a simple design pattern that stores the internal state of an object without violating the encapsulation principle.
FreeUnratedWritten by David Capka
Interpreter

Interpreter

The Interpreter design pattern defines how to implement an interpretation of a language using the object-oriented programming.
PremiumUnratedWritten by David Capka
Mediator

Mediator

The Mediator design pattern introduces a mediator between direct communication of several objects, reducing the coupling and responsibility of the objects.
FreeUnratedWritten by David Capka
Iterator

Iterator

The Iterator design pattern introduces an external object that allows to go through a collection linearly without having to know its internal structure.
PremiumUnratedWritten by David Capka
Chain of Responsibility

Chain of Responsibility

The Chain of Responsibility design pattern allows to separate the sender of a request from one or more recipients.
FreeUnratedWritten by David Capka


 

Activities (1)