News for hackers. Stuff that matters.
Re:Was Rust Worth It? by symlinkk on Wednesday October 25, 2023 @11:02PM (#38021183)
What’s so hard about “npm install” and “package.json”. It’s dead simple
Re:Was Rust Worth It? by FridgeSeal on Thursday October 26, 2023 @12:15AM (#38021535)
No you see Java devs have stockholm-syndromed themselves into believe that a giant stack of XML, or some unhinged mini-language are actually good, and much better than something the humans involved can actually read and parse easily and now to compensate with other ecosystems providing 85% of the functionality, with 5% of the pain, they’ve got to find some reason to complain about them.
Re:Was Rust Worth It? by dingi on Thursday October 26, 2023 @02:06AM (#38022198)
what's wrong with XML? Maven XML is a configuration not a programming language.
Re:Was Rust Worth It? by xtremegoose on Thursday October 26, 2023 @05:28AM (#38023495)
Is this a joke? XML is horrible to work with, more boilerplate than information. Compare your average maven file to a cargo.toml and tell me which is easier to work with...
Re:Was Rust Worth It? by richbell on Thursday October 26, 2023 @08:54AM (#38024865)
"XML is more verbose" is a lazy criticism in the same veign as "Python is better than Java because you can do 'Hello World' in one line".

Maven files have a simple conventional structure and a defined schema. Once you learn it, it's a breeze to work with. It's not like you need to write hundreds of lines of SOAP or XLST — which is actually why people started to dislike XML, and not because XML inherently bad.

Edit: I'd also take XML over TOML any day, especially when it comes to nested objects and arrays.

Re:Was Rust Worth It? by tootie on Thursday October 26, 2023 @10:11AM (#38025833)
For a descriptor verbose is superior. It's way clearer what you're looking at. Matching a named end tag is much easier than matching a }. Also, XSD means you can strictly type and enumerate valid values and you will instantly see if you've written something invalid.
Re:Was Rust Worth It? by tootie on Thursday October 26, 2023 @10:14AM (#38025870)
Maven stores every version of every library you've ever needed in a central location. It doesn't pollute your working directory and it caches between projects. And this is more of a Java thing than a Maven, thing, but backwards compatibility between versions is way easier to manage. There's no incompatible binaries because you changed the node runtime between npm install and running your project.