News for hackers. Stuff that matters.
Re:Counting Stars on GitHub by Cthulhu_ on Monday December 23, 2013 @09:25AM (#6954338)
Well, his interpretation of the numbers is rather off, I'm afraid. Mostly due to the language categoriziation; Bootstrap, Node, Zurb Foundation and Adobe Brackets aren't Javascript projects, for example.
Re:Counting Stars on GitHub by laymil on Monday December 23, 2013 @09:28AM (#6954367)
I thought that was well addressed by this comment in the post:

"Looking at the top repo for each language also exposes a weakness in the methodology: GitHub’s language identification isn’t perfect and there are number of polyglot projects. The top Java repo is Storm, which uses enough Clojure (20.1% by GitHub’s measure) to make this identification questionable when you take into account Clojure’s conciseness over Java’s."

Re:Counting Stars on GitHub by Adrock on Monday December 23, 2013 @09:31AM (#6954383)
OP here. I agree that the language categorization is questionable. It's all based on what the GitHub Search API returns as the language.

Looking at Bootstrap, the classification doesn't seem to be strictly based on percentage:

- CSS 59.8% - JavaScript 39.7% - Python 0.5%

...but GitHub Search says JavaScript. I do see that if I do a search query with a language filter, I get different results.

Re:Counting Stars on GitHub by misterdai on Monday December 23, 2013 @09:53AM (#6954508)
GitHub uses its Linguist project to detect languages and index them as far as I know. I've used the list of languages from this file: https://github.com/github/linguist/blob/master/lib/linguist/...

I did pick an older version as they don't always run the latest release. Handy as you can filter out items flagged as "markup". Plus, have to watch out for languages like Mirah that are oddly indexed (same repo count as Ruby).