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 moreTag: ood
Facade Pattern in Python
![](http://karolos.me/wp-content/uploads/2020/03/facade-1.jpg)
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 moreS.O.L.I.D. Principles in Python
![](http://karolos.me/wp-content/uploads/2021/02/solid.jpg)
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