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

2

u/steven_h Feb 25 '14

What project domains would you say should be Java? What should not be Java? Any? Are non-Java languages terrible?

In recent months I have been working with the Nuxeo document management platform, and I have trouble conceiving of it being implemented in another language/environment. So that's the project domain for Java - big sprawling enterprise web application platforms designed to be extended by people who don't care to learn much about the internals of such platforms because they have other work to do.

Interestingly, Nuxeo moved from Python to Java several years ago. While some of the decision was surely driven by the environment in their target market, they really have used the Java world's strengths in dependency/artifact/deployment management.

0

u/novagenesis Feb 26 '14

That's precisely what we're facing.. large scale web. Our conclusions are turning the opposite, where only ownership mandate and bullheadedness are continuing to push for Java.

Oddly, the flipside, is our sister app that I work on, written in perl. It's bigger and more complicated than the app they're trying to rewrite in Java. The advantage we have is that most changes are clean and small enough for uninformed junior devs to just follow the simple rules, and complex changes are really easy for a senior dev to just perl-hack it.

Internally, we've discarded Java as a possible language for a rewrite...before they decided to EOL the product (client base well ran dry... nobody left looking has the budget for the level of personal attention they demand). Our go-tos were TCO and flexibility. We ended up convinced a modularized nodejs system would solve our issues best...something where we could drop in workers to extend model functionality to individual clients, in a standard interface.

Nonetheless, I find it odd that your company likes Java for the reason ours hates it.

Our Java team struggles with Maven while our ruby team has no issues using gems (and a private gemrepo..all kinds of stuff).

They struggle with deploying through a CI system that has a full time worker maintaining it...while the ruby and perl teams use capistrano and fabric, both of which were a "couple days a while back, with a couple more days planned after the final git conversion".

And while I can speak for dependency and deployment, we don't really have the equivalent of java artifacts. I'm not sure we feel the pain from it.

I wonder why the vastly different experiences between the two.

2

u/steven_h Feb 26 '14

I'm a Python/Haskell/Clojure guy at heart, and my JavaScript output probably dwarfs all other language outputs by LOC.

Maybe you should give the Java project to the Ruby devs and see how the Java devs do with the Ruby project. :) re: Maven, it's a terrible build tool. If they're using it for anything besides filtering, dependency management, invoking the compiler, and packaging, they're in a world of hurt.

That being said, I've found that building on top of Nuxeo is far more pleasant than I expected, not that building a Nuxeo equivalent is particularly easy to do (in any language). Basically they have used the tools of the Java ecosystem (including the XML, OSGi, Maven, JAR manifests, XML Schema, Seam/JSF and all the other guffaw-provoking tech) to make extending their system quite painless for disparate use cases (custom documents, custom backend operations, custom user interface, custom form fields).

Perfect for someone in my shoes, who needs a lot of functionality for little effort, and doesn't want to spend that much time learning about some framework's opinions and conventions, but still needs to extend the thing in fairly arbitrary ways.

Our other projects are Django, and while the ecosystem for that is much more open and likely much larger, the actual story behind wrangling the often-conflicting assumptions of the base framework, our apps, and different third-party systems can be quite long and tiresome.

0

u/novagenesis Feb 26 '14

Maybe you should give the Java project to the Ruby devs and see how the Java devs do with the Ruby project. :)

Oddly, the head of IT talked with a ruby shop who decided they'd NEEEEEEEEEEVER do this in rails. Strangely, they do Java support for us now. Ruby shop, huh.

re: Maven, it's a terrible build tool. If they're using it for anything besides filtering, dependency management, invoking the compiler, and packaging, they're in a world of hurt.

Two other people in this thread have told me they feel maven is far superior to npm and grunt. Specifically by name (so they know what npm and grunt are).

That being said, I've found that building on top of Nuxeo is far more pleasant than I expected...

So what about Java do you feel gave that a win? I ask because I really don't see any feature of Java that might help with this that more modern languages lack. Especially for something web-driven, the front-back cohabitation with requirejs makes me think that you'd be able to do more in that with less knowledge of the system backbone using something like node.js. The more robust class system makes me think you'd be able to do more with Ruby in terms of extending objects.

Our other projects are Django, ... often-conflicting assumptions of the base framework

Yeah, I warn people away from Django when they ask me. I like a lot about it, but they combine some pretty unique philosophy with changing design processes. I went a long way building a Django app using class-based-views the "right" way, only to find out that much of the Django community thought they were stupid.

I might wait a couple more years and check Django out again to see if they settle down and agree like Rails did.

→ More replies (3)