![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-yan-krukau-6611482.jpg)
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...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-bert-5985274.jpg)
Easy Python Patterns: The Iterator
Introduction In Design Patterns, the Iterator is a way of traversing over a container, that is access each...
![](https://hackingwithpython.online/wp-content/uploads/2023/09/EB1911_-_Flight_-_Fig._8_9.jpg)
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...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-267669.jpg)
Easy Patterns in Python: The Interpreter
Introduction The Interpreter pattern can be used to interpret and evaluate sentences in a language. The idea is...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-33317.jpg)
Easy Patterns in Python: the Facade
Introduction The facade pattern is used as a way to hide more complex logic. A facade can do...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-dan-cristian-paduret-1476321.jpg)
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...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-teona-swift-6913173.jpg)
Easy Python Patterns: The decorator pattern
Introduction The Decorator pattern can be used to dynamically alter or add functionality to existing classes. This pattern...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-kindel-media-7054723.jpg)
Python patterns for fun and profit: The Adapter Pattern
Introduction The Adapter pattern is used to make one interface compatible with another. It allows objects with different,...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-ketut-subiyanto-4473400.jpg)
Using Python types for fun and profit: the Visitor Pattern
Introduction The visitor pattern is a design pattern that allows for adding new operations to a collection of...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-276203.jpg)
Using Python types for fun and profit: the Mediator pattern
Introduction The mediator pattern is a pattern used when you want to simplify communication i.e. message dispatching in...