DEV Community

shivasubramaniamR
shivasubramaniamR

Posted on

Design Pattern Series - SOLID

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.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️