Python quirks

Python’s Super Duper Function

Object-oriented programming (OOP) is one of the popular programming paradigms we have today. In this post, we'll understand how super function works and why it's important. I assume you're familiar with the OOP paradigm. Thus, I don't explain it in this post. There are lots of good materials related to this subject. Let's dive into… Continue reading Python’s Super Duper Function

Software principles

Guardians Of The Program

Let's say we have a special chef robot in a restaurant which can cook a variety of meals for customers. It has a function who's responsible for cooking a meal called cook: class Chef: def __init__(self, name): print(f"Chef name: {name}") def cook(self, meal): pass While meal is defined as: class Meal: def __init__(self, mealId): print(f"Initializing… Continue reading Guardians Of The Program