Data Classes in Python

Python data classes are a relatively new feature that was added in Python 3.7. They are used to create classes that are primarily used to store data. A data class is similar to a regular Python class, but it comes with additional functionality and built-in methods that make it easier to work with structured data.…

Read more

Facade Pattern in Python

The Facade design pattern belongs to the structural design patterns and provides a unified interface to a set of interfaces. It is commonly used in apps written in OOP languages and it intends to provide a convenient interface to the client, thus the latter avoid dealing with complex parts (subsystems). Keep in mind although that,…

Read more

S.O.L.I.D. Principles in Python

In object-oriented programming, S.O.L.I.D. is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable. S.O.L.I.D. Concepts Let us initially briefly describe each one of the principles, before our attempt to elaborate on each one of them with Python examples. Single Responsibility Principle: Any class should only have a single responsibility, meaning that…

Read more