DEV Community

loading...

Discussion on: Single-Responsibility Principle done right

Collapse
riccardo_cardin profile image
Riccardo Cardin Author

Maybe you're right. However, if the reading and write operations are separated into two classes, the overall dependency degree of a client will be increased without any reason.

This fact makes me prefer the solution that uses a single type that exposes both the reading and write operations.