The SOLID Principles

In this chapter, we will continue to explore concepts of clean design applied to Python. In particular, we will review the so-called SOLID principles, and how to implement them in a Pythonic way. These principles entail a series of good practices to achieve better-quality software. In case some of us aren't aware of what SOLID stands for, here it is:

  • S: Single responsibility principle
  • O: Open/closed principle
  • L: Liskov's substitution principle
  • I: Interface segregation principle
  • D: Dependency inversion principle

The goals of this chapter are as follows:

  • To become acquainted with SOLID principles for software design
  • To design software components that follow the single responsibility principle
  • To achieve more maintainable ...

Get Clean Code in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.