Analyze Github commits to know which convention is popular
sideeffect.kr
sideeffect.kr
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.
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()
@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...
Delightfully this is what Go has settled on.
(Who actually presses their tab key anymore? Even vim does that for you.)
http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_space...
http://www.emacswiki.org/emacs/SmartTabs
Intellij also has this capability, and likely other editors as well.
I prefer to do it by hand, but that is nothing but my personal preference. It has nothing to do with the scheme itself. If someone is opposed to doing things by hand, they don't need to do this by hand.
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)