Maybe we should start by making a rule to attribute quotes :)
I am not religious about it - you are right - just stick to one.
Except for the bit where someone thinks that
public Foo() {
i = 0;
}
is good style for method declarations. I think it's pretty ugly.
Oh - and I like
/*
* comment
*/
for anything but end-of-line comments, reserving the
//
//
//
for commenting out code. Makes it easy to scan over code that way,
especially with syntax colorization.
geir
Fernando Padilla wrote:
>
> 1) There are religious battles over the hanging brace..
> let's not start one here please. We can either follow the standard
> or not, period... But the code should all look the same...
>
> - on a side note, many people in my company have gone full circle
> first fighting for the hanging brace ( what you want ), and now
> hating having done that.. i don't why, I'm not one of those...
>
> 2) The one line "if" statements are already strongly discouraged in the
> Sun convention.. for precisely the reasons you gave
>
> fern
>
> > I support the notion of standardization, but some of the Sun conventions
> > are just awful, particularly the bit about ending the method declaration
> > with a '{'
> >
> > Futher, I like starting blocks with a { a la
> >
> > if( foo )
> > {
> > <block>
> > }
> >
> > I know it makes code 'big', but I personally find it easy to read, and
> > then if someone adds something, you don't get stuck with the bug
> >
> > if(foo)
> > bar;
> >
> > going to
> >
> > if(foo)
> > woogie;
> > bar;
> >
> > if they forget to add the braces, which can be a bear to find,
> > especially when groggy and tired :)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Developing for the web? See http://jakarta.apache.org/velocity/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]