Jump to content
  • Advertisement
Sign in to follow this  
Hedos

Which C++ book should I get?

This topic is 4736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
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 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

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!