Sign in

Software Engineer @Byjus, Bangalore, India
https://www.facebook.com/soliddesignprinciples/

Problems without solid principles:-

  • Re-reading code multiple times to get familiar with the codebase to make new changes as per requirement.
  • Hard to understand what a method does.
  • Spending a lot of time to fix a minor bug.
  • Eventually, you are going to spend more time to read than write.
  • Solid design principles encourage us to create more maintainable, understandable, and flexible software.

S -> Single Responsibility Principle:-

A class should have only one responsibility or we can say a class should have only one reason to change.


Photo by Huy Pham on Unsplash

Happy Coding, Cheers!!


Created by me using https://pixteller.com/


Source : https://www.freecodecamp.org/
Source: freecodecamp

Nitin Praksh

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store