4 ms·
Sure, but I bet it gets pulled in a lot where projects really aren't JS projects. For example, my python mongoDB library is "25% javascript" but it's all in th
by JeffJenkins 16y ago
Sure, but I bet it gets pulled in a lot where projects really aren't JS projects. For example, my python mongoDB library is "25% javascript" but it's all in the generated documentation: https://github.com/jeffjenkins/MongoAlchemy/graphs/languages https://github.com/jeffjenkins/MongoAlchemy/graphs/languages
- baddox 16y agoI have a few Django projects on github, and they're all considered to be js projects solely because of JQuery.
- harpastum 16y agoExactly. The code that I've written for my most recent Sinatra app is almost entirely ruby, but since I include jQuery & jQuery UI in the repo (for easier offline development), it's 91% JS and 9% ruby[1]. [1] https://github.com/SamWarmuth/ClassAxis/graphs/languages https://github.com/SamWarmuth/ClassAxis/graphs/languages
- technoweenie 16y agoFor what it's worth, we try to exclude popular projects (like jQuery, Prototype, or the wysiwyg textareas), as well as other common directories like 'vendor'.
- thraxil 16y agoI think you need to work on this a bit more. It seems that a very large percentage of the web apps I work on, which include a few JavaScript libraries but are primarily written in Perl or Python get classified by Github as "JavaScript". I've created a short list of 15 just from my personal and work repos: https://gist.github.com/734979 https://gist.github.com/734979
- technoweenie 16y agoI added mochikit to our list of exceptions, and now all of your projects are Python, except rollo. Rollo uses a 'highlighter' js lib which still counts as JS. It's one thing to exclude popular libs with names like "MochiKit" or "jQuery". "Highlighter" is a pretty generic name though, and I feel iffy about adding it. FWIW, here's our current list of exceptions: yui tiny_mce ckeditor redbox active_scaffold rico_corner code_highlighter vendor bundle cache assets bookends dojo extjs sencha mochikit prototype(.*)\.js mootools\.js jquery([^.]*)\.js jquery\-\d\.\d\.\d(\.min)?\.js effects\.js controls\.js dragdrop\.js The last 3 are generic names too, but they happen to match common js files in most Rails projects...
- troygoode 16y agoJust about all of my webapps (which are generally C#) show up as JS on GitHub.
- steveklabnik 16y agoYou know, I wanted to say the same sort of thing... But then again, for a certain definition of 'popularity,' it still holds. If, say, 20% of every web app is Javascript, and all of them use it... it still has a lot of influence, even if it's distributed amongst a lot of projects.
- enneff 16y agoIt's just infrastructure. A lot of the any web stack is built with C or C++ - and in terms of pure LoC probably outweighs the application - but that doesn't mean it should be included in the count.
- Aramgutang 16y agoIn addition to that, GitHub counts JSON files as JavaScript. I have a Django project with a large JSON fixture checked in, and GitHub reports it as 90% JS, 10% Python.