Sign in to follow this  
Hedos

Which C++ book should I get?

Recommended Posts

Hello, I've been programming in C++ since about 3 years now, I'm 17 and learned pretty much everything through 1 C++ book (a bit old, probably not excellent, "Programming in C++" by Deitel & Deitel), the internet, gdnet and playing with other source code. I feel pretty confident about my grasp on the language, except about the fact that often I take a look at other people's code and see how they did all those clever designs and how clear their code can be. (Well, I'm talking about good code here, I've also seen pretty horrible things too [smile]). So, I'm thinking that getting a book to read on my spare time would be quite good, not a book on how to program in C++, but a book on how to write better C++ code. Any suggestions? Thanks a lot.

Share this post


Link to post
Share on other sites
If you're insistent on getting another book, go for it.

But I find that good, clean code design comes from practice, and not something a book can usually force into you.

If you keep programming on your own, you'll learn what works and what doesn't work, and it'll reflect in the nice-ness of your code.

-Gauvir_Mucca

Share this post


Link to post
Share on other sites
Well, I agree, but reading a book won't make me practice any less, since I'm reading books when I can't program [smile]

And I'm sure that a good book can always bring something useful.. practicing is good, but up to a certain point, I feel like I'm always going in the same direction, which is why I think a book would be good to broaden my horizons.

Share this post


Link to post
Share on other sites
I just recently went through a similar process.

My conclusion was this book: Pattern-Oriented Software Architecture Volume 1: A System of Patterns

It's an excellent book, and offers a deep discussion of patterns. It assumes knowledge of programming languages in general, which you seem to have, and it's only purpose is to pass on expert design techniques to non-experts.

Share this post


Link to post
Share on other sites
If you've only learnt stuff about C++ from Deitel & Deitel's book you haven't really learnt C++, i recommend you have alook at some of my reading suggestions here. Pay close attention to the C++ In Depth series.

Share this post


Link to post
Share on other sites
Quote:
Original post by JohnBSmall
Quote:
Original post by Aph3x
For cleaner, better code I definitely recommend Code Complete 2nd Edn

I'd second that, although I can only speak for the first edition (anyone got any comments as to how much it's changed?)

John B

The 2nd edition uses mainly c++/java/visual basic for code examples vs first edition that used pascal.
I think that is the major difference but most of the same concepts that made the 1st edition excellent are still there and updated in most cases!
p.s. I also recommend c++ faq book if you don't already have it.

Share this post


Link to post
Share on other sites
Code Complete 2nd Edition

This book has helped me in so many ways I can't possibly list them all. If you don't have it, you're probably wasting your time programming.

Share this post


Link to post
Share on other sites
Quote:
Original post by nilkn
I just recently went through a similar process.

My conclusion was this book: Pattern-Oriented Software Architecture Volume 1: A System of Patterns

It's an excellent book, and offers a deep discussion of patterns. It assumes knowledge of programming languages in general, which you seem to have, and it's only purpose is to pass on expert design techniques to non-experts.


The book actually seems interesting, it's $98 CAD though. [oh]

Quote:
Original post by snk_kid
If you've only learnt stuff about C++ from Deitel & Deitel's book you haven't really learnt C++, i recommend you have alook at some of my reading suggestions here. Pay close attention to the C++ In Depth series.


I didn't say that [smile]
I first learned from the Deitel and Deitel book, then kept learned from the internet, gdnet and other source code.
I'm not looking to learn C++.

To all the others:
Well, it looks like Code Complete 2nd Edition is quite popular, I'll definitly take a look at it.

Share this post


Link to post
Share on other sites
Quote:
So, I'm thinking that getting a book to read on my spare time would be quite good, not a book on how to program in C++, but a book on how to write better C++ code.


Try "C++ Gotchas" and "C++ Coding Standards", for a start.

As mentioned earlier, the C++ In Depth series is highly instructive. And Addison-Wesley's programming books are of good quality in general.

Share this post


Link to post
Share on other sites
I don't know what's the general opinion of people on this particular one, but for the price, it can,t be matched: Thinking in C++ 2n edition. It's free.

http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

I read the first volume religiously and I check on the second one here and there when I want more in-depth explanations on stuff. It helped me understand OO programming a lot and made my code style radically different.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this