First things first, why do we need Design Pattern ?
we can get many answers for the above question, but the crux of Design pattern is as below
Design Patterns provide easy to recognize and use OOP solutions to common problems that arise in software development and provide proven solutions.
Before we dive into the Design Patterns, it is important to learn about the SOLID Principles.
SOLID is an acronym that represents a set of five design principles in object-oriented programming (OOP) that aim to make software designs more maintainable, flexible, and robust. The SOLID principles were introduced by Robert C. Martin (also known as Uncle Bob) and have become widely adopted in the software development industry
S -> Single Responsibility Principle (SRP)
O -> Open/Closed Principle (OCP)
L -> Liskov Substitution Principle (LSP)
I -> Interface Segregation Principle (ISP)
D -> Dependency Inversion Principle (DIP)
These SOLID principles work together to create a codebase that is more maintainable, extensible, and easier to understand.
Now the Million Dollar Question - Who should use this? is it Only a developer? Automation Testers(QA) don't need it ?
Ofcourse it is needed by QA(Automation testers). When the Code base grows bigger, without these SOLID Principles and Design Pattern, It is very tedious to maintain that code base.
Top comments (0)