From owner-freebsd-hackers Tue Mar 5 10:17:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 490C637B400 for ; Tue, 5 Mar 2002 10:17:04 -0800 (PST) Received: (qmail 4734 invoked from network); 5 Mar 2002 18:16:59 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 5 Mar 2002 18:16:59 -0000 Date: Tue, 5 Mar 2002 13:16:59 -0500 (EST) From: Kenneth Culver To: "M. Warner Losh" Cc: vel@bugz.infotecs.ru, Subject: Re: C vs C++ In-Reply-To: <20020305.094927.40858673.imp@village.org> Message-ID: <20020305131602.J4700-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 think what I was trying to say is that a lot of C++ programmers will obfuscate their code by using features of the language that don't fit with what they were trying to accomplish. Ken On Tue, 5 Mar 2002, M. Warner Losh wrote: > In message: <20020305102829.A3576-100000@alpha.yumyumyum.org> > Kenneth Culver writes: > : > I have a small problem. I work for software development company and > : > write daemons and console tools for Unix. My boss wants everything to be > : > written in C++, because he thinks C++ is cool. I prefer C for such > : > tasks, but I cannot really put good arguments of why and where C++ can > : > be worse than C. I know many of you prefer C too. Can you please explain > : > some disadvantages of C++ comparing to C ? Is it slower, does it produce > : > less effective code, why is it like that, etc ... or please direct me to > : > some articles where this can be explained. > : > : My main problem with C++ is that it adds a lot of overhead, and it's slow. > : Also, it drives me nuts when people code in C++ and write all kinds of > : classes when using classes for certain things just doesn't make sense, and > : makes the code much more convoluted. > > C++ doesn't add noticable overhead and isn't slow, unless you are a > dumbass about how you write it. All languages give you plenty of ways > to write speghetti fortran code :-). C++ gives you a number of ways > to obfuscate. > > Warner > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message