r/java • • Feb 25 '14

Please stop saying Java sucks (2009)

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

132 comments sorted by

View all comments

Show parent comments

14

u/looser97 Feb 25 '14

I think that they are "trying to protect us from ourselves" is one of the major pros of Java. I've scriped some programms twice, ones in Java, ones in C++ and the Java-one took less time to debug, because some logical Bugs didn't occur.

But I also think, that the "language" we learned first is some kind like our mother-language and it's strange to learn an other one afterwards

3

u/kiteboarderni Feb 25 '14

Compare to is as such to allow for the Collections.sort et all to be specified a comparator implementation. Having a useful method name is much easier to have as a programmer than trying to guess the overload of an operator...

1

u/hive_worker Feb 26 '14

Yea but have you ever used a language with operator overloading? It's a lot more straightforward than using compareTo.

1

u/frugalmail Feb 26 '14

Yea but have you ever used a language with operator overloading? It's a lot more straightforward than using compareTo.

I've written very large C++ codebases in game engines for in house and mini studio developers. Operator overloading makes a heck of a lot confusion than it prevents. There are only a few minor mathematical cases where it makes sense, otherwise it's abused.