Learn C after C++?

This is a discussion on Learn C after C++? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Prelude Ah, but there's a difference between "I've learned all the C++ there is to learn" and ...

  1. #16
    Registered User
    Join Date
    Feb 2006
    Posts
    312
    Quote Originally Posted by Prelude
    Ah, but there's a difference between "I've learned all the C++ there is to learn" and "Okay, enough is enough". Most of us don't want to learn everything C++ has to offer because we simply won't use it. In cases like that it's practical to determine the point at which you can stop an intensive focus because any more would be wasted effort. Such effort would be better spent learning something we actually intend to use.
    Personally, I find that learning doesn't really stop, it just becomes more passive (as long as you do continue to use C++ of course). I suspect the poster who said "I'm still learning C++ after 10 years" only spent 1 or 2 years of that time actually intensively studying the language, as so much else comes down to raw experience.
    Somehow, it is almost impossible to stop learning - Kinda like playing the guitar - You begin with playing tunes which other people have written... then you move on to writing your own songs.

  2. #17
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    Quote Originally Posted by Prelude
    >What C can do that C++ can't?
    Work on some embedded systems that can't handle C++.
    that only means the target compiler cannot compile c++ code, a c++ compiler has not been written for that os. It doesn't mean the os can't run a program written in c++. Once compiled down to executable machine code there is no difference at all. The program written in c++ will probably be larger than the program written in c, but the os will not be able to tell the difference when the compiled program is run.

    And the ability to run on any given operating system is not a function (or feature) of any programming language. There is nothing at all in either the C or C++ ansi standards that say the language cannot be run on embedded systems. Some embedded systerms do not even have a C compiler, let alone a c++ compiler, while other embedded systems have both C and C++ compilers, as well as support java, basic and other computer languages.
    Last edited by Ancient Dragon; 03-01-2006 at 07:17 PM.

  3. #18
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    >> Where can I see those instances? What are they? I only want to know.

    One example is a string. With C++ you have greater overhead and less consistency with your strings. If you want to minimize the size of memory used for a bunch of strings in your app, with C you can identify the exact amount of memory that will be used and be confident that it will be consistent when you move the code to other platforms. That is not the case when you program with C++.

  4. #19
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Quote Originally Posted by SlyMaelstrom
    Get very comfortable with C++ to the point that you feel you could get an entry level job with your knowledge in it, then you could break into learning other languages such as Java, PHP, Delphi/Object Pascal and older languages such as C.
    This is basically what I did, I learned to program in C++, and now can do alright in it. Got myself a job programming, after 3 months of working there I have yet to write a single line of C++, but all the programming I had done with C++ made it so I could pick up Perl in 2ish days, PHP in like a week, and now I am learning java. I was biased to a single langauge when I started my job. Now I don't even think to hard about it. It just seems natural what langauge to use for different jobs because they are all better than another langauge at something.

    I have started to pick up a little C in my spare time, haven't really programmed in it, just used some embeded in some Perl. I can't see a good reason unless it is job specific to go out and learn C, after programming for a while, you will be able to read just about any langauge see what it is doing, and if needed add onto it. That is how I started to learn java, has worked alright for me so far.

    EDIT: Removed the discaimer thing I had in my post, doesn't have much to do with the OP.
    Last edited by Wraithan; 03-02-2006 at 03:14 PM.

  5. #20
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Nothing other than that?
    You were expecting more? No offense, but people who aren't proficient with both C and C++ tend to have trouble seeing why C is still needed when C++ can pretty much do everything that C can and makes many things easier. Unfortunately, it's also impossible to explain the distinction.

    >I find that learning doesn't really stop
    If you use C++, you can't keep from learning things here and there. What I'm talking about is actively teaching yourself rather than simply picking things up through writing code and talking to other programmers.
    My best code is written with the delete key.

  6. #21
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by Wraithan
    **DISCLAIMER** I do not condone the use of java for anything but web applications, I am opposed to it and .NET(and any other language that requires a RTE and is not an interpreted language) for regular applications.
    any particular reason for this bias?

    so you don't approve of C++ then? Many C++ implementations put the standard library (the non-templated part) in a seperate "C run time" dll (ala msvcrt.dll) and it's certainly not interpreted.

    but your sentence doesn't even make sense. You say you are opposed to java and .net and languages that require RTEs that are not interpreted. Both Java and .Net are intrepeted languages! Sure they compile to bytecode, but that's still interpreted.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

  7. #22
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,069
    Besides, most employers will take a guy that knows C++ and Java over a guy who knows C++ and hates Java, anyday. Assuming of course they're equal in every other fasion.
    Sent from my iPadŽ

  8. #23
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >most employers will take a guy that knows C++ and Java over a guy who knows C++ and hates Java
    Only a fool forms an opinion about something he doesn't fully understand. Be wary of assuming that those of us who hate Java aren't proficient with it.
    My best code is written with the delete key.

  9. #24
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,069
    Right, well I guess that's true.
    Sent from my iPadŽ

  10. #25
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    RTEs, from every implementation of them, all they have done is help for RAD and slow down the end resulting program, especially during start up. What I should have said instead of interpreted is a scripting language. I have never found or seen a good impletmentation of RTEs in a product that was distributed. For internet applications I can see it being alright, you don't have the RTE to load because it is already loaded, and generally the servers have the power that the difference is minimal in effeciency.

    If you can give a couple good examples of where RTEs are better than than none RTE alternatives other than RAD, I would like to see it.

  11. #26
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    Emacs
    There are 10 types of people in this world, those who cringed when reading the beginning of this sentence and those who salivated to how superior they are for understanding something as simple as binary.

  12. #27
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597
    Quote Originally Posted by Wraithan
    If you can give a couple good examples of where RTEs are better than than none RTE alternatives other than RAD, I would like to see it.
    you're really not gonna like this, but for all but the most performance intensive applications (or conversely the least powerful embedded platforms), efficency doesn't really matter. Well, it matters, but it's not as important as stability, readability, flexibiltity and time to market.

    A languages power is more important then its speed.

    have a read of paul graham (one of the people to pioneer e-comerce). There's a good lesson in that article (it turns into a bit of a LISP love letter, but the point is still valid).
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do you ever try to learn too much?
    By Stonehambey in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 06-17-2008, 07:55 AM
  2. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  3. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  4. Novice trying to learn C++
    By dead in forum C++ Programming
    Replies: 10
    Last Post: 12-01-2003, 08:25 PM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 01:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21