From owner-freebsd-hackers Tue Mar 5 12:11: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id C8F8B37B405 for ; Tue, 5 Mar 2002 12:10:44 -0800 (PST) Received: from dhcp206.mis.earthlink.net ([207.217.66.246] helo=DROID) by harrier.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16iLGc-0003KK-00 for freebsd-hackers@FreeBSD.ORG; Tue, 05 Mar 2002 12:10:34 -0800 Message-ID: <001701c1c481$d0d5eab0$f642d9cf@DROID> From: "Steve B." To: References: <20020305132457.A4700-100000@alpha.yumyumyum.org> Subject: Re: C vs C++ Date: Tue, 5 Mar 2002 12:10:37 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 I wouldn't say C++ is THAT much harder to write, it does have a steeper initial learning curve than C. Most of that is due to needing to learn OOP at the same time. It is easier for C++ to come back and bite you than C if you don't spend enough time up front in design. IMO the biggest problem is people trying to treat C and C++ as one language. That is only good is you want to use C++ and as a better C compiler for the lint like features of C++ language. Steve B. ----- Original Message ----- From: "Kenneth Culver" To: "Terry Lambert" Cc: "Steve B." ; "Eugene L. Vorokov" ; Sent: Tuesday, March 05, 2002 10:25 AM Subject: Re: C vs C++ > 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. > > Ken > > 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-(. > > > > -- Terry > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message