The Interface Segregation Principle
Why is the single responsibility principle (SRP) so hard to define? From my experience, SRP stumbles people much more than any other SOLID principle. I thought back to my own struggles with the five principles, and thought it would be better to explain SOLID in a different way; or rather, a different order. What is an interface? a point where two systems, subjects, organizations, etc. meet and interact. When A wants to interact with B, A will communicate through interface C, for which A and B mutually understands....