Category: 6. SOLID principles
-
Python Dependency Inversion Principle
Summary: in this tutorial, you’ll learn about the Python dependency inversion principle to make your code hi Introduction to the dependency inversion principle The dependency inversion principle is one of the five SOLID principles in object-oriented programming: The dependency inversion principle states that: The dependency inversion principle aims to reduce the coupling between classes by…
-
Python Interface Segregation Principle
Summary: in this tutorial, you’ll learn about the interface segregation principle and how to apply it in Python. Introduction to the interface segregation principle The interface segregation principle is one of five SOLID principles in object-oriented programming: An interface is a description of behaviors that an object can do. For example, when you press the…
-
Python Liskov Substitution Principle
Summary: in this tutorial, you’ll learn about the Liskov Substitution Principle and how to implement it in Python. Introduction to the Liskov substitution principle The Liskov substitution principle (LSV) is one of the five principles in the SOLID principles. The L in SOLID stands for the Liskov substitution principle. The Liskov substitution principle states that…
-
Python Open–closed principle
Summary: in this tutorial, you’ll learn about the open-closed principle to extend the system without directly modifying existing code. Introduction to the open-closed principle The open-closed principle is one of the five principles in the SOLID principle. The letter O in the SOLID stands for the open-closed principle. The open-closed principle states that a class, method, and function should…
-
Python Single Responsibility Principle
Summary: in this tutorial, you’ll learn about the single responsibility principle and how to implement it in Python. What is SOLID SOLID is an abbreviation that stands for five software design principles compiled by Uncle Bob: The single responsibility is the first principle in the SOLID principles. Introduction to the single responsibility principle The single responsibility…