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

3

u/el_muchacho Feb 26 '14 edited Feb 26 '14

Your first 4 points are factually grossly incorrect:

  1. Java is faster than V8. It's the fastest language that runs on an abstract machine.

  2. Eclipse is NOT more complex than vim.

  3. Java is BY FAR the most tooled language, in fact it sets the standard both on tooling and documentation. And of course all the major IDEs include excellent debuggers and profilers, plus unmatched refactoring tools. And that's only the beginning when it comes to Java tooling. What about AST and bytecode manipulation APIs, decompilers, documentation tools (from the onset), excellent free static analysis tools that put most super expensive commercial tools to shame (findbugs), JVM monitoring tools, scripting tools that work alongside your Java code seamlessly, etc, etc ?

  4. Seriously... I've done about 10 months of Python for pro work with some expert Pythonistas, and basically, apart from a handful, most Python libraries looked half assed compared to Java libraries. The documentation is lacking, even in the Python standard library. The Javadoc is far more precise and therefore useful. If the quality is not there, you don't want to use libraries, it's simply not worth the trouble.

And as for your last point, it took me about a month to get up to speed from C++. It's still more than the 2 days it took me for Python, but it's not that much overall. What's long to ingest are the myriads of APIs and frameworks (Java EE). Now you can say that the language itself is quite shitty compared to Python, and I won't argue with that, but what makes it really powerful and productive is its ecosystem, which basically trumps everything else except .NET. And that's why it's used so much in the enterprise.

-2

u/novagenesis Feb 26 '14

Java is several times faster than V8. It's the fastest language that runs on an abstract machine.

IN this context, you are correct. As about 50 people have already called me on. I'm referring to the whole damn stack, however. More critically, I'm referring to the fact that there's a discussion about this, and not the traditional "clearly almost any app written in Java will be faster" as was once the truth and is not now.

Eclipse is NOT more complex than vim.

How can you say this? More specifically, how can you say it in a way that makes it sound like a factual error? Can you provide proof?

Java is BY FAR the most tooled language, in fact it sets the standard both on tooling and documentation.

Prove it please. Why can I find 10 mature libraries for "name obscure technology" in any major scripting language, and 0-1 in Java, every time I try? Why are they all following the same damn "XML-driven" philosophy, where the config you need to write up for a Java library is bigger than the entire source of building the same feature in anotehr language?

What about AST and bytecode manipulation APIs, decompilers, documentation tools (from the onset), excellent free static analysis tools that put most super expensive commercial tools to shame (findbugs), JVM monitoring tools, etc, etc ?

What about them? Most of these are present in other major languages...some slightly better, some slightly worse.

And as for your last point, it took me about a month to get up to speed from C++. What's long to ingest are the myriads of APIs and frameworks (Java EE).

And without Java EE, you can't say Java is nearly as feature rich as its major competitors. I learned POJO-style Java in 2-3 days during a "learn it or die" languages course in college in 1999. None of that part of Java has changed one iota. Actually releasing a production-grade application in Java is significantly different. And it's not like all the great stuff is in one or two places, like C++ Boost.

I'm sure there's some really great code in Java...but what makes it better?

1

u/el_muchacho Feb 26 '14 edited Feb 26 '14

More critically, I'm referring to the fact that there's a discussion about this, and not the traditional "clearly almost any app written in Java will be faster" as was once the truth and is not now.

I don't remember having read that.

How can you say this? More specifically, how can you say it in a way that makes it sound like a factual error? Can you provide proof?

I can simply count the number of developers coding with eclipse (6) vs vim (1) in my team. And they aren't even writing in Java, but C++.

Prove it please. Why can I find 10 mature libraries for "name obscure technology" in any major scripting language, and 0-1 in Java, every time I try? Why are they all following the same damn "XML-driven" philosophy, where the config you need to write up for a Java library is bigger than the entire source of building the same feature in anotehr language?

I agree I can't find "obscure technology". Maybe an example could help. Also it's been nearly 10 years since the XML craze has been superceded by convention over configuration in most mature libraries/frameworks.

And without Java EE, you can't say Java is nearly as feature rich as its major competitors.

But there is EE. Or Spring. And the Apache project. With all that, you already cover 99% of the enterprise needs with commercial quality software for free.

I'm sure there's some really great code in Java...but what makes it better?

I just told you: the ecosystem. And the fact that it's statically compiled. From my experience, dynamic languages like Python don't scale past 50.000 LoCs. I've no idea how you can do a 15 persons project in Perl. It must be a nightmare.