-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Get Your Hands Dirty on Clean Architecture
By :
After the rant about layered architecture in the previous chapter, you are right to expect this chapter to discuss an alternative approach. We will start by discussing the Single Responsibility Principle and the Dependency Inversion Principle. They are the "S" and the "D" of the SOLID principles, which you can read about in detail in "Clean Architecture" by Robert C. Martin or on Wikipedia at https://en.wikipedia.org/wiki/SOLID).
Everyone in software development probably knows the Single Responsibility Principle (SRP) or at least assumes they know it.
A common interpretation of this principle is this:
A component should do only one thing, and do it right.
That's good advice, but not the actual intention of the SRP.
"Doing only one thing" is actually the most obvious interpretation of a single responsibility, so it's no wonder that the SRP is frequently interpreted...
Change the font size
Change margin width
Change background colour