December 04, 2006

Java is the Snubby-Nosed Scissors of Programming Languages

I've had to teach myself Java for my current contract. You may be surprised to find that with all the code I sling, I've not done any Java development up until now. Java is popular for enterprise application development, and I haven't done a lot of work in that space before.

I usually like learning new languages. I'm not enjoying Java at all. It's verbose and wordy, like a pedantic little schoolkid. It's like the snubby-nosed scissors of programming languages.

Here is an example from Arnold, Gosling, and Holmes that illustrates my point:

When you design a class, you can decide whether to trust its extended classes. The SortDouble class is designed not to trust them, and that is generally the best way to design classes for others to extend. A guarded design not only prevents malicious use, it also prevents bugs.

In other words, Java tries to make it safe so crappy programmers won't hurt themselves.

This, unfortunately, also prevents good programmers from doing good things.

Consider the "reflection" quality of the Ruby programming language. Ruby lets you define or redefine just about anything you want. Wish the String class did something different? Fine, you can rip it open and insert or replace any bits you want.

This, of course, is very dangerous. Nonetheless, it can be a powerful tool if used smartly and judiciously. Java doesn't even give you that option. It wants to keep you safe.

The problem with languages that try to keep the programmer safe is that bad programmers still generate crappy code, and the good programmers just get frustrated. I'm frustrated.

Posted by chip at 11:54 PM to: Holidailies 2006, Rants, Software
Permalink | Comments (2) | Trackbacks (0)

Trackbacks

Trackbacks have been closed on this entry.

Comments

Forget this Java fad; real programmers use COBOL. (And forget GUI interfaces; give me an IBM 029 key punch and a pack of blank 5081 cards!) LOL

Posted by: Jim on December 6, 2006 06:13 AM

http://www.deftcode.com/archives/every_language_war_ever.html

Posted by: Brian on December 7, 2006 12:42 PM
This is an old entry. Comments have been closed.

[switch to printable format]