November 2018
Intermediate to advanced
346 pages
8h 12m
English
Personally, I prefer a much more direct definition—interfaces should be reduced to the minimum possible size.
Let's first discuss why fat interfaces might be a bad thing. Fat interfaces have more methods and are therefore likely to be harder to understand. They also require more work to use, whether this be through implementing, mocking, or stubbing them.
Fat interfaces indicate more responsibility and, as we saw with the SRP, the more responsibility an object has, the more likely it will want to change. If the ...
Read now
Unlock full access