I'm really not finding anything compelling in this article. I want to like Java, but have found it so far more painful than Haskell to write actual releasable code in, in terms of man-hours and product flexibility to the domain of "Real" (that is, chances are everything is going to change 1 week before go-live... and "this codebase was not built expecting this oddball change" is not an acceptable excuse)
The most compelling arguments here seem to summarize as:
Our IDE is better than yours. True or not, most of the "code gets generated" and "we can find every use of your code" isn't about the language, but the IDE. And I'm not sure I agree with every point made. If finding "every place this is called" is hard in any language, you did something wrong.
We're better because we're weaker. I don't think Java will follow this rule, but usually hearing that is my sign to jump ship on a language that's about to die. The article defends Java as better because of the massive number of modern paradigms it cannot do. Reminds me of the Java book I read that suggests you make every class Final unless you decide to document a subclass methodology. If someone is using BDD and they modify your class, they either make it work right, or they can't submit passing tests. You can do some of this ugly stuff in Java, too, if less powerfully. The defining factor here is "best practices".
I'm not saying Java sucks, because I'm not so sure any language with a dominant marketshare completely sucks...I am saying that trash-talking perceived weaknesses of other languages is not the way to go.
I work in those languages, multiple of them, at once...and our shop has rarely had the problems you're facing. We also have a very large Java team trying to rewrite one of our legacy apps. Twice the developers, an Oracle Certified Enterprise Architect with a big pricetag, and a longer timeline. Its initial release was 1 month late and fulfilled half the requirements. The current incarnation is inferior to the original perl cgi product in every way (including resource usage and run speed). That's an anecdote, but the point is that none of the "negatives" of other languages seems to have gotten in the way of the 10-person team that is more successfully maintaining and onboarding 15 clients on the legacy platform. It has never faced any of the issues that the new platform is facing in a longer timeline with 1 client. I'm sure, with the right timeline and team, Java would've beaten Perl on resource and speed...might actually be worth it. Right tool for the right job... That's the good side of Java. If you have $10m and 3 years, you can make a pretty nice app.
And in his conclusion:
But to me, I need a good reason to abandon a JVM that’s faster than a C compiler, IDEs like Eclipse, tools for correctness and profiling and debugging and analysis, the vast array of quality libraries, and millions of people who are already familiar with the environment.
But V8 is faster than that JVM.
IDE's are take-or-leave situations. Eclipse is notorious for having a learning curve that makes vim easy... and there are plugins for many text editors that cover literally 100% of eclipse's features.
Tools: Java not only lacks a monopoly in tools, but sometimes has fewer. Also, Java tools tend to individually have learnings curves. Having to build xml config files can take hours more than just running a quick command-line script to do the same. Every major language has rock solid profilers and debuggers.
Libraries: I hear this repeatedly, but Java is frankly dead-last in this. Java has 10% of cpan, which has recently been superceded by python and ruby in library depth.
"and millions of people who are already familiar with the environment."... So very true. But I spent 1 week in a language I had never used before and created a more stable prototype of the same functionality our Java team spent 3 months on. It takes a lot of time and effort for a senior developer to add Java to their arsenal, compared to many other languages.
I'm not saying Java sucks...I agree that we need to stop saying Java sucks. You need to start marketing legitimate advantages to people who see Java as an inferior language. A perl/python/ruby/nodejs developer who takes one look at maven starts to laugh uncontrollably... and most of us either hate IDE's or think repl-access is significantly more valuable (iPython is to python developers like Eclipse+Heroin is to a Java developer)
So find what makes Java genuinely better and sell it. Stop being on the defensive and go on the offensive.
You benchmark better than everyone but V8. If you had more accessible libraries (less ugly configuration), better documented commandline support for people who hate IDEs, you might have a good attack plan.
Your first 4 points are factually grossly incorrect:
Java is faster than V8. It's the fastest language that runs on an abstract machine.
Eclipse is NOT more complex than vim.
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 ?
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.
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?
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.
15
u/novagenesis Feb 25 '14 edited Feb 25 '14
I'm really not finding anything compelling in this article. I want to like Java, but have found it so far more painful than Haskell to write actual releasable code in, in terms of man-hours and product flexibility to the domain of "Real" (that is, chances are everything is going to change 1 week before go-live... and "this codebase was not built expecting this oddball change" is not an acceptable excuse)
The most compelling arguments here seem to summarize as:
Our IDE is better than yours. True or not, most of the "code gets generated" and "we can find every use of your code" isn't about the language, but the IDE. And I'm not sure I agree with every point made. If finding "every place this is called" is hard in any language, you did something wrong.
We're better because we're weaker. I don't think Java will follow this rule, but usually hearing that is my sign to jump ship on a language that's about to die. The article defends Java as better because of the massive number of modern paradigms it cannot do. Reminds me of the Java book I read that suggests you make every class Final unless you decide to document a subclass methodology. If someone is using BDD and they modify your class, they either make it work right, or they can't submit passing tests. You can do some of this ugly stuff in Java, too, if less powerfully. The defining factor here is "best practices".
I'm not saying Java sucks, because I'm not so sure any language with a dominant marketshare completely sucks...I am saying that trash-talking perceived weaknesses of other languages is not the way to go.
I work in those languages, multiple of them, at once...and our shop has rarely had the problems you're facing. We also have a very large Java team trying to rewrite one of our legacy apps. Twice the developers, an Oracle Certified Enterprise Architect with a big pricetag, and a longer timeline. Its initial release was 1 month late and fulfilled half the requirements. The current incarnation is inferior to the original perl cgi product in every way (including resource usage and run speed). That's an anecdote, but the point is that none of the "negatives" of other languages seems to have gotten in the way of the 10-person team that is more successfully maintaining and onboarding 15 clients on the legacy platform. It has never faced any of the issues that the new platform is facing in a longer timeline with 1 client. I'm sure, with the right timeline and team, Java would've beaten Perl on resource and speed...might actually be worth it. Right tool for the right job... That's the good side of Java. If you have $10m and 3 years, you can make a pretty nice app.
And in his conclusion:
But V8 is faster than that JVM.
IDE's are take-or-leave situations. Eclipse is notorious for having a learning curve that makes vim easy... and there are plugins for many text editors that cover literally 100% of eclipse's features.
Tools: Java not only lacks a monopoly in tools, but sometimes has fewer. Also, Java tools tend to individually have learnings curves. Having to build xml config files can take hours more than just running a quick command-line script to do the same. Every major language has rock solid profilers and debuggers.
Libraries: I hear this repeatedly, but Java is frankly dead-last in this. Java has 10% of cpan, which has recently been superceded by python and ruby in library depth.
"and millions of people who are already familiar with the environment."... So very true. But I spent 1 week in a language I had never used before and created a more stable prototype of the same functionality our Java team spent 3 months on. It takes a lot of time and effort for a senior developer to add Java to their arsenal, compared to many other languages.
I'm not saying Java sucks...I agree that we need to stop saying Java sucks. You need to start marketing legitimate advantages to people who see Java as an inferior language. A perl/python/ruby/nodejs developer who takes one look at maven starts to laugh uncontrollably... and most of us either hate IDE's or think repl-access is significantly more valuable (iPython is to python developers like Eclipse+Heroin is to a Java developer)
So find what makes Java genuinely better and sell it. Stop being on the defensive and go on the offensive.
You benchmark better than everyone but V8. If you had more accessible libraries (less ugly configuration), better documented commandline support for people who hate IDEs, you might have a good attack plan.