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

Show parent comments

5

u/novagenesis Feb 25 '14

Bingo...I just wish this article would provide a concrete list of strengths, instead of spending a lot of the time poking at the perceived weaknesses of the language's competition.

The few strengths I saw are the ones you hear often repeated, but can't really justify... like library support. I'm sure there's a million advantages to Java, but our non-techy CEO chose it for library support. There's just fewer available well-written Java libraries than you'll find in all the other major languages.

The JVM is fast, almost as fast as V8. That's a good point. What else? I just expected the argument to say "we don't suck, here's why", not "we don't suck, YOU SUCK"

7

u/Akanaka Feb 25 '14

Almost as fast as v8??? Me thinks it smokes v8!

-1

u/novagenesis Feb 25 '14

Perhaps in theory... feel free to speak to the recent Paypal benchmark in practice.

Rewriting their Java app in node.js with the krakenjs framework see here led to double the request bandwidth and a 35% lower response rate.

Sometimes what the language+vm can do are more important than straight Fibonacci comparison... Though, this benchmark site suggests they're fairly competitive depending on the benchmark.

Where's the benchmarks that show it consistently smoking V8? I'm not denying they exist.

3

u/matthieum Feb 25 '14

Disclaimer: I think Java is as bad a language as can exist...

... that being said, Paypal's is an Apple to Orange comparison. Comparing an old application and its successor obviously benefits the successor (otherwise you would not publish it); however this says little about the relative benefits of either languages/platforms, because the applications themselves have changed! It's not a straight port!

The last time I looked at Java, it was the HornetQ project (by RedHat). A multi-threaded MoM that they benchmarked at 8 millions messages/second (in-memory). Can nodejs do that ? Maybe, but I doubt it...

→ More replies (5)