«« Next » « Previous
«« Next » « Previous

Link Details

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.
Link 81496 thumbnail

By wheazel
via inze.be
Submitted: May 17 2008 / 15:28

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...
  • 2
  • 3
  • 384
  • 179

Comments

Add your comment
User 246188 avatar

kbilsted replied ago:

0 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (3)