63 points · by sethbannon · 13y ago · 44 comments
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?
https://github.com/outsideris/popularconvention/blob/master/...
It seems to only look at commits, (so it doesn't consider the entire file, though it's certainly possible to do)
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.
@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...
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()
Delightfully this is what Go has settled on.
(Who actually presses their tab key anymore? Even vim does that for you.)
Followed by space
def add(a:Int, b:Int) = a + b
Using space in before/after
def add(a:Int, b:Int) = a + b
No space
def add(a:Int, b:Int) = a + b
I'm not seeing any difference between those three.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)