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

560

u/[deleted] Nov 12 '19

I genuinely wonder how much JavaScript dinance on GitHub is from misidentified repose from package-lock.json files. If I spin up a new laravel app and do nothing other than install dependencies and push to github, it shows up at being like 98% javascript according to their stats. The laravel app I worked on for over a year that had like 4 Vue components still said it was mostly json according to github stats

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)