Re:JavaScript is the most popular language on GitHub
by JeffJenkins on Wednesday December 08, 2010 @10:01PM
(#1985821)
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
[ Parent
| on HN ]
Re:JavaScript is the most popular language on GitHub
by technoweenie on Wednesday December 08, 2010 @10:27PM
(#1985884)
For 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'.
Re:JavaScript is the most popular language on GitHub
by thraxil on Thursday December 09, 2010 @12:06PM
(#1988121)
I 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
Re:JavaScript is the most popular language on GitHub
by technoweenie on Thursday December 09, 2010 @12:38PM
(#1988271)
I 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...
Re:JavaScript is the most popular language on GitHub
by steveklabnik on Wednesday December 08, 2010 @10:29PM
(#1985890)
You 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.
Re:JavaScript is the most popular language on GitHub
by enneff on Thursday December 09, 2010 @03:25AM
(#1986620)
It'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.
Re:JavaScript is the most popular language on GitHub
by harpastum on Wednesday December 08, 2010 @10:23PM
(#1985872)
Exactly. 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
Re:JavaScript is the most popular language on GitHub
by troygoode on Wednesday December 08, 2010 @10:28PM
(#1985888)
Just about all of my webapps (which are generally C#) show up as JS on GitHub.
Re:JavaScript is the most popular language on GitHub
by baddox on Wednesday December 08, 2010 @10:12PM
(#1985842)
I have a few Django projects on github, and they're all considered to be js projects solely because of JQuery.
Re:JavaScript is the most popular language on GitHub
by Aramgutang on Thursday December 09, 2010 @04:06AM
(#1986709)
In 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.