Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 31st, 2006, 9:05 PM   #1
capiCrimm
Newbie
 
Join Date: May 2006
Posts: 5
Rep Power: 0 capiCrimm is on a distinguished road
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?
capiCrimm is offline   Reply With Quote
Old Jun 1st, 2006, 8:25 AM   #2
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by capiCrimm
I also have Stroustrup's book, which I've been meaning to read, but I'm not sure if that deals with the STL.
LOL, you're joking right? :eek:
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
nnxion is offline   Reply With Quote
Old Jun 1st, 2006, 8:37 AM   #3
free-zombie
Programmer
 
free-zombie's Avatar
 
Join Date: May 2006
Location: Bavaria, Germany
Posts: 50
Rep Power: 0 free-zombie is an unknown quantity at this point
Send a message via ICQ to free-zombie Send a message via MSN to free-zombie Send a message via Yahoo to free-zombie
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)
free-zombie is offline   Reply With Quote
Old Jun 1st, 2006, 8:37 AM   #4
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>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.
Narue is offline   Reply With Quote
Old Jun 1st, 2006, 6:22 PM   #5
capiCrimm
Newbie
 
Join Date: May 2006
Posts: 5
Rep Power: 0 capiCrimm is on a distinguished road
Quote:
which edition of Stroustrup ?
Third ed, and I know who he is. :p

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.
capiCrimm is offline   Reply With Quote
Old Jun 1st, 2006, 6:29 PM   #6
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
I would have to say knowing every little thing about a specific language would make you a pretty good teacher(of that language).
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
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!
jayme is offline   Reply With Quote
Old Jun 1st, 2006, 6:52 PM   #7
capiCrimm
Newbie
 
Join Date: May 2006
Posts: 5
Rep Power: 0 capiCrimm is on a distinguished road
Quote:
I would have to say knowing every little thing about a specific language would make you a pretty good teacher(of that language).
I think teaching is a skill beyond knowing something. I've met plenty of people who have an awsome grasp of a subject, but are horrible at explaining things at a low level. Not everyone is a great teacher, just like not everyone is a great writer.
capiCrimm is offline   Reply With Quote
Old Jun 1st, 2006, 7:43 PM   #8
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>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.
Narue is offline   Reply With Quote
Old Jun 2nd, 2006, 3:47 AM   #9
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by capiCrimm
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.
Hmm okay, I guess it depends on how much you already know or perhaps it just depends on the person learning. For me a reference book is often as good a teacher as alternative methods, and much quicker at that.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Jun 4th, 2006, 6:30 PM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC