Easy patterns in Python: The Composite Pattern
Introduction The composite pattern allows you treat a group of objects like a single object. The objects are...
Easy Patterns in Python: The Bridge
Introduction The Bridge pattern is a design pattern that is meant to “decouple an abstraction from its implementation...
Easy Python Patterns: The Observer pattern
Introduction The observer pattern is a software design pattern that allows an object, usually called the subject, to...
Easy Python Patterns: The Memento pattern, or how to build an undo stack
Introduction You can use the memento pattern to (partially) expose the internal state of an object. One use...
Easy Python Patterns: The Iterator
Introduction In Design Patterns, the Iterator is a way of traversing over a container, that is access each...
Easy Patterns in Python: The Flyweight Pattern
Introduction The flyweight pattern is a pattern that helps minimize memory usage by sharing and reusing data. A...
Easy Patterns in Python: The Interpreter
Introduction The Interpreter pattern can be used to interpret and evaluate sentences in a language. The idea is...
Easy Patterns in Python: the Facade
Introduction The facade pattern is used as a way to hide more complex logic. A facade can do...
Easy Types and Generics in Python: the Prototype Pattern
Introduction The prototype-pattern is a creational design pattern that allows us to create new objects by cloning existing...
Easy Python Patterns: The decorator pattern
Introduction The Decorator pattern can be used to dynamically alter or add functionality to existing classes. This pattern...