News for hackers. Stuff that matters.
Re:The switch: Python to Node.js by jahewson on Sunday December 18, 2011 @06:48AM (#3366451)
OTOH JavaScript is the most popular language on GitHub
Re:The switch: Python to Node.js by ergo14 on Sunday December 18, 2011 @06:51AM (#3366456)
And how does this relate to the statement above? How many of this is DOM manipulation code for browser? i'll make a wild guess of 90%?
Re:The switch: Python to Node.js by clojurerocks on Sunday December 18, 2011 @08:44AM (#3366599)
Part of this though is because web apps are for better or worse increasingly being almost nothing but javascript. And it becomes tedious moving back and forth between javascript and another language. Even if that language is really good. So i think people are just going with javascript for "everything" and rewriting their libraries in it.
Re:The switch: Python to Node.js by nivertech on Sunday December 18, 2011 @08:51AM (#3366613)
HTML is the most popular language on GitHub ;)
Re:The switch: Python to Node.js by insin on Sunday December 18, 2011 @06:58AM (#3366468)
I always wonder what percentage of that consists of included dependencies.
Re:The switch: Python to Node.js by gurraman on Sunday December 18, 2011 @07:43AM (#3366529)
Most of our "django projects" are listed as being written in js on GitHub.
Re:The switch: Python to Node.js by ceejayoz on Sunday December 18, 2011 @07:26AM (#3366506)
A good half of it may just be "we threw jQuery in here instead of making you download it".
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.