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



At 6:34 am -0700 29/10/04, Glen Fisher wrote:

| Even if the original design is ok, when someone else comes along and | has to fix something in code using templates.

If templates make the code *simpler*--clearer, more maintainable, etc.--fine. If not, then they shouldn't be there, and you're seeing an incompetent programmer at work.

I had the pleasure (I'll let you interpret that however you choose, though it was quite interesting!) of doing a few months of C++ again recently. The guy I was working was very smart and highly competent technically but did have rather a tendency to overengineer and come up with needlessly complex and generic designs, based heavily on templates. The end result was that some simple changes that I would have expected to take about half an hour in Java ended up taking the two of us more than a week. I didn't like templates before; I like them even less now. I'm afraid experiences like that (and others) have made me very wary of generics in Java, even if they're not exactly the same as C++ templates.


-Rolf
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
_______________________________________________
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.