From owner-freebsd-hackers Tue Mar 5 15:24:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 4F0EB37B637 for ; Tue, 5 Mar 2002 15:21:41 -0800 (PST) Received: from hades.hell.gr (patr530-a217.otenet.gr [212.205.215.217]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g25NLWDg003509; Wed, 6 Mar 2002 01:21:33 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g25NLd0Q006431; Wed, 6 Mar 2002 01:21:39 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g25N5aN2006018; Wed, 6 Mar 2002 01:05:36 +0200 (EET) (envelope-from keramida@freebsd.org) X-Authentication-Warning: hades.hell.gr: charon set sender to keramida@freebsd.org using -f Date: Wed, 6 Mar 2002 01:05:35 +0200 From: Giorgos Keramidas To: Kenneth Culver Cc: Terry Lambert , freebsd-hackers@freebsd.org Subject: Re: C vs C++ Message-ID: <20020305230535.GB5328@hades.hell.gr> References: <3C850540.EA8EDE0F@mindspring.com> <20020305132457.A4700-100000@alpha.yumyumyum.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020305132457.A4700-100000@alpha.yumyumyum.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [ Top-posting edited off. Please, try to avoid top-posting. ] On 2002-03-05 13:25, Kenneth Culver wrote: > On Tue, 5 Mar 2002, Terry Lambert wrote: > > "Steve B." wrote: > > > I take a simplistic view after years of C++. > > > > > > C++ is good for large projects that need to be maintained into the future. > > > Then the advantages of OO starts to kick in. For small projects that won't > > > change much then C is the better choice IMO. > > > > Wow. Forgot this disadvantage of C++, too. > > > > Yeah, it's difficult to write code that someone else > > couldn't come in and maintain after it was done. This > > means that the normal rules about "write important code > > and you have a job forever" no longer apply. 8-(. > > Why are you being so sarcastic? Everyone here is assuming that it's harder > to write C++ code, so you should only use it if necessary. It isn't > necessary to use it for something like a daemon. Apart from the obvious reason that someone has to be the devil's advocate, otherwise the thread will die, and I won't have anything to download in my mailboxes... Terry is right, although he chose a humorous[1] way to list his arguments :-) Terry suggested in his post (yes, the same one you find sarcastic), that C++ code can be written in ways that will help maintaining it later on. The object oriented methodology of programming, is not necessarily bad, and the Evil That Should Die(TM). There are good things about it, and there are bad things about it too. [1] Let us not forget that sarcasm, is in fact a form of humour. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message