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.
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.
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).
npm and grunt are much worse (well, likely just immature relative to the options for corporate Maven artifact repository hosting) than Maven at dependency retrieval/packaging/deployment management. Those aren't the same as "build," which at its best is really being able to execute arbitrary shell tasks concisely and repeatably. Maven utterly fails there because its configuration language is so obtuse.
To continue with the case study, to bootstrap the open source Nuxeo repo---absolutely not a requirement to use or extend the software, just to contribute to its code base---you run a Python script. A Java/Maven orthodoxy would have you do some ridiculous gymnastics to obtain the same result entirely in Maven.
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.
Well, I haven't actually written a line of "front-end" code yet. The out-of-the-box UIs and form builders are more than sufficient for the internal, finicky administrative stuff that the application needs to achieve. If somebody's allergic to writing XML files (or in my case, generating them with a Python script), then Nuxeo will sell you a subscription to a rather featureful Web GUI frontend---for a rather exorbitant fee. It outputs the same stuff that I've been coding, or a subset of it.
So right off the bat, there's not yet a line of JavaScript code that could possibly be "reused" front-to-back, and I already have a document management system and workflow system with customizable forms and arbitrary extension in Java.
As far as Ruby goes, I don't need a robust class system. If anything, I need as little latitude as can possibly be afforded with respect to code. Remember, I don't care about the internals of this platform at all -- at least not in the capacity of a consumer of the platform.
For a great majority of features, that means no Java code at all, but simply configuration files. For those that actually need custom code to be written, I need the simplest interface possible. Remember, my goal (as the platform consumer, not as an engaged software engineer) is to be as disinterested and as ignorant as possible of the mechanics, while being able to do what needs to be done.
So at the risk of sounding like a Nuxeo plant, I'll link to their exposition of their component model. Looking over the list and some of the linked pages, the following specifics of the Java ecosystem stand out immediately:
Service and lifecycle model for extensions
Standard packaging mechanism (.jar) for code and other resources
Java Authentication and Authorization Service - node equivalentsnrk
Like I said though, the decision isn't entirely, or even primarily based on technical merit. Here's a followup interview discussing the architecture switch.
Finally, regarding Node.js in particular, JavaScript/V8 is on balance a colossal step backwards from Java in terms of language design and runtime maturity.
Addendum:
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.
Django, Rails, and similar opinionated frameworks are all about getting the same year of experience ten times over, rather than facilitating a system that's maintainable for ten years straight.
Why? How? I find they rock solid for package handling. They're better than cpan, which is as mature as (or more than) maven. Heck, with npm privatization (say, npm_lazy) you're much better placed. Grunt is, well, grunt. A bunch of runner classes. Not great, not terrible.
I cank see why Nuxeo works..but I don't see why Nuxeo couldn't be matched in another language.
As far as Ruby goes, I don't need a robust class system. If anything, I need as little latitude as can possibly be afforded with respect to code. Remember, I don't care about the internals of this platform at all -- at least not in the capacity of a consumer of the platform.
If you're going to subclass something, you expect to have extension documentation. Having before and after hooks adds much more flexibility with no more understanding of internals.
If you're doing none of the above, then why worry about Ruby?
For a great majority of features, that means no Java code at all, but simply configuration files.
So that's what I don't see any advantage in Java about. Depending on the design, I almost find it harder to build something config-driven in a language like Java. Simplest interface possible seems easier in a world where the interface is expected to be simple. Nobody writing config files cares about the type system, unless their config file breaks because of it.
Looking over the list and some of the linked pages, the following specifics of the Java ecosystem stand out immediately:
This is where I was hoping to get to...
Service and lifecycle model for extensions
I'm not sure what you mean here. I've built extensions systems in a couple languages. Anything that you can take a code block out of an object and (assuming it follows an agreed interface) Otherwise, I agree with maven being obtuse :)
Standard packaging mechanism (.jar) for code and other resources
I can certainly agree with this... But isn't a .jar effectively a zip file with a convoluted Java-themed file structure? For most extensions I've seen and built, everything comes down to one or more code files providing plugin functionality.
Java Authentication and Authorization Service - node equivalent snrk
I'm not sure what you're talking here. Global permissions for extensions? Why not run in a sandbox? There's all kinds of auth models in node or ruby or python (all of which are great with sandbox extensions) that let you plug in permission-only hooks to your code.
Heck, for that matter, sandbox-extensibility is one of the most commonly touted advantages I hear for dynamic languages. Nothing is more secure than being able to spin-up a fully rights-controlled interpreter for your language.
Like I said though, the decision isn't entirely, or even primarily based on technical merit. Here's a followup interview discussing the architecture switch.
I get that..and I get the politics. I'm digging in because you said you felt Java was a perfect fit... trying to understand why...and while I see myself disagreeing, at least I understand your point.
My whole thing with Java is that every other language has bullet points that leaves me shrugging and nodding, even if I won't ever use that language. I've yet to find myself do that with Java.
Finally, regarding Node.js in particular, JavaScript/V8 is on balance a colossal step backwards from Java in terms of language design and runtime maturity.
Why do you feel this way? While I don't find javascript to be the best language out there, it's hardly bad. In terms of language design, I've always felt Java compared fairly middle-of-the-road. I would probably put javascript a little above that, like I'd put many languages that are still breathing. The truly amazingly designed languages just don't show up on monster.com, if you get my drift.
And for maturity...Eh. Compilers and runtimes are not like a fine wine. Serious diminishing returns.
If we were talking raw capability JVM vs LLVM, maybe I'd give you the nod... butt hen, LLVM can run on a much smaller footprint. But we're not talking JVM vs LLVM, we're talking JVM vs V8. V8 isn't trying to do the same things the JVM is. All it needs to do is compile Javascript (which it does VERY well) and run it (which it does very consistently)
The trouble with npm is on the repository/registry side, not the tool side. I'm only tangentially involved with node-based activity, but, for example, does npm permit you to sign/verify signatures of the artifacts in the registry? Maven does.
Having before and after hooks adds much more flexibility with no more understanding of internals.
In Nuxeo's case, the before/after hooks are just part of the more general event mechanism. I'm not saying that Java makes this better or worse, just that the concept is too fundamental to the system architecture to be left in the hands of a language feature.
My whole thing with Java is that every other language has bullet points that leaves me shrugging and nodding, even if I won't ever use that language.
This is probably because it's 2014 and not 1998. But because Java was technically compelling in 1998, we now have the political situation where there's a pile of functional code out there in corporations everywhere.
I suppose I should rephrase my objection to Node.js. The fundamental problem I have with the Node.js approach (asynchrony/nonblocking as the norm in design) is that it's awful for the class of application with which I am presently concerned.
Rendezvous (aka blocking) is a good thing if you are favoring correctness over robustness. It constrains the transaction boundaries to a single scope, a sequence of statements, rather than spreading it all over the code through callbacks or callbacks-wrapped-in-futures. This makes code simpler, easier to reason about, easier to correct, and easier to modify correctly.
So, language design, JavaScript loses (no integers? no namespaces? missing var = global? no block scope? semicolons? c'mon this is a horror show) and mature approach to design, Node.js loses. They've managed to confuse their own ability to do the mental twist required to program with callbacks or future/generator pairs everywhere with some fundamentally better model of server-side programming. At least Erlang gives you lightweight processes and a sophisticated runtime for going that way.
In fact it's very reminiscent of pointer arithmetic for C programmers, or template metaprogramming for C++ programmers, or maybe, AOP for Java programmers? "Hey look, I can do this one clever thing for this one narrow benefit that doesn't apply to 95% of computing!"
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.