![](https://hackingwithpython.online/wp-content/uploads/2023/11/pexels-max-rahubovskiy-7174400.jpg)
How to Create an Easy Thread-Safe Object Pool in Python with ContextManager
Introduction Sometimes, to save time and resources, it’s handy to have a collection of ready-to-use items, which we...
![](https://hackingwithpython.online/wp-content/uploads/2023/11/pexels-kelly-3861787.jpg)
Mastering the Easy Art of Delegation in Python: A Step-by-Step Guide
Introduction Delegation is like passing a job to someone else. In Python, you can do this by using...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-258510.jpg)
Making Resource Acquisition Easy: Python’s Simple Guide to RAII
Introduction Resource Acquisition and Initialization means the following: There are several ways to implement this pattern in Python:...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-maria-orlova-4940784.jpg)
Simple Resource Management: Implementing the Object Pool Pattern in Python
Introduction Sometimes, for the sake of efficiency, it can be really helpful to keep a group of ready-to-use...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-mike-bird-192499.jpg)
Easy Implementation of Python’s Lazy Initialization Pattern for Improved Efficiency
Introduction Sometimes, making something can be costly. It might take a lot of resources or time to create...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-73833.jpg)
Unlocking the Magic: Mastering the Factory Method in Python
Introduction In this article, we’ll explore a concept called the Factory Method in Python. The Factory Method is...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-francesco-paggiaro-1363191.jpg)
Easy patterns in Python: Chain of Responsibility
Introduction The Chain of Responsibility pattern describes a chain of command/request receivers. The client has no idea which...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-miguel-a-padrinan-3785932.jpg)
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...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-phil-evenden-18656971.jpg)
Easy Patterns in Python: The Bridge
Introduction The Bridge pattern is a design pattern that is meant to “decouple an abstraction from its implementation...
![](https://hackingwithpython.online/wp-content/uploads/2023/10/pexels-pixabay-256262.jpg)
Easy Python Patterns: The Observer pattern
Introduction The observer pattern is a software design pattern that allows an object, usually called the subject, to...