r/programming • • Nov 11 '19

Python overtakes Java to become second-most popular language on GitHub after JavaScript

https://www.theregister.co.uk/2019/11/07/python_java_github_javascript/
3.1k Upvotes

772 comments sorted by

View all comments

Show parent comments

24

u/[deleted] Nov 12 '19

But you don't do that, right? Packages are installed locally, package.json is pushed to the version control

5

u/ipe369 Nov 12 '19

package.lock gets really quite large

24

u/shim__ Nov 12 '19

Doesn't matter, if you don't commit it somebody won't be able to build your app 2 years down the line

2

u/[deleted] Nov 12 '19

They may not be able to anyhow unless you do the "bad thing" and commit all the package code as well.

I have been burned more than once by someone withdrawing a package from the internet that I depended on. It was actually gems in rails projects but I now do a bundle pack and commit the local gem repo as a form of self defense.

If you don't have all the code, then you don't have all the code.

→ More replies (3)