Slide 5
Slide 5 text
PATTERNS
DESIGN PRINCIPLES VS DESIGN PATTERNS
Design patterns are reusable solutions to
common problems in software design.
They provide a template or blueprint for
solving specific design issues in object-
oriented programming.
Design principles are fundamental guidelines
that help in creating well-structured,
maintainable, and flexible software. They are
broad concepts that promote good software
design practices.
PRINCIPLES
• SOLID Principles: A set of five principles (Single Responsibility, Open/Closed, Liskov Substitution,
Interface Segregation, and Dependency Inversion) that help in writing scalable and maintainable object-
oriented code.
• DRY (Don’t Repeat Yourself): Encourages eliminating duplication in code by abstracting common
functionality.
• KISS (Keep It Simple, Stupid): Advocates for simplicity in design.