Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.5) id JAA06066; Fri, 2 May 1997 09:07:43 -0700 (PDT) Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193]) by hyperreal.com (8.8.5/8.8.5) with SMTP id JAA05866 for ; Fri, 2 May 1997 09:07:18 -0700 (PDT) Received: from gonzo.ben.algroup.co.uk (gonzo.ben.algroup.co.uk [193.133.15.1]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with SMTP id QAA14855 for ; Fri, 2 May 1997 16:06:48 GMT Subject: Re: C++. Style guide. To: new-httpd@apache.org Date: Fri, 2 May 1997 16:59:39 +0100 (BST) From: Ben Laurie In-Reply-To: from "Paul Sutton" at May 2, 97 04:46:42 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <9705021659.aa25211@gonzo.ben.algroup.co.uk> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Paul Sutton wrote: > > On Thu, 1 May 1997, Ben Laurie wrote: > > An interesting idea. It seems to me, though, that what this gets you is no > > better, and in some ways worse, than using C++ and inheritance. Am I missing > > something? > > Oh no, not again. I say no, use Java if we must re-code Apache into a > different language, but I'd prefer to stick with C. Yes some OO > programming techniques are great, and lets use them in C whereever > possible, but C++ is much less widely used (how many other Unix systems > programs are written in C++? perl? bind? sendmail? inn? cvs? lynx? xntp? > Umm). Most of them predate C++, so it isn't a strong argument. And is Java as widespread as C++, even? Anyway, using C++ will be educational for those who don't know it, and more fun than C for those who do. As well as being just generally better. Although you can use OO in C, the experience can only be described as painful. If I may quote Stroustrup: "C++ is a general purpose programming language designed to make programming more enjoyable for the serious programmer". He ain't wrong. > > Anyway, while we are going over old wounds, what about resurrecting the > Apache coding style guide. It was an excellent idea in my opinion and was > 95% complete when the world fell over. Or use this easy-to-digest two word > programming style guide: > > Use comments. I still have the style guide as it was lurking somewhere on one of my machines. Shall I add it to the repository? Or what? Start posting it again? Cheers, Ben. -- ** Buy "Apache: The Definitive Guide" from http://www.links.org/apache ** Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director URL: http://www.algroup.co.uk/Apache-SSL A.L. Digital Ltd, Apache Group member (http://www.apache.org) London, England. Apache-SSL author