A daily dose of software engineering wisdom - inspiring, thought provoking, and sometimes just plain dangerous.

Tags: interface design component

InterfaceSegregationPrinciple

_Many role specific interfaces are better than one general purpose interface_

Think of interfaces in terms of roles. If a class fulfills several roles or has several responsabilities then make it implement several interfaces rather than only one fat one.

This is an enabling technology of component design.

Last published: Tuesday 30th March 2010

<<Previous     Next>>

carriagereturn.org home