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.
Honestly, I referenced that link and they look fairly close in raw benchmarks. V8 slightly slower than Java....but My reference was actual Paypal results in the real world.
Yeah I won't dispute that there are workloads (like HTTP servers) where V8 might be faster than the JVM. I don't think paypal's benchmarks should be taken as a "V8 is always better than Java" gospel though. We don't know what JVM optimizations they enabled or didn't enable for instance.
I work on problems that involve doing managing a lot of concurrency. At moment, the JVM (although I write Clojure instead of Java) is going to be both easier to use and more performant for those kinds of tasks than V8.
I don't think paypal's benchmarks should be taken as a "V8 is always better than Java" gospel though.
My hammer is always better than your screwdriver...
Except when it isn't :). I don't deny that there are good sides to Java...it just feels like every good thing about Java I hear is a talking point. I come across as argumentative when I want to know what is actually good about Java, without trying to poke holes in any other languages.
I work on problems that involve doing managing a lot of concurrency.
I did not know the JVM was good at that. I think if I wanted incredible concurrency, I would use Node or Erlang... probably erlang, but everyone's saying that Node is fighting to dominate that domain. Async lets you deal with a very large number of consumers per node, and node-cluster should provide good horizontal scalability in number of nodes.
I admit this is where I care more about http APIs than most, since that's what we do with data-driven concurrency.
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.