menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

The Counte...
source image

Medium

3d

read

263

img
dot

Image Credit: Medium

The Counterintuitive Truth About the Single Responsibility Principle

  • The Single Responsibility Principle (SRP) is often misunderstood as meaning that every part of a program should do only one thing.
  • However, the SRP is about a larger concept than just individual functions.
  • It can be compared to organizing a room, where each drawer holds one type of clothing, similar to functions.
  • The SRP states that the entire room should be the responsibility of one person and should not contain items belonging to others.

Read Full Article

like

15 Likes

For uninterrupted reading, download the app