Announcement
iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008
Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.
You don't even have to leave your chair. Login and vote now.
Lately, I’ve been openly questioning if we should always use interfaces. Are they always required by default and is the extra cost of keeping the interface and the implementation in sync worth the trouble? Let's find out...
Comments
kbilsted replied ago:
You state "Let me state that I’m not thinking about actually dumping the interfaces. It’s a proven practice...." so what are you thinking then?? Also, if you do not have interfaces, how are you able to inject e.g. transaction handling (e.g. using Spring) or overcome the inevitable multiple inheritance problem? Finally, I am clueless as to what cost there is involved in the interface. You can have eclipse generate an interface on the basis of a class, and if you use the refactoring functionality of rename, move etc, I can't really see the problem.
Voters For This Link (2)
Voters Against This Link (3)