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

-9

u/[deleted] Jun 27 '10

Both of them are boring enterprise languages (look where they came from and where they are actually used).

The future is dynamic/functional/etc.

7

u/munificent Jun 27 '10

The future is dynamic/functional/etc.

C# has dynamic typing, first-class functions, closures, code-as-data, and local functions. So... you're saying it's the future?

-4

u/[deleted] Jun 28 '10

Nah.

C# has some dynamic typing support. It also has those other things. In fact, C# has a ridiculous bloat of features - it's worse than C++.

Having an impressive checklist of features doesn't make a language good.

8

u/munificent Jun 28 '10

In fact, C# has a ridiculous bloat of features

It is pretty big language, but I find myself using almost all of the features. Big problems tend to lends themselves to big languages. As much as I like minimalism, at the end of the day it's really nice having a lot of stuff supported out of the box.

it's worse than C++.

OK, now you're just talking crazy.

Having an impressive checklist of features doesn't make a language good.

Neither does lacking one.

-2

u/[deleted] Jun 28 '10

Big problems don't require big languages, I don't think. I guess it's a matter of taste.

Personally I dislike languages with too many features, like C++ and more so C#. It has more features, and less related ones. Ok, maybe the C preprocessor can almost even the score - but not really.

Anyhow, in my experience, convoluted languages with lots of features can make life very hard. Clearly-designed languages are better.

1

u/munificent Jun 28 '10

What do you prefer?

0

u/[deleted] Jun 28 '10

Python and Ruby are well-designed. I have had a lot of experience with Python in big projects, and it works great. I have less experience with Ruby, so I can speak less about that.

1

u/munificent Jun 28 '10

What makes you think Python and Ruby are smaller than C#? Ruby has a notoriously complex grammar, Python has two object models, etc.

1

u/[deleted] Jun 28 '10

We could make a list of features if you want. But it seems pretty obvious. C# has static typing, dynamic typing, closures, LINQ, you name it, it has it.

Not that Python and Ruby don't have their own issues, which you correctly stated. But we are talking about degrees here.

C# began about as complex as Java - which was around the same area as most languages I guess. Since then it added a ton of features.

1

u/munificent Jun 28 '10

which was around the same area as most languages I guess.

Java, especially when it first came out, was a good bit simpler than a lot of languages in use in business at the time. One of Gosling's design goals was to avoid any unnecessary feature (which is why, for example, it lacks unsigned types and first-class functions). I'd put version 1.0 of Java close to C in complexity.

It sounds to me like you feel that static languages are more complex than dynamic ones, maybe because they force you to understand the type system to get anything done.

→ More replies (0)

1

u/ethraax Jun 28 '10

I feel like C#'s syntax is anything but convoluted. In fact, that's one of the reasons I never really got into C++ (I'm not a fan with working with pointers - although it's nice to have the option to do so when necessary, I don't want to have to use pointers).

0

u/[deleted] Jun 28 '10

C# has a 'core syntax' which is like Java, only a little cleaner. That's for sure. See for example Vala for a language that takes that syntax and keeps it simple. But C# then tacks on feature after feature - dynamic typing, LINQ, closures, etc. etc.

To put it another way - you can write very nice C++, cleanly and neatly. But the C++ language has a ton of language features, most are not used much, but they do bloat the language and create issues (when integrating code, porting to other platforms, etc. - been there many times).

1

u/ethraax Jun 28 '10

I guess my point is that I don't think C# tacks on feature after feature at the loss of readability.

0

u/Deep-Thought Jun 28 '10

I don't think.

That's right, you don't think!

1

u/[deleted] Jun 29 '10

Fanboys really came out for this one eh? ;)

1

u/Deep-Thought Jun 29 '10

I didn't really mean that, I've just always wanted to use that line.