Skip to Main Content
Get Your Hands Dirty on Clean Architecture
book

Get Your Hands Dirty on Clean Architecture

by Tom Hombergs
September 2019
Beginner content levelBeginner
156 pages
2h 47m
English
Packt Publishing
Content preview from Get Your Hands Dirty on Clean Architecture

Chapter 2

Inverting Dependencies

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).

The Single Responsibility Principle

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Your Hands Dirty on Clean Architecture - Second Edition

Get Your Hands Dirty on Clean Architecture - Second Edition

Tom Hombergs

Publisher Resources

ISBN: 9781839211966Other