1
Foundational Design Principles
Design principles form the foundation of any well-architected software. They serve as the guiding light that helps developers navigate the path of creating maintainable, scalable, and robust applications while avoiding the pitfalls of bad design.
In this chapter, we will explore the core design principles that all developers should know and apply in their projects. We will explore four foundational principles. The first one, Encapsulate What Varies, teaches you how to isolate the parts of your code that are subject to change, making it easier to modify and extend your applications. Next, Favor Composition, makes you understand why it’s often better to assemble complex objects from simple ones rather than inheriting ...
Get Mastering Python Design Patterns - Third 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.