Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: looking at generic



On Oct 29, 2004, at 9:34 AM, email@hidden wrote:

Rolf Howarth commented:
| That's true of course. But templates (and even worse, operator
| overloading - uuggghh!) make it that much easier to write poorly
| designed code, and to write code which is difficult to understand.

No argument there. With power comes responsibility, and C++ gives you a lot of power, assuming that the programmer has the discipline and knowledge to use it properly.

This misses the point, I think. There is a good reason why decent languages have to be, too some degree, restrictive of your "power". Because although flexibility might be useful for some, it is usually a bad bad thing in general. Because as coders we don't live in a void --- we have to interoperate with other coders, most of whom have, I am sad to say, atrocious coding style. Sure C++ gives you more ways to do X. But as a result you have to deal with coders who all decided to do X the wrong way. Now you have to store ALL ways, good and bad, to do X, in your head. I for one could use those neurons for something more useful.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.