3 ms·
Regarding rule "Object oriented design principle 8 – Interface Segregation principle (ISP)" ... I think this is often overused. I only introduce interfaces when
by mateuszf 14y ago
Regarding rule "Object oriented design principle 8 – Interface Segregation principle (ISP)" ... I think this is often overused. I only introduce interfaces when there is more than one implementation.
Of course if I'm designing stable API this is different.
Also see:
http://stackoverflow.com/a/90915/343699 http://stackoverflow.com/a/90915/343699
- mseebach 14y agoIt can, especially to novice developers, be very helpful to be forced to think of a class exclusively in terms of it's interface. Bad design seems to stand out more.
- qu4z-2 14y agoI would agree. Depending on implementation details tends to lead to much tighter coupling between components.