Re: C# vs. C++
In article news:<4861b785$ 0$90275$1472629 8@news.sunsite. dk>, Arne
Vajhøj wrote:
No it isn't. It's about a certain kind of encapsulation.
Using OOP is itself a design choice -- a good one in some cases and a
poor one in others.
Encouragement and forcing are very different games. In solutions that
lend themselves well to OOP the benefits to be gained from OOP are
encouragement enough -- no need for the language to force the issue.
If your solution is not one that naturally lends itself to an OO
approach then forcing people to use a language that steers them
singlemindedly along an OOP path will only engender resentment and bad
programming.
It's certainly easy to use MI badly -- especially in C++, which doesn't
believe in restricting choices unnecessarily -- but that doesn't mean
that isn't a useful technique, or that it can't be used productively
and well.
Cheers,
Daniel.
In article news:<4861b785$ 0$90275$1472629 8@news.sunsite. dk>, Arne
Vajhøj wrote:
Good OOP is about limiting choices.
Using OOP is itself a design choice -- a good one in some cases and a
poor one in others.
You encourage or force developers to do things the right way.
lend themselves well to OOP the benefits to be gained from OOP are
encouragement enough -- no need for the language to force the issue.
If your solution is not one that naturally lends itself to an OO
approach then forcing people to use a language that steers them
singlemindedly along an OOP path will only engender resentment and bad
programming.
Multiple inheritance has a rather bad track record.
believe in restricting choices unnecessarily -- but that doesn't mean
that isn't a useful technique, or that it can't be used productively
and well.
Cheers,
Daniel.
Comment