Part III: SOLID code
Chapter 7 The single responsibility principle
Chapter 8 The open/closed principle
Chapter 9 The Liskov substitution principle
Chapter 10 Interface segregation
Chapter 11 Dependency inversion
SOLID is the acronym for a set of practices that, when implemented together, make code adaptive to change. The SOLID practices were introduced by Bob Martin almost 15 years ago. Even so, these practices are not as widely known as they could be—and perhaps should be.
In this part, a chapter is devoted to each of the SOLID principles:
S The single responsibility principle
O The open/closed principle
L The Liskov substitution principle ...
Get Adaptive Code: Agile coding with design patterns and SOLID principles, 2nd Edition 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.