A tutorial on Context Managers in Python

9 mins read Python’s context managers are great for resource management and stopping the propagation of leaked abstractions. You’ve probably used it while […]

Python testing tutorial using pytest

18 mins read Testing your code brings a wide variety of benefits. It increases your confidence that the code behaves as you expect and […]

Installing g++ (C++ Compiler) on Windows

11 mins read Follow these steps to install g++ (the GNU C++ compiler) for Windows. There is no room for creativity here; you must […]

A complete guide to Python’s magic methods with example

33 mins read Introduction What are magic methods? They’re everything in object-oriented Python. They’re special methods that you can define to add “magic” […]

Python Data Structures and operations time complexity

< 1 min Here is a list of references for the time complexity of operations in different Python Data structures: https://intellipaat.com/blog/tutorial/python-tutorial/data-structures-with-python-cheat-sheet/ https://cooervo.github.io/Algorithms-DataStructures-BigONotation/index.html https://wiki.python.org/moin/TimeComplexity […]

Git Rebase Tutorial

5 mins read If you are a beginner in the Software Industry, version control would be one of the headaches that you come […]

Git Branching Workflows Tutorial

17 mins read In this article, we will cover the most popular branching workflows for Git users, so you can decide which fits […]

Simple Factory and Factory Method design patterns

2 mins read Simple Factory: Definition: Creates objects without exposing the instantiation logic to the client. Refers to the newly created object through […]

Builder design pattern explained

14 mins read Intent Builder is a creational design pattern that lets you construct complex objects step by step. The pattern allows you to […]

Deep dive to super() method in Python for single and multiple inheritance

15 mins read While Python isn’t purely an object-oriented language, it’s flexible enough and powerful enough to allow you to build your applications […]

Understanding __new__ and __init__ magic methods in Python

4 mins read The purpose of this post is to discuss __new__ and __init__ methods in Python. The __new__ and __init__ methods behave differently between themselves and between the old-style […]

Python __new__ magic method explained

10 mins read Python is an Object-oriented language, everything is an object in python. Python is having a special type of method called […]

The Command Design Pattern

16 mins read Intent Command is a behavioral design pattern that turns a request into a stand-alone object that contains all information about the […]

Observer Design pattern

14 mins read Intent Observer is a behavioral design pattern that lets you define a subscription mechanism to notify multiple objects about any events […]

Strategy Design Pattern

9 mins read What Actually a Strategy is? Let’s start with a formal definition then we’ll break it down. The definition taken straight […]