November 04, 2002
Spam, Spam, Spam, Spam, Spam, Spam, Spam.

Java's Casts of Thousands

More than any other programming language Java forces programmers to embed hard-coded knowledge throughout their code about the types of data items. The numerous explicit cast operations in a typical program, not only annoy the programmer but also contribute greatly to the unreasonably high cost of maintaining Java software.

Posted to Java by Simon Brunning at November 04, 2002 01:12 PM
Comments

The article has several flaws - the most obvious of which being the vagueness of the Additive interface. All the methods accept and return Objects, but you can't actually add two arbitrary Objects together without knowing much more about the runtime type. Hence the problem. Excessive casting is the symptom, not the cause.

I've blogged words to the same effect: http://radio.weblogs.com/0111784/2002/11/04.html#a147

-Darren

Posted by: Darren Hobbs on November 5, 2002 10:12 AM
Post a comment
Name:


Email Address:


URL:



Comments:


Remember info?