java - What is the reasoning behind the Interface Segregation Principle? -
the interface segregation principle (isp) says many client specific interfaces better 1 general purpose interface. why important?
isp states that:
clients should not forced depend on methods not use.
isp relates important characteristics - cohesion , coupling.
ideally components must highly tailored. improves code robustness , maintainability.
enforcing isp gives following bonuses:
- high cohesion - better understandability, robustness
- low coupling - better maintainability, high resistance changes
if want learn more software design principles, copy of agile software development, principles, patterns, , practices book.
Comments
Post a Comment