Thread: Made up my mind

  1. #1
    Registered User
    Join Date
    Dec 2011
    Location
    Eindhoven, Noord-Brabant, Netherlands
    Posts
    54

    Made up my mind

    Plz, don't b mad cuz i ask questions. I made up my mind. As soon as I can, I Will start learning c++ n not C. I said in my previous posts that I Would learn c, but i won't. I just got one last question:
    IF c++ is so much better, then y r ppl here obsessed with c?
    Last edited by Kuro Tensai; 12-06-2011 at 04:23 PM.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Kuro Tensai View Post
    Plz, don't b mad cuz i ask questions. I made up my mind. As soon as I can, I Will start learning c++ n not C. I said in my previous posts that I Would learn c, but i won't. I just got one last question:
    IF c++ is so much better, then y r ppl here obsessed with c?
    Because C++ is NOT better... just different.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Location
    Saratoga, California, USA
    Posts
    334
    If you don't know either, how can you possibly say one is better than the other? You must be listening to OOPs fanatics.

    Tater is right, they're completely different languages that share some syntax.

  4. #4
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by Kuro Tensai View Post
    As soon as I can...
    I really doubt that..

    Quote Originally Posted by Tclausex View Post
    You must be listening to OOPs fanatics.
    Why would OOP fanatics advertise C++, though ? ..I hear Java and C# are much more OOP geared..
    Last edited by manasij7479; 12-06-2011 at 04:50 PM.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    C++ is designed for object simulations and modeling, particularly of complex objects. It does that by adding layers of abstraction between you and the objects, that allows the object to be dealt with in a more intuitive way.

    The programming I like to do, does not involve such simulations or modeling, that can't be done with C, and the layers of abstraction in C++ can be very annoying to work with. It turns OOP (object oriented programming), into OOPS!

    As the creator of C++ has rightly stated when asked the difference between C and C++ (iirc):

    "In C, if you make a mistake, you can shoot yourself in the foot. In C++, you can blow your whole leg off."

    I believe for you, C++ is a wise choice.

  6. #6
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by Adak View Post
    ...and the layers of abstraction in C++ can be very annoying to work with. It turns OOP (object oriented programming), into OOPS!
    But almost none of the layers are compulsory.
    As the creator of C++ has rightly stated when asked the difference between C and C++ (iirc):
    "In C, if you make a mistake, you can shoot yourself in the foot. In C++, you can blow your whole leg off."
    .
    You missed an important phrase of the quote.... C++ makes it difficult to shoot yourself in the foot..

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by manasij7479 View Post
    C++ makes it difficult to shoot yourself in the foot..
    Given some of the total crap software out there, written in C++, you'll have to forgive me if I find that a little hard to believe.

  8. #8
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by CommonTater View Post
    Given some of the total crap software out there, written in C++, you'll have to forgive me if I find that a little hard to believe.
    That can be said for any language.
    Said software usually comes from programmers with the same attribute...
    An easy example is the OP here...
    Last edited by manasij7479; 12-06-2011 at 05:17 PM.

  9. #9
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Code:
    You missed an important phrase of the quote.... C++ makes it difficult to shoot yourself in the foot..
    You clearly are not familiar with me, and firearms.

    Seriously, when I was learning programming, C++ was not taught in the colleges yet - it was BASIC and C, and little else.

    I picked up a 1200 page book on C++, and studied most of it, but what struck with how simply what the author was trying to do, could be done in C and, on the C++ forums, how proud the C++ users were of their Rube Goldberg concoctions.

    A good programming language, to me, has to be very careful to keep complexity down to a minimum. Google new language "Go" is a good example of that, as is Ruby. They have several OOP features, (in fact Ruby is totally object oriented, even more than C++), but they've kept the complexity down.

    C++ seems like it took every feature but the kitchen sink, and put it into their language, and I believe I see even the drain washer sticking out of their toolbox.

    Maybe the biggest reason I stuck with C was, I'm quite shy - and in C++, friends can see your privates.

    < ROFL!>

  10. #10
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    My circumstances were different... when I started teaching myself programming 2 years ago, without any idea of OOP or anything else ...C++ seemed simpler to me after a brief tryst with a 'bad' C book...and as I got the general idea of programming logic from that book... C++ was(and still is) a breeze to learn for me.
    (I recently ventured towards C; the only unknown parts were the functions from <stdio.h> ...which offered nothing new for me...so I skipped that and started learning the posix functions instead...going into uncharted territory)

    Maybe the biggest reason I stuck with C was, I'm quite shy - and in C++, friends can see your privates.
    That goes against you too...; in C nothing is Private...even strangers have full access.

  11. #11
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    No privacy? Darn it!

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Adak
    I picked up a 1200 page book on C++, and studied most of it, but what struck with how simply what the author was trying to do, could be done in C and, on the C++ forums, how proud the C++ users were of their Rube Goldberg concoctions.
    Interestingly, what appeals to me about C++ is how simply what I want to do could be done in C++ instead of the equivalent Rube Goldberg concoctions in C

    Quote Originally Posted by manasij7479
    That goes against you too...; in C nothing is Private...even strangers have full access.
    Quote Originally Posted by Adak
    No privacy? Darn it!
    Unless you use opaque walls for the bathroom, or in the case of C++, hide behind pimples
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. insect mind
    By bobknows in forum General AI Programming
    Replies: 0
    Last Post: 02-20-2011, 03:01 PM
  2. Master mind
    By KaiZ023 in forum C Programming
    Replies: 3
    Last Post: 11-15-2010, 08:47 AM
  3. Just something on my mind
    By face_master in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-04-2002, 05:54 AM
  4. Where is my mind?
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-11-2002, 02:28 PM
  5. kid without his mind
    By iain in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-07-2002, 09:25 AM