News for hackers. Stuff that matters.
Re:The Everything NPM Package by Bjartr on Saturday January 06, 2024 @04:53PM (#38895902)
IIRC, the Maven crowd was criticizing npm's decisions from the get go because they chose to ignore many of the problems the Java community already solved a decade before.
Re:The Everything NPM Package by SahAssar on Saturday January 06, 2024 @05:04PM (#38895970)
So could you list those problems?
Re:The Everything NPM Package by richbell on Saturday January 06, 2024 @06:11PM (#38896557)
Namespaces, for one.
Re:The Everything NPM Package by strken on Saturday January 06, 2024 @07:52PM (#38897214)
Namespaces in Maven seem like they're clunky. The pseudo-DNS thing where the first section is an actual domain but the second is whatever you want is quite janky, as is not matching the namespace to the package. Plus domains are transferable themselves and it seems like a bad idea to use them as identifiers.

Not to say that npm shouldn't have had namespaces by default, but I think there's good reason not to blindly do everything the way the Java community did.

Re:The Everything NPM Package by richbell on Saturday January 06, 2024 @09:28PM (#38897807)
> Not to say that npm shouldn't have had namespaces by default, but I think there's good reason not to blindly do everything the way the Java community did.

I'm not saying that they should have blindly copied Java, but they should have had something.

Re:The Everything NPM Package by Bjartr on Tuesday January 09, 2024 @02:49PM (#38931034)
One issue is npm will allow arbitrary code to execute as part of an install script for a package, which allows a class of attacks that aren't possible in the maven world.