From owner-freebsd-questions@FreeBSD.ORG Tue Nov 11 18:37:22 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D11516A4CE for ; Tue, 11 Nov 2003 18:37:22 -0800 (PST) Received: from swin.edu.au (c3p0.cc.swin.edu.au [136.186.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB8D943FAF for ; Tue, 11 Nov 2003 18:37:20 -0800 (PST) (envelope-from pvandenbergen@swin.edu.au) Received: from pvdbergen.caia.swin.edu.au (pvdbergen.caia.swin.edu.au [136.186.229.26]) by swin.edu.au (8.9.3p2-20030918/8.9.3) with ESMTP id NAA994754 for ; Wed, 12 Nov 2003 13:37:19 +1100 (EST) From: paul van den bergen To: freebsd-questions@freebsd.org Date: Wed, 12 Nov 2003 13:37:19 +1100 User-Agent: KMail/1.5 References: <00f201c3a7dc$40706fa0$6400a8c0@desktop> <3FB0295C.70602@mindcore.net> <20031111135435.GA396@keyslapper.org> In-Reply-To: <20031111135435.GA396@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311121337.19027.pvandenbergen@swin.edu.au> Subject: Re: Another Newbie Question: C or C++ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 02:37:22 -0000 On Wed, 12 Nov 2003 12:54 am, Louis LeBlanc wrote: > Wow, that's a fairly complete list. Agree completely on the C/C++ > application/philosophical differences. The book list missed one very > useful C++ book by Josutis, "The C++ Standard" I think. Don't have it > handy. I agree with all said so far but would add that IMHO, you can't really can't go past o'reilly for pretty much any topic on computing... to paraphrase, there are plenty of bad computer books but I would guess few of them are O'reilly books :-) except maybe UML in a nutshell *shudder* > You know, everyone's been telling me to give up C and just start > working with C++. I've been resisting pretty strongly, and now I > realize why. C is a geeks language. It gives you more control than > C++. I like C for one primary reason: I like to be in control. I > know that many of the C++ constructs, member functions, etc. are slow > in comparison to home grown vanilla construct in C that only do what > they are needed for. The standard template classes use table lookups > just to figure out what its contents look like. If you create the > construct from scratch, it knows whether it's holding an int, char*, > or struct. Like someone said, it depends what you want to do. IMHO, C is much better for small, embedded or system level programming and C++ of large 'enterprise" level programming. It is no wonder that C is the basis for most OSOSs... and because someone mentioned Java, I thought i'd mention Forth... :-) -- Dr Paul van den Bergen Centre for Advanced Internet Architectures caia.swin.edu.au pvandenbergen@swin.edu.au IM:bulwynkl2002 "And some run up hill and down dale, knapping the chucky stones to pieces wi' hammers, like so many road makers run daft. They say it is to see how the world was made." Sir Walter Scott, St. Ronan's Well 1824