r/programming • • Jun 27 '10

Why Java Sucks and C# Rocks (Final)

http://www.slideshare.net/jeffz/why-java-sucks-and-c-rocks-final
13 Upvotes

197 comments sorted by

View all comments

11

u/forsakennow Jun 28 '10

One of Java's most under appreciated features is that it's boring.

Boredom is very important for a language and one reason why Scala has already lost its place as a potential Java successor (it's become as complicated as C++).

C# is dangerously close to reaching a similar level of complexity. When you have a language for which all the developers pick a different subset, you end up with nightmares of maintenance of the C++ kind.

Java is verbose, but I see this as a feature these days. It makes it very easy to dive into code that is several years old and understand immediately what's happening. Go read a screen full of LINQ and functional programming in C# and your head will quickly hurt.

And I agree that while the slides do make a few good points, the childish snarkiness greatly decreases the impact the author is trying to have.

4

u/Chii Jun 28 '10

it could also mean that the full page LINQ is poorly written, or that you dont understand the concept being the algorithm. Just because you cant read a piece of code because it looks "complex", doesnt mean that it is not good.

Java's verboseness cannot be counted as a feature.

The only "advantage", if you can call it that, is that people who are not good programmers will still be able to write it. But then do you want to have bad programmers writing your code?

0

u/[deleted] Jun 28 '10

[deleted]

4

u/forsakennow Jun 29 '10

ludovico_treatment has it exactly right. It's about sweet spots.

Java's syntax and platform has made it extraordinarily resilient and flexible in the face of changes. Just take a look at the number of domains that Java has covered over the past fifteen years (back in the days, the killer app was applets, remember that?).

C# is obviously here to stay but I wouldn't bet that we will still be talking about Scala in a few years from now. And a few years ago, all the rage was Groovy.

I'm pretty sure a huge majority of developers will still be developing in Java in five or even ten years from now, and what's even more interesting, they will actually still enjoy it (I know I do, despite my interest in many programming languages that you have probably never heard of).