Live data from Hacker News

A JavaScript Nightmare

blog.ignaciobrasca.com

1–10 of 101 posts

Re: A JavaScript Nightmare

#3
Shouldn’t you use fixed versions and use something like ‘npm ci’ to install the exact dependency tree?

Feels more like an oversight from the developers rather than a JavaScript problem.

When you want to upgrade, only then do you run all regression tests and do so.

Re: A JavaScript Nightmare

#5
post #4

[flagged]

To be fair, JavaScript is harder that most people think, the problem is that everyone thinks they are an expert, so we end up with this kind of problems. There is a lack of engineering discipline and too much hacking!

Re: A JavaScript Nightmare

#7
tldr: A dependency wasn't pinned, the dependency changed, and stuff broke. Author thinks Javascript sucks.

I will say this though: it is infuriating that package managers (every single one I've used, not just NPM) don't default to pinning exact dependency versions, and instead let it "automatically" update minor versions.

Re: A JavaScript Nightmare

#10
post #7

tldr: A dependency wasn't pinned, the dependency changed, and stuff broke. Author thinks Javascript sucks. I will say this though: it is infuriating that package managers (every single one I've used, not just NPM) don't default to pinning exact dependency versions, and instead let it "automatically" update minor versions.

The package wasn't following semantic versioning. Only major versions should introduce breaking changes.
Post reply on HN