Skip to content

Commit 86d8299

Browse files
authored
Update README.md
1 parent 25ec284 commit 86d8299

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

1 - Single Responsibility Principle/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
### Description
44

5-
The Single Responsibility Principle (SRP) is a design principle from the SOLID principles that suggests that a class or module should have only one reason to change. In other words, a class should have only one responsibility or job, and it should do that job well.
5+
The Single Responsibility Principle (SRP) establishes that a class or module should have only one reason to change. Which means a class should have only one responsibility or job, and it should do that job well.
66

7-
The SRP is important because it promotes modularization and separation of concerns, which leads to code that is easier to understand, modify, and maintain. By ensuring that each class has only one responsibility, changes to one part of the codebase are less likely to affect other parts of the system. This makes the codebase more robust, reliable, and scalable.
8-
9-
To follow the SRP, it's important to carefully consider the responsibilities of each class or module in the system. If a class has more than one responsibility, it's usually a sign that it needs to be broken up into smaller, more focused components. By keeping classes focused on a single responsibility, you can ensure that they are easier to test, understand, and maintain, which ultimately leads to a more maintainable and reliable codebase.
7+
The benefit of implementing this principle is that it promotes modularization and separation of concerns. By ensuring that each class has only one responsibility, changes to one part of the codebase are less likely to affect other parts of the system.
108

9+
It's important to carefully consider the responsibilities of each class or module in the system. If a class has more than one responsibility, it's usually a sign that it needs to be broken up into smaller, more focused components.
1110

1211
### Class diagram from this example
1312

0 commit comments

Comments
 (0)