How much do people know?

This is a discussion on How much do people know? within the C++ Programming forums, part of the General Programming Boards category; Okay a little background about where i stand at the moment . I am relatively happy with functions,classes ,objects ,constructors ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    84

    How much do people know?

    Okay a little background about where i stand at the moment . I am relatively happy with functions,classes ,objects ,constructors ,pointers , references . I think you will find that is about day 9 in learn c++ in 21 days tutorial P).

    Eventually I would like to program games like pac man and frogger .(ask your parents)

    I want to get into the graphical side of things soon through windows API and i get the impression that templates, inheritance , operator overloading and virtual functions (the stuff i havent got to yet) seem pretty specialised and not that relevent to the above games .

    my question.

    1. What do you think is the percentage of c++ programmers (not newbies) that understand and implement inheritance , operator overloading and virtual functions to there programs. Do most programmers find the above techniques a luxary they can do without?

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I have a hard time believing that many professional C++ programmers forgo templates, inheritance, and operator overloading (forgoing inheritance implies not using virtual functions). Some problems are handled very nicely by each of the above... in those cases, not using them just because there is another way to solve a problem simply isn't logical.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    362
    Gweech,

    A good, and interesting, question. Speaking not from a professional, but rather an academic, standpoint, you would be doing yourself a huge disservice by skipping over a serious study of inheritance and operator overloading. (Of the four specific areas you mention, I would rank these #1 and #2.)

    Virtual functions (and "pure" virtual functions) would have to come in at a real close #3, in my opinion, with templates coming in at #4.

    In a seeming contradiction to what I've said, many "experts", including Bjarne Stroustrup, would agree that the quality of the C++ language that you use is more important than the quantity of the language that you know.

    Frankly speaking, a number of the questions that come to this Board drive my nose straight into a reference book of some description. I, for one, cannot 'memorize' every detail of every process involved in writing a program. But, that's me...

    Bottom line? Don't discount the voices of experience, but decide for yourself what you want to do with your knowledge. I'm betting that you'll keep the learning process going.

    -Skipper
    "When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    559

    Re: How much do people know?

    Originally posted by The Gweech
    Okay a little background about where i stand at the moment . I am relatively happy with functions,classes ,objects ,constructors ,pointers , references . I think you will find that is about day 9 in learn c++ in 21 days tutorial P).

    You're doing pretty good if you understand that after day nine of a tutorial book.
    Most of the stuff you mention is core to C++ and/or most OOP languages. Matbe I'm misunderstanding your question, maybe you want something more like VB.
    If you make a game like Frogger, won't you have to make a frog class, a car class, a street class, etc? They'll interact with WinAPI, but you still have to set up the game.
    Truth is a malleable commodity - Dick Cheney

  5. #5
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    You have to know how design a large program using
    inheritance and OOP. This is the hard part. Knowing what
    the language does is easy.

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I am a C++ programmer.

    I believe experience will take a programmer far. Learning a programming is very easy. I began learning ASM for the first time a week ago. I honestly feel ASM programming language is easy.

    In the end, programming is all about experience and desire to push the limit of your imagination and ability to solve problems.

    Learn any language, but do not forget to program.

    Kuphryn

  7. #7
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    I find asm easy too kurphyn. The only problem with it is that it requires so much code to do things, making it not practice to write in.

  8. #8
    Registered User
    Join Date
    Aug 2001
    Posts
    84
    There has been a few constructive posts there and i have built a loose conclusion.

    Inheritance, operator overloading, virtual functions seem to be used in large projects if not mainly proffessional projects.

    Maybe its just that i am finding it hard to look beyond tic tac toe games.

    I can see the relavence of the above programming techniques in games like Gran Tourismo and Age of Empires but not in Pac Man and Space Invaders . Is that about right?

    also as an after note you 2 guys finding asm easy no one likes a smarty pants

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    362
    While on a trip to Ireland, an American couple came upon an elderly gentleman along the road and asked him where they might find scenic places to take photographs.

    "It's hard to know what's in another man's eye", he replied.



    -Skipper
    "When the only tool you own is a hammer, every problem begins to resemble a nail." Abraham Maslow

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  2. Some people
    By Cgawd in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 11-27-2002, 04:15 PM
  3. I'm worried about some of the people wanting to program...
    By damonbrinkley in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 11-23-2002, 06:38 AM
  4. British people - Gibralter requests your support
    By stevey in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 05-17-2002, 10:10 PM
  5. Why do people thing viruses are cool?
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 11-12-2001, 03:55 AM

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