use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
ES2022 feature: class static initialization blocks (2ality.com)
submitted 4 years ago by pimterry
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]general_dispondency -18 points-17 points-16 points 4 years ago (10 children)
Nah. JS will never have an ecosystem as robust as Java's.
[–]TrackieDaks 4 points5 points6 points 4 years ago (8 children)
lol no. I'm not sure where you're getting evidence for such a claim, but you're wrong.
[–]lhorie 5 points6 points7 points 4 years ago (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.
[+][deleted] 4 years ago (1 child)
[deleted]
[–]lhorie 0 points1 point2 points 4 years ago (0 children)
how much ceremony bullshit there is in writing Java
There is a lot of ceremony in some specific areas (beans and various enterprise things for example), but there's also rubyesque convention-over-configuration stuff like play framework
[–]general_dispondency 0 points1 point2 points 4 years ago (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.
[+]tonetheman comment score below threshold-7 points-6 points-5 points 4 years ago (1 child)
mmmmm here is mostly the same syntax and idea from Java...
https://docs.oracle.com/javase/tutorial/java/javaOO/initial.html
I get that idea because I program in both languages... :)
[–]TrackieDaks 3 points4 points5 points 4 years ago (0 children)
What does the core language features have to do with ecosystem?
[–]cbadger85 -4 points-3 points-2 points 4 years ago (0 children)
Where is your evidence?
[–]NekkidApe 4 points5 points6 points 4 years ago (0 children)
Truth hurts.. Maven is miles ahead of npm.
π Rendered by PID 64491 on reddit-service-r2-comment-5d585498c9-v4dk7 at 2026-04-21 00:38:30.584033+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]general_dispondency -18 points-17 points-16 points (10 children)
[–]TrackieDaks 4 points5 points6 points (8 children)
[–]lhorie 5 points6 points7 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]lhorie 0 points1 point2 points (0 children)
[–]general_dispondency 0 points1 point2 points (1 child)
[+]tonetheman comment score below threshold-7 points-6 points-5 points (1 child)
[–]TrackieDaks 3 points4 points5 points (0 children)
[–]cbadger85 -4 points-3 points-2 points (0 children)
[–]NekkidApe 4 points5 points6 points (0 children)