![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 5
Rep Power: 0
![]() |
Best way to Learn the STL
I've been programming C++ on and off for about a year now. I know bits and pieces of the STL, but really I never learned it and I want to. Obviously I don't expect to learn every single bit and piece, but I'd really like to get more comfortable with it.
For people who feel they know it better, what do you think is the best way to learn it? Doing a small project is obviously the best way, but I'm not sure what type of project would expose me to it in the best and broadest way. If there is a book that would be great as well. I have the O'reilly C++ in a nutshell that I've only skimmed. It looks like it covers the STL, but more like a reference manual(not the best for learning). I also have Stroustrup's book, which I've been meaning to read, but I'm not sure if that deals with the STL. So, how did most of you learn the STL? |
|
|
|
|
|
#2 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
If you aren't then you might wish to find out who he is.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#3 |
|
Programmer
|
which edition of Stroustrup ?
I have the third edition open in front of me, in the STL chapter. the first one definately doesn't and I don't think the second one does. oh, and don't try learning c++ from the third edition; I tried and failed miserably - it's just too much. (great for learning parts... or as reference though) |
|
|
|
|
|
#4 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
>what do you think is the best way to learn it?
Write code using it. This could be something as small as test programs meant to exercise whatever part of the library you're using, or real projects that you or someone else intends to use. >If there is a book that would be great as well. http://www.josuttis.com/libbook/index.html
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: May 2006
Posts: 5
Rep Power: 0
![]() |
Quote:
What I ment by if he delt with the STL, is how well he deals with it. Just because he wrote the language doesn't mean he's a great teacher. A reference book doesn't do me much good when I'm trying to learn to see the STL as an alternative to other methods. I just heard about Accelerated C++, so I think I'll give that a try. |
|
|
|
|
|
|
#6 | |
|
Professional Programmer
|
I would have to say knowing every little thing about a specific language would make you a pretty good teacher(of that language).
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
|
|
|
|
|
|
#7 | |
|
Newbie
Join Date: May 2006
Posts: 5
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#8 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 4
![]() |
>I would have to say knowing every little thing about a specific language would
>make you a pretty good teacher(of that language). No, it would probably make you a pretty crappy teacher unless you also know how to teach people something. Possession of knowledge doesn't necessarily constitute an ability to pass that knowledge to others.
__________________
Even if the voices aren't real, they have some pretty good ideas. |
|
|
|
|
|
#9 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#10 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
She's right. One of my physics teachers is a genius, but she's a shit teacher.
I'd also recommend Accelerated C++ if you find your current book hard to learn from. I've heard Stroustrup's book is good though. He was the editor for Accelerated C++, just so you know. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|