What does "Interface Segregation Principle" mean in programming?
Interface Segregation Principle is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.
Definition
The I in SOLID. Clients should not be forced to depend on interfaces they do not use. Split large interfaces into smaller, more specific ones so that implementing classes only need to know about the methods relevant to them.
Example
"We split the fat UserRepository interface into ReadableRepository and WritableRepository so read-only services do not have to implement write methods."
Related terms
Ready to practice your English at work?
Lingua-e has interactive exercises built around real developer conversations: standups, code reviews, retrospectives, and more. Practice until it comes naturally.
Try Lingua-e for free