I Interface Segregation Principle ISP
3 sectionsRapid overview
Interface Segregation Principle (ISP)
TL;DR
ISP says clients should never be forced to depend on methods they don't use. Split fat interfaces into focused capability slices (Playable, Seekable, Fullscreenable) so an audio player isn't pretending to support fullscreen — and so consume…
Read →How it works
> "Clients should not be forced to depend on methods they do not use."
Read →Quick recall Q&A
Q: How does ISP improve React component reusability? A: Components with minimal prop requirements can be used in more contexts. A <Button onClick={...}> is more reusable than <Button form={formObject}> that requires a fat form interface.
Read →