Thread: Not new to programming but....

  1. #1
    Registered User kippen's Avatar
    Join Date
    Aug 2003
    Posts
    3

    Not new to programming but....

    I've been programming in php for about 4.5 years now. Wanted to get into to some C/C++. I think i know the major differences between C/C++ which is templating and OO, is there really much point in learning C these days (other then being able to work with old code ect.) ?

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I believe nowadays people are encouraged not to learn C before C++ and anyways C++ is pretty much an updated version of C
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >is there really much point in learning C these days
    All of the excuses for using C instead of C++ have been made obsolete recently. I use C because I prefer a language that I can remember all at once and use most features of on a regular basis. C++ is too big and clumsy IMO. However, I will admit that while I'm not likely to learn and use all of C++, there are several features that I make good use of because they are genuine improvements to C.

    Also note that I don't think in OO terms, so the OO features of C++ such as inheritance and polymorphism I don't use much, if at all.
    My best code is written with the delete key.

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Originally posted by Prelude
    >is there really much point in learning C these days
    All of the excuses for using C instead of C++ have been made obsolete recently. I use C because I prefer a language that I can remember all at once and use most features of on a regular basis. C++ is too big and clumsy IMO. However, I will admit that while I'm not likely to learn and use all of C++, there are several features that I make good use of because they are genuine improvements to C.

    Also note that I don't think in OO terms, so the OO features of C++ such as inheritance and polymorphism I don't use much, if at all.
    The important thing to note here is "genuine improvements to C". Even those who think C is the greatest of all can still use C++ without using all of the features. And you don't have to know an entire language to use it. Most of the obscure features of C++ don't get used by the majority of programmers. I would rather they were there for me though. OOP is a better way of doing things but you may not want to. Even so, C++ has plenty of improvements aside from objects.

    For the sake of argument, let's pretend that you don't want to use ANY of the new features. C++ has C in it for the most part. You can't really prefer C in that sense. Consider the following conversation:

    guy++: I like math.
    guy: I don't like math, I prefer algebra.

    Make any sense? of course not, algebra is contained in math. You can continue using algebra just fine and be using math the whole time. But it is nice while using algebra if you can once in a while throw some trig in there. You shouldn't restrict yourself to the silly little subset known as C.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    from all of my schedules and courses of study so far, i haven't even heard anything of C++, except for when somebody asks where C++ came from in class, and at best we get a brief description of the history of C...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed