202204291514 Interface segregation
The interface segregation principle of the 202204272244 SOLID design principles for software development, which states:
Clients should not be forced to depend upon interfaces that they do not use.1
Or alternatively
Many client-specific interfaces are better than one general-purpose interface.1
In other words, large interfaces with many methods that are only loosely coupled should be broken down into smaller 202204291512 Single responsibility interfaces so that consumers can implement or depend on only the behavior that they need to and no more. This should, in theory, make the system less coupled and easier to refactor.
-
Wikipedia contributors. (2022). SOLID. In Wikipedia. https://en.wikipedia.org/w/index.php?title=SOLID&oldid=1069309351 ↩ ↩2