From owner-freebsd-chat Tue Mar 5 20: 5:12 2002 Delivered-To: freebsd-chat@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id CBC6837B404 for ; Tue, 5 Mar 2002 20:05:09 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id VAA25252; Tue, 5 Mar 2002 21:05:00 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g2644xT29563; Tue, 5 Mar 2002 21:04:59 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15493.38251.391805.244512@caddis.yogotech.com> Date: Tue, 5 Mar 2002 21:04:59 -0700 To: Terry Lambert Cc: Kenneth Culver , Nate Williams , "Steve B." , "Eugene L. Vorokov" , freebsd-chat@FreeBSD.ORG Subject: Re: C vs C++ In-Reply-To: <3C857080.44C5236B@mindspring.com> References: <20020305193028.H6706-100000@alpha.yumyumyum.org> <3C857080.44C5236B@mindspring.com> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > C++ is a good mapping for problems that are subject to > object decomposition for solution, and in a design-before-code > environemnt (explains why you haven't seen good -- IYO -- Open > Source C++ code), it is easier to verify that the code matches > the design, and the correctness of the design, as well as being > able to use the design document 10 years later to successfully > maintain the code. See my previous email, where I disagree with this. Using some analogies: C - Here is a gun and bullets. Try not to hurt yourself. Java - Here is a gun, with the safety-on, and some rubber bullets. Try not to hurt yourself. C++ - Here is a fully loaded gun, with no safety. Let's point it at your foot. If might hurt if you pulled the trigger, but then again it might feel good. Go ahead and try to not shoot yourself. > FWIW, the University of Kentucky did a Bell Labs/USL > sponsoered OS research project called "Choices", written > in C++. [ snip ] Great. Someone can actually write something decent in C++. In the same manner is that it's possible to write bad code in any language, I'm of the opinion that some languages make it hard to write good code. C++ is one of those languages. It's possible to use it and do a good job, but the odds are stacked against you. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message