I is for the Interface Segregation Principle


The "I" in SOLID stands for Interface Segregation Principle. It's more of a mouthful to say than it is to understand.

Clients should not be forced to depend upon interfaces that they do not use.

Succinct right?

i.e. Keep your interfaces as small and modular as possible. It maximizes their potential for reuse and prevents clients/end users from depending upon functions/methods they don’t really need.

Popular posts from this blog

S is for the Single Responsibility Principle

L is for the Liskov Substitution Principle