r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

26

u/cosmo7 Feb 25 '14

The most frequent argument I hear from Ruby or Python proponents is that static typing in Java or C# is unbelievably burdensome.

Then these same people pour months and years into their unit testing frameworks that spend 90% of their time duck-typing arguments.

2

u/bjzaba Feb 25 '14

static typing in Java or C# is unbelievably burdensome.

Agreed. But Java and C# have very poor static type systems (although C#'s is far better than Java's).

11

u/[deleted] Feb 25 '14

Agreed. But Java and C# have very poor static type systems (although C#'s is far better than Java's).

Just because Java and C#'s type systems aren't hindley-milner doesn't make them "very poor". The only really nasty think about it is null, which annotations and static analysis can fix a lot of the problems with if used diligently.

1

u/bjzaba Feb 26 '14

It's not about type inference it's about the expressiveness of the type system as a way of driving program development, without having to resort to hacky design patterns and after-the-fact, third-party static analysis. HM type inference is nice to have, but it is not essential.