Re: SOS PLEASE FRIENDS OF JAVA
- From: "visionset" <spam@xxxxxxxxxxxx>
- Date: Fri, 27 Apr 2007 15:15:05 GMT
"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
.
- Follow-Ups:
- Re: SOS PLEASE FRIENDS OF JAVA
- From: Bent C Dalager
- Re: SOS PLEASE FRIENDS OF JAVA
- References:
- SOS PLEASE FRIENDS OF JAVA
- From: mak
- Re: SOS PLEASE FRIENDS OF JAVA
- From: Lew
- Re: SOS PLEASE FRIENDS OF JAVA
- From: ..::WojT::..
- Re: SOS PLEASE FRIENDS OF JAVA
- From: Chris Smith
- Re: SOS PLEASE FRIENDS OF JAVA
- From: Bent C Dalager
- SOS PLEASE FRIENDS OF JAVA
- Prev by Date: Re: SOS PLEASE FRIENDS OF JAVA
- Next by Date: Re: SOS PLEASE FRIENDS OF JAVA
- Previous by thread: Re: SOS PLEASE FRIENDS OF JAVA
- Next by thread: Re: SOS PLEASE FRIENDS OF JAVA
- Index(es):