Re: SOS PLEASE FRIENDS OF JAVA




"Bent C Dalager" <bcd@xxxxxxxxxxx> wrote in message
news:f0t3h3$nuh$1@xxxxxxxxxxxxxxxxxxxxx

A method shouldn't normally be more than 50 lines long
anyway, so there is no longer a legitimate reason for hiding the
braces.

The only intermittent problems come from Java's more brace-heavy
syntaxes, such as when you have a method with one or two anonymous
inner classes in it.

In my opinion, Sun's Java coding conventions bear many signs of being
a continuation of 70s-type C programming styles. They speak more of
the conservatism of Sun's programmers than of anything else.


Personally I find that heavily nested braces means a cue to refactor.
I use suns convention. I never have a matching brace problem, if I
did I'd use the facilty provided by any modern IDE to fix the
formating and/or highlight the matching brace.
Now parentheses are another matter!

--
Mike W


.