It is currently Wed Feb 08, 2012 11:42 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 2 of 2 [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Tue Aug 19, 2008 10:34 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Lots of people, including myself, have to actively learn how to think to get a simple clean design. This is particularly true when using C++ where we are not fenced in and therefore have to create our own boundaries. A port on an interface is outside that boundary in my current thinking.

Even well practised, seemingly OO, C++ guys don't always get it whereas Java guys generally always do. When you hear a Java guy criticise C++ he's often, sometimes indirectly, referring to the fact that C++ doesn't actually force the concept of an interface. It's left up to the programmer to ensure that the 'class' is really an ABC (Abstract Base Class).

One of the stumbling blocks to C++ guys learning, and embracing, interfaces was the general panic around multiple-inheritance (prohibited by Java). It's not the same as multiple-realization (allowed by Java). Trying to use interfaces whilst avoiding multiple inheritance results either in fat interfaces, and low reusability, or 'inheritance' between interfaces, and a complicated mess.

http://www.artima.com/intv/modern.html

Thanks for sticking with the thread and being open about what you're trying to achieve.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 2 of 2 [ 16 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred