News for hackers. Stuff that matters.
Re:The switch: Python to Node.js by nkassis on Sunday December 18, 2011 @10:06AM (#3366725)
How does it calculate the size of the code base for each language? Most people would be using jquery as a minified oneliner. How can that inflate the numbers so much?
Re:The switch: Python to Node.js by Tobu on Monday December 19, 2011 @03:04AM (#3368921)
GitHub's source code language detection is over there:

https://github.com/github/linguist/tree/master/lib/linguist

It doesn't measure line length, which could be a good way to detect minified JavaScript. It uses file extensions and byte size. There is some exclusion of commonly bundled libraries, but it's a rough heuristic on file paths.

Re:The switch: Python to Node.js by ceejayoz on Sunday December 18, 2011 @11:50AM (#3366923)
I'd imagine counting by characters would make a lot more sense than counting lines.