🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1972

Re: Should I learn C or C++ first?

#1972
From: vancleef
Date: Tue, 15 Aug 1995 05:47
59 lines
3041 bytes
In article <40o2l4$aqp@deyke3.fc.hp.com>, rainer@deyke3.fc.hp.com (Rainer Deyke) writes:
> Lawson English (english@primenet.com) wrote:
> : Dean Fogarty (c9228759@lily.newcastle.edu.au) wrote:
> : : Jeff W. (psilocyn@ix.netcom.com) wrote:
> : : : I just got Borland C++ 4.51, and there's a few questions I have. 
> : : : Should I learn C or C++ first?  And, what benefits do they each have
> : : : over each other?  I don't really know the differences between the two. 
> 
> : : I'd say learn C first.  C++ uses C syntax as a base - it's a good idea
> : : to get an understanding of how C constructs work before going to C++.
> : : Encapsulation, information hiding etc are all great, but it's not much
> : : good if you don't have an understanding of what the basics are.
> 
> 
> : This is so topsy-turvy. Forget C and C++. Learn SmallTalk first so that 
> : you have a firm grasp of OOP and THEN learn C/C++.
> 
> : Principles of OO are FAR more important than details of data structures 
> : and loops and so on.
> 
> What do you expect from a Macintosh user?  OO is either obvious or
> simply stupid.  Learn C first.  

> When writing C++ code, always think
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> about how something would translate into C.  This prevents you from
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I do and say, THANK GOD I CHOSE C++ FOR THIS PROJECT!

I have written more C code than you can shake a stick at, I have written
object-oriented code in C, and, being a recent C++ convert, C++
has improved the quality and maintenance requirements of my work by
so many orders of magnitude it isn't even funny.

C++, when used properly (and not just for inline functions), is 
unbelievably efficient and it makes work on complex programs an
enjoyable experience. It is also great being able to redesign
class heirarchies and inherit properties.

The amount of code you need to write in C vs. C++ is about 20:1
by an estimate I did last year. If you like to type alot
and debug code, C is the way to go. If you liek to do the same
thing over and over and over again, only slightly different, use C. 
If your time is valuable, then use C++. 

Oh no, not another C vs. C++ flamewar!

-Garrett

Don't look back!

> using stupid features that add too much overhead.
> 
> --
> +----------------------------------------------+
> |    Rainer Deyke (rainer@mdddhd.fc.hp.com)    |
> | "The Earth shall inherit the meek" - Carcass |
> +----------------------------------------------+
Technical Details
Message-ID: <1995Aug15.014740.7996@ohstpy>
Path: arc1-ca.pugleaf.net!ohstpy.mps.ohio-state.edu!vancleef
References: <3v6qkj$8ak@news1.best.com> <3v713f$2bd@ixnews6.ix.netcom.com> <40o2l4$aqp@deyke3.fc.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ohstpy.mps.ohio-state.edu!vancleef
From: vancleef@ohstpy.mps.ohio-state.edu
Newsgroups: rec.games.programmer,comp.lang.c++
Subject: Re: Should I learn C or C++ first?
Message-ID: <1995Aug15.014740.7996@ohstpy>
Date: 15 Aug 95 01:47:40 -0400
References: <3v6qkj$8ak@news1.best.com> <3v713f$2bd@ixnews6.ix.netcom.com> <40o2l4$aqp@deyke3.fc.hp.com>
Followup-To: rec.games.programmer,comp.lang.c++
Distribution: world
Organization: The Ohio State University, Department of Physics