On Feb 16, 2010, at 2:07 AM, Guillaume Nodet wrote:

I'd like aries to try using a single coding standards.
Specifically, i'd like us to agree on indentation rules (the code uses
2 or 4 spaces in different places).
I'd like to propose the geronimo coding standards which is in use in a
lot of projects at apache.
See http://geronimo.apache.org/coding-standards.html

I think that all the apache projects I know about use 4 spaces, no tabs for java. There's more disagreement about where the { goes. I think that in this case having the code look more like other apache projects is a significant ease-of-transition factor that we might subordinate our preferences based on personal experience to.

So, based partly on my strong preference for 4 spaces and being used to it, I'd vote for 4 spaces.

Btw, I really don't think we should enforce those at all cost using
maven plugins or such, but agreeing on
those would allow to reformat the code once and not go back and forth
between different standards.

I agree. I find it very hard to work on projects that enforce coding standards, it typically takes longer to decipher what the plugin thinks is wrong than to make the code changes I was interested in.

thanks
david jencks

--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to