News for hackers. Stuff that matters.
Re:Ride down into JavaScript dependency hell by bsagdiyev on Saturday April 11, 2020 @09:42AM (#22841615)
I’m not sure whataboutism is the way to fix the well-known issues the JS ecosystem has in package management. When I’ve installed a Go package or Python package I haven’t ended up with sometimes hundreds or thousands of sub-dependencies. Some packages can be ridiculous, but nothing like I have seen running “npm i” for something that seems like it should be simple. I apologize for not having an example off-hand but this keeps coming up precisely because it is an issue unique to JS in this case, even if other languages have it to a degree.
Re:Ride down into JavaScript dependency hell by sippeangelo on Saturday April 11, 2020 @09:46AM (#22841639)
Try Feathers, a "lightweight web-framework for creating real-time applications and REST APIs" clocking in at about 600 transitive dependencies. How do you audit this?
Re:Ride down into JavaScript dependency hell by bsagdiyev on Saturday April 11, 2020 @10:16AM (#22841788)
Re:Ride down into JavaScript dependency hell by jfkebwjsbx on Saturday April 11, 2020 @10:55AM (#22841971)
I think they just don't audit nor review the code they depend on.
Re:Ride down into JavaScript dependency hell by dmitriid on Saturday April 11, 2020 @10:09AM (#22841747)
It's now whataboutism. It's finger pointing from a lot of people who develop in languages whose story is only marginally better.

As I wrote in a sibling comment, I have a project I haven't even started yet in Rust [1]. And it's measly 6 dependencies pull a total of 197.

[1] https://news.ycombinator.com/item?id=22841742

Re:Ride down into JavaScript dependency hell by bsagdiyev on Saturday April 11, 2020 @10:19AM (#22841801)
I took a look, this sounds more unique to Rust than Go or Python, but they all can do it to some degree. I have no hands on experience with Rust to really have any reasonable input on this so I don’t want to make an uninformed statement.
Re:Ride down into JavaScript dependency hell by jfkebwjsbx on Saturday April 11, 2020 @10:56AM (#22841974)
If what you say is true, then Rust is suffering the same fate.

197 dependencies is too many to trust.