Received: by taz.hyperreal.com (8.6.12/8.6.5) id GAA06819; Thu, 27 Jun 1996 06:50:10 -0700 Received: from epprod.elsevier.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id GAA06807; Thu, 27 Jun 1996 06:50:06 -0700 Received: from snowdon.elsevier.co.uk (snowdon.elsevier.co.uk [193.131.197.164]) by epprod.elsevier.co.uk (8.6.13/8.6.12) with ESMTP id OAA14617 for ; Thu, 27 Jun 1996 14:48:29 +0100 Received: from cadair.elsevier.co.uk (actually host cadair) by snowdon with SMTP (PP); Thu, 27 Jun 1996 14:48:26 +0100 Received: (from dpr@localhost) by cadair.elsevier.co.uk (8.6.12/8.6.12) id OAA14473; Thu, 27 Jun 1996 14:47:30 +0100 Date: Thu, 27 Jun 1996 14:47:30 +0100 Message-Id: <199606271347.OAA14473@cadair.elsevier.co.uk> To: new-httpd@hyperreal.com Subject: Re: Style list II In-Reply-To: <199606271325.IAA26016@sierra.zyzzyva.com> References: <199606271256.NAA13843@cadair.elsevier.co.uk> <199606271325.IAA26016@sierra.zyzzyva.com> From: Paul Richards X-Attribution: Paul X-Mailer: GNU Emacs [19.30.1], RMAIL, Mailcrypt [3.3] Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com >>>>> "Randy" == Randy Terbush writes: >> My vote update and the new total. >> Randy> Actually, here is what I have as the current tally, including Randy> Roy's votes. One issue that Roy brought up regarding #3 is very Randy> much agree with. The issue of where to start the opening Randy> brace. It seems that the whole point of choosing a format to Randy> code to is to make the code more readable/maintainable by all Randy> involved. Not to squish as many lines as possible onto the Randy> screen. IF we decide to accomplish this goal by using 'indent', Randy> I would like us to reconsider the vote on #3 since I think it Randy> is counter productive to the goal. Indent's not very usefull for doing development on code you have checked out from cvs. If you're style diverges a lot from the Apache style then cvs update/diff and so forth will be a real pain unless you run indent before every cvs command. Fine if that's what you want but unless indent is real carefull about doing things exactly the same way each time then you'll have problems. It's ok for one off conversions for contributed/legacy code but not for day to day development. As for opening braces, I find that having opening braces on separate lines makes the code less readable. The important thing is to be able to see where the program flow is and having a 'while' or 'if' stand out clearly (which it should with proper indentation) is the important thing. Sticking opening braces on the next line rather than after the statement makes it more cluttered for me. if (blah) { code } if (blah) { code } -------------------------------------- if (blah) { code } if (blah) { code } When you get a lot of code like this all those opening braces with the same alignement can make it difficult to focus quickly on where you are. With the first style it's much easier to quickly see the statement that is being "closed" since there's nothing else on the same alignement between it and the closing brace.