Maybe this is intended to be obvious, but it is not to me. Is this actually counting the number of commits that show a particular convention, or is it showing the number of occurrences of said convention?
The web site states "number of commits" (without really discussing methodology) which is, frankly, not at all interesting to me. Is a commit of 100,000 LOC weighted equally to a commit of one LOC? Are these projects internally consistent or no? Do projects eventually become internally consistent?
The site seems to stop after having one of the language icons selected. There's a "Loading..." graphic, then it disappears, then nothing. Is anyone experiencing the same issue?
What is the methodology for the 'Line length is over 80 characters' ?
A lot of lines of code have less than 80 characters, no matter what the conventions are.
What would be interesting is the percentage of files that have not a single line with more than 80 characters and the other files.
It would be more obvious to see who doesn't care about 80 characters.
Nice charts. I'd be curious about number of spaces, particularly for JS: 2 spaces seems more common in the Node community, but I see a lot of 4 as well. Perhaps it has to do with whether the author is more comfortable with Ruby (usually 2) or Python (4).
My current company goes against the grain by using snake_case instead of camelCase in JavaScript code. It weirded me out at first, but considering our backend is Python, it's nice not to switch conventions.
I've come to really enjoy using the conventions of the language to keep things clear when writing css-rules that are intermixed with javaScriptVariables talking to a ruby_backend emitting jsonEncodedObjects.
Keeping things js-named helps keep my mind in the path of JavaScript conventions instead of Ruby ones in situations like array_of_things.pop and arrayOfThings.pop()
Cool idea. I would love to see more languages and conventions added. I will say the background image at the top (the code with the focus explosion effect) gives me a headache though. The site looks better without the image.
Python's PEP8 recommends underscores for functions, method names and instance vars, but the stats are showing a break down of camelCase with and without first capital letter (which shouldn't really be relevant).
Very cool idea, always interesting to see this kind of data.
My only feedback would be to put the language names as well as logos. I had no idea what those last two languages were, and waiting for the hover title text is a bit tedious (not to mention some people may not realise you can do that)
Interesting, though at no point does the site actually say what language it's analyzing. I recognize the javascript and java icons, and I'm guessing that since the third one is a snake, it's python, but I have no idea what the last one is.
[+] [-] ethomson|12 years ago|reply
The web site states "number of commits" (without really discussing methodology) which is, frankly, not at all interesting to me. Is a commit of 100,000 LOC weighted equally to a commit of one LOC? Are these projects internally consistent or no? Do projects eventually become internally consistent?
[+] [-] CatMtKing|12 years ago|reply
https://github.com/outsideris/popularconvention/blob/master/...
[+] [-] isxek|12 years ago|reply
[+] [-] isxek|12 years ago|reply
[+] [-] vmarsy|12 years ago|reply
[+] [-] CatMtKing|12 years ago|reply
It seems to only look at commits, (so it doesn't consider the entire file, though it's certainly possible to do)
[+] [-] graue|12 years ago|reply
My current company goes against the grain by using snake_case instead of camelCase in JavaScript code. It weirded me out at first, but considering our backend is Python, it's nice not to switch conventions.
[+] [-] casual_slacker|12 years ago|reply
@see http://code.jquery.com/jquery-1.10.1.js https://github.com/joyent/node/blob/master/src/node.js https://code.google.com/p/closure-library/source/browse/clos...
[+] [-] rcsorensen|12 years ago|reply
Keeping things js-named helps keep my mind in the path of JavaScript conventions instead of Ruby ones in situations like array_of_things.pop and arrayOfThings.pop()
[+] [-] glitchdout|12 years ago|reply
http://javascript.crockford.com/code.html
[+] [-] jnuss|12 years ago|reply
[+] [-] dansimau|12 years ago|reply
[+] [-] signed0|12 years ago|reply
[+] [-] leastfixedpoint|12 years ago|reply
[+] [-] znowi|12 years ago|reply
[+] [-] calpaterson|12 years ago|reply
http://www.jwz.org/doc/tabs-vs-spaces.html
[+] [-] to3m|12 years ago|reply
[+] [-] jlgreco|12 years ago|reply
[+] [-] jlgreco|12 years ago|reply
[+] [-] rcsorensen|12 years ago|reply
[+] [-] MattBearman|12 years ago|reply
My only feedback would be to put the language names as well as logos. I had no idea what those last two languages were, and waiting for the hover title text is a bit tedious (not to mention some people may not realise you can do that)
[+] [-] kstenerud|12 years ago|reply
[+] [-] xnxn|12 years ago|reply
[+] [-] jmgrosen|12 years ago|reply
[+] [-] samspenc|12 years ago|reply
[+] [-] fennecfoxen|12 years ago|reply
[+] [-] gboudrias|12 years ago|reply
[+] [-] EricMuller22|12 years ago|reply
[+] [-] joshavant|12 years ago|reply
[+] [-] twiceaday|12 years ago|reply
[+] [-] jtms|12 years ago|reply
[+] [-] yazgazan|12 years ago|reply
[+] [-] itsmonktastic|12 years ago|reply