Thread: Just wondering ...

  1. #1
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717

    Just wondering ...

    So, I have as a task to "look through the STL found on http://www.sgi.com/tech/stl/table_of_contents.html" and then I started wondering, is there anyone here who's capable of memorizing the whole STL right as you read this?
    I just really hope it isn't a required thing to remember it as I forget worse than a goldfish
    Last edited by Akkernight; 08-28-2009 at 03:38 PM.
    Currently research OpenGL

  2. #2
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    I'm sure there's people capable of memorizing the entire thing, especially if they've had years of C++ experience. The majority won't remember it their first time, and will learn bits and pieces as they go along, only remembering it when they find it useful. I don't see how memorizing it is required, but it's fairly common sense if you remember more, have more knowledge, you'll probably produce better code and it should be easier. Reading an STL book should improve your chances of remembering the important concepts. It also serves as a good reference. Most programmers have references, so they don't have to remember everything, especially since most cannot.

    P.S. I don't know half of the STL details. It's just one of those questions you don't understand why it's a question at all. It would depend more on the requirements of whomever gave you this task. I can't see someone expecting much from a person told to look through it.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    As Dae mentions it really isn't a requirement. Neither it is possible for most programmers. We just keep our books, websites and other references at hand.

    As you gain experience some of this will eventually find a room in your head. Much won't, and that's just as well. You don't need to memorize anything. Understanding the language rules, its various constructs and how they fit together, and knowing all about good and bad code practices and when to apply each of them (yes, bad code practices may be needed sometimes) is a lot more important.

    Ironically, that's the hardest part of learning how to program. Your experience is measured exactly by this. And not by reciting the STL by heart.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #4
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    There is a lot of speed, quick, fast, optimized, blah blah blah reading technique books available which also improving your memorization.
    Quote Originally Posted by Mario F. View Post
    Understanding the language rules, its various constructs and how they fit together, and knowing all about good and bad code practices and when to apply each of them (yes, bad code practices may be needed sometimes) is a lot more important.

    Ironically, that's the hardest part of learning how to program.
    The hardest part in programming is deciding of what your program will be.
    Just GET it OFF out my mind!!

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    The important to know what is in the STL, and what are it's capabilities and conventions.

    It is not important to memorize the specific order of function parameters.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by audinue View Post
    The hardest part in programming is deciding of what your program will be.
    Is this going off on a tangent day?
    No one told me.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  7. #7
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    This GameInstitute.com book just told me to look through Table of Contents: the Standard Template Library since the book couldn't cover all of STL in one chapter or something
    Currently research OpenGL

  8. #8
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    If you're looking to learn to use the STL, I recommend The C++ standard library by Nicolai Josuttis. It's a thick textbook size book, but worthy for both reading and as a reference later.
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

  9. #9
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Memorizing the STL has little or no merit to me. You can have MSDN or your help file of choice open all the time on your desktop while programming so it's a snap to look up some obtuse STL function or some STL container that you don't often use.

    It's more important you understand the concept of what is behind the STL and how, when, and why you should use it.
    Last edited by VirtualAce; 08-29-2009 at 11:52 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wondering if this would be a dangerous use of globals.
    By suzakugaiden in forum C++ Programming
    Replies: 1
    Last Post: 01-26-2006, 10:51 PM
  2. switch/case - Just wondering
    By Snip in forum C Programming
    Replies: 3
    Last Post: 05-22-2005, 07:04 AM
  3. wondering about people here
    By moemen ahmed in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 07-08-2002, 09:33 PM
  4. Just wondering.
    By n3urai in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-20-2002, 08:11 PM

Tags for this Thread