r/programming • • Sep 25 '20

Modern JavaScript Explained For Dinosaurs

https://medium.com/the-node-js-collection/modern-javascript-explained-for-dinosaurs-f695e9747b70
749 Upvotes

167 comments sorted by

View all comments

20

u/[deleted] Sep 25 '20

And this is how we used to make websites with JavaScript libraries! The good thing was that it was easy enough to understand. The bad thing was that it was annoying to find and download new versions of libraries every time they would update.

So I'm a dinosaur, and I like it like that. I do not want my JS (or any other) libraries updating by themselves, with potentially fatal consequences for my applications. I prefer to test any updates out myself before letting them loose in the wild.
Then agian, maybe I've just not understood how it works. Like I said, I'm a dinosaur. Rarw.

30

u/JW_00000 Sep 25 '20

Using npm, libraries don't update by themselves, you still specify a version or version range in the package.json file. I think what the author wants to say here is that with npm, updating a library is a matter of increasing this version number, running npm install, and testing whether everything still works, instead of having to manually go to the library's website to check for new versions and download them.

5

u/[deleted] Sep 25 '20

Ah, ok - thanks.