Tag: design-principles
All the articles with the tag "design-principles".
The Single Responsibility Principle: Why Class Files Should Fit on One Screen
Published: at 02:00 AMUnderstanding the Single Responsibility Principle through real-world examples, from a massive 10,000-line SQL processing class to web application architecture evolution.
The Open-Closed Principle: How to Implement Changes Without Modifying Code
Published: at 02:00 AMUnderstanding how to implement requirement changes without modifying existing code through the Open-Closed Principle and various design patterns like Strategy, Adapter, Observer, and Template Method.
The Liskov Substitution Principle: Can a Square Inherit from a Rectangle?
Published: at 02:00 AMUnderstanding the Liskov Substitution Principle through the classic Square-Rectangle problem and why subclasses must be substitutable for their base types.
The Dependency Inversion Principle: How to Reuse Code Without Depending On It
Published: at 02:00 AMUnderstanding how frameworks like Spring and Tomcat enable code reuse without direct dependencies through the Dependency Inversion Principle and interface ownership inversion.
Component Design Principles: Where Are Component Boundaries?
Published: at 02:00 AMExploring component design principles, examining both cohesion and coupling aspects to determine optimal component boundaries in complex software systems.