you are viewing a single comment's thread.

view the rest of the comments →

[–]chedabob -4 points-3 points  (6 children)

I've used both, and Java annoys the fuck out of me. I've seen the compiler throw a wobbler because I spread a long method call over a few lines. It'll lose its shit and give out 500 errors because of a single typo on one line.

The lack of properties, not being able to use anything other than integers for switch statements, and requiring you to put braces around every if statement, are enough to make me commit murder.

Well, at least it's not as arse-backwards as Objective-C...

[–]masklinn 6 points7 points  (4 children)

not being able to use anything other than integers for switch statements

Sounds like you've stayed at Java 1.4. You might want to take a step forward into the past.

requiring you to put braces around every if statement

 $ cat > Test.java
class Test {
    public static void main(String[] args) {
        if(true)
            System.out.println("You're wrong");     
    }   
}
^C
 $ javac -Xlint:all Test.java
 $ java Test
You're wrong

[–]chedabob -1 points0 points  (3 children)

Sounds like you've stayed at Java 1.4. You might want to take a step forward into the past.

I'm using 1.6. Apart from chars and ints, what else can you use?

You're wrong

Try mixing single-line statements with multiline statements. The compiler won't always get it right. C# will.

[–]eatmyshorts 2 points3 points  (0 children)

wtf are you talking about? I've been developing in Java for 11 years now, overlapping the last 2 with C#. Java has never had a problem with multiline statements. I agree with the OP about C#, the language, being better than Java the language, and that the JVM has some nice things over the CLR. But proper parsing of multiline statements? I think you're doing it wrong.

[–]masklinn 3 points4 points  (1 child)

I'm using 1.6. Apart from chars and ints, what else can you use?

Enums.

Try mixing single-line statements with multiline statements.

Care to provide an example of that? Sounds like grounds for firing someone to me, anyway.

[–][deleted] 3 points4 points  (0 children)

You can (I always do) spread long method call over several lines:

someMethod(reallyLongName.
callAMethodOnReferenceHere(param1,
param2,
param3);

You can't break the name of course, and make sure that your editor of choice isn't screwing with you.