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
Month: May 2020
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
Running Another Process With Python
We have a Python software and now we want it to run a new process. How is it possible? In this post, I'll review the different ways to run another process in Python 3.8.2 running on Posix compatible operating system. There are two modules for our cause: os: provides a portable way of using operating… Continue reading Running Another Process With Python