Skip to main content

2 docs tagged with "interface-segregation"

View all tags

Chapter 10: ISP — The Interface Segregation Principle

No client should be forced to depend on methods it does not use. ISP keeps interfaces focused, prevents unnecessary recompilation, and — at the architectural level — prevents importing modules that drag in unwanted dependencies.

Interface Segregation Principle

Keep your interfaces **small and focused**. Don't create a "fat" interface that bundles unrelated methods together, forcing classes to implement things they.