Google's R Style Guide
google-styleguide.googlecode.com
google-styleguide.googlecode.com
The violation of this rule in Mono code is probably 60% of the reason I'd never want to contribute to it. I simply can't stand the abomination of looking at method calls like:
foo.bar( baz );
Ugh.Much of our non-.NET code adheres to this convention, and I've found I kinda like it. We don't require it for .NET code (C#, primarily), simply because that would require tweaking the IDE's default formatting behavior.
foo.bar( baz => quux, gorch => 42 );
it starts looking a lot nicer. The foo.bar(baz) is really the outlier, and for the sake of consistency, you might as well add a space.(That said, sometimes I don't, and I would never "care" one way or the other. If you are writing good code, where the spaces are is of little importance.)
Does anyone know if Google has a Java style guide?
http://google-styleguide.googlecode.com/svn/trunk/pyguide.ht...
EDIT: Hurr, source control. Looks like in July.
It's essentially very similar to the official Java Style Guide with some minor extra bits but, to get a flavour, you can just browse the source of any Google open-source Java project (e.g. http://code.google.com/p/gdata-java-client/source/browse/#sv...).
> The maximum line length is 80 characters.
Ah, I remember programming on terminals.
edit: Most places I've worked/people I've talked to prefer 100-120 chars.
Ok, virtual terminals (though I did use a VT220 for a good while). But I do still stick to an 80x24 screen. My theory is that if my code is too complicated for me to understand without expanding the screen, then it needs to be refactored or reorganized.
if(x<-10) print("oops");
if(x < -10) print("whee");