Skip to Content
Clean Code in Python - Second Edition
book

Clean Code in Python - Second Edition

by Mariano Anaya
January 2021
Intermediate to advanced
422 pages
10h 39m
English
Packt Publishing
Content preview from Clean Code in Python - Second Edition

4

The SOLID Principles

In this chapter, we will continue to explore concepts of clean design applied to Python. In particular, we will review the 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 you 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 code through ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Clean Code in Python

Clean Code in Python

Mariano Anaya

Publisher Resources

ISBN: 9781800560215Supplemental Content