Friday, April 2, 2010

Java Interfaces

To my fellow programmers, if you design an interface that has exactly one implementation then you are wasting your time and making the code less readable for everyone that comes after you.  An interface is for code that will have MULTIPLE implementations.  A one to one relationship normally leads to a class that is not well encapsulated and a class that is not encapsulated leads to bugs.

No comments:

Post a Comment