|
Re: Steve Yegge on Code's Worst Enemy
|
Posted: Dec 21, 2007 11:43 AM
|
|
James Watson wrote:
I also take issue with the assertion that building something to run on the JVM implies it must be written in Java. There are a number of languages that compile directly to bytecode.
You're right, James. I apologize - I didn't do my homework. It would certainly be possible for Steve to write in something else and compile to Java bytecode. It still seems unnecessarily convoluted to me, though.
Frank Sommers wrote:
The Ruby codebase is about 1/5 of the Java codebase. Not only that, but looking at the Ruby code is really easy on the eyes. Again, I definitely would not critique, let alone abandon, Java. But once you've seen that it's possible to provide the exact same functionality in 1/5 the code, it's hard to accept that that code base had to be 5X that big.
I'm curious, Frank. Here's my question: "Would you be able to port the Ruby codebase back into Java, *without increasing the volume of code*?"
If you think that you'd be unable to do this, then I'd have to suggest that Java is incapable of the same concision that is possible in Ruby. If this is the case, I'm afraid you might have to critique Java (relatively speaking) on this point. If you think you *could* write a Java implementation that matched the Ruby, then the simple answer is that you merely *didn't* the first time you wrote the code. The reasons *why* you didn't (mindset, habit, etc) would be a separate issue, but very interesting in their own right.
|
|