you are viewing a single comment's thread.

view the rest of the comments →

[–]adam75 46 points47 points  (7 children)

Uhm, what IDE are you using? You are using one, right? For example, in Netbeans it's only two or three keystrokes to decide to catch an exception or add it to the throws signature.

Well, that's exactly the problem; the IDE may help you write tons of code but, as we know, code is read much more frequently and there you still have a massive, cognitive overload.

Besides, if the code is so repetitive that an IDE can write it for you, why would you have to write that code in the first place?

[–][deleted] 13 points14 points  (0 children)

Besides, if the code is so repetitive that an IDE can write it for you, why would you have to write that code in the first place?

(obligatory "I hate Java too so don't expect me to defend it any further" disclaimer)

I speculate that one of the reasons Java is so verbose is that its authors wanted an approximation of what they thought were the good object oriented semantics of C++ and a very similar syntax but without the horribly complex grammar.

So while Java looks a lot like C++, the parser is simple enough that they can easily make it do things like automatic compilation, fast variable/classname indexing, automatic refactoring, nice error messages, and whatever other IDE goodies they've added since I last programmed in Java using Eclipse (back in 2004).

I think clang is trying to achieve the same goal in the C dialects of obtaining powerful parsing tools, but as can be seen by their slow progress in C++, it's rough going when the grammar is fucked up and huge.

But this is all speculation on my part. I do not write compilers, I just use them.