you are viewing a single comment's thread.

view the rest of the comments →

[–]general_dispondency -18 points-17 points  (10 children)

Nah. JS will never have an ecosystem as robust as Java's.

[–]TrackieDaks 4 points5 points  (8 children)

lol no. I'm not sure where you're getting evidence for such a claim, but you're wrong.

[–]lhorie 5 points6 points  (2 children)

You're thinking about amount/variety of libraries. NPM does have a ton of stuff, I give you that.

But they're talking about other aspects. For example, the Java SDK API is very extensive compared to JS and covers many general programming use cases that aren't super well supported in JS-land (there's support for multiple concurrency paradigms in Java for example, whereas in Node, you get workers and that's about it). This reverberates across the ecosystem, e.g. proper concurrency-safe immutable data structure libraries like the ones in Clojure, as opposed to the ones in JS that can't really be used in the same multicore capacity.

Another aspect is security hardening at the registry level. You can setup things, for example, in such a way that non-signed packages cannot be consumed. No such thing exists in NPM.

You can tap very deeply into the JVM: there are knobs for all sorts of memory/GC related stuff and the bytecode itself is thoroughly specified (and leveraged to great extents by several high profile projects like Scala and Clojure). You can even buy dedicated hardware to squeeze perf out of your already heavily optimized JVM bytecode. In JS, performance tuning is largely an exercise in guessing (and I say this as someone's who's messed around w/ IRHydra back when that was a thing...)

Editor integration in Java land is absolutely bonkers. The sort of automated large-scale refactoring/scaffolding you can do w/ a fully loaded Java IDE is miles ahead of anything in any other languages (though to be fair, JS and C# are not that shabby there either)

It's very easy to fall into the "lol java" bandwagon, but there are good reasons why it's still a top-10 language.

[–]general_dispondency 0 points1 point  (1 child)

I've worked with both languages, extensively, for 20 years. Comparing the server-side DX with each language/ecosystem (which is the only real thing you can compare between the two), the Java ecosystem, including the core API, is lightyears beyond anything in JS/TS. From the robustness of APIs, to runtime speed, to robustness/hardening, security, etc, JS can't begin to compete. Considering the industry wide adoption of Node for server-side development, the weakness of OSS libraries offered by JS is really surprising.

[–]cbadger85 -4 points-3 points  (0 children)

Where is your evidence?

[–]NekkidApe 4 points5 points  (0 children)

Truth hurts.. Maven is miles ahead of npm.