solid
-
Single Responsibility Principle (SRP)Modeling/DesignPattern 2020. 2. 26. 00:45
1. Overview There should never be more than one reason for a class to change. A class is focused, single functionality, and addresses a specific concern. 2. Intuition Guess an AwesomeClass which have communication protocol, message format, and authentication. When we have to change every HTTP to HTTPS, JSON to XML, and authentication, AwesomeClass should be changed. So Single Responsibility mean..