4 of 4 people found the following review helpful
Readable, Deep and Useful,
This review is from: C++ for Game Programmers (Charles River Media Game Development) (Paperback)
I would recommend this book for any working programmer who's focussed on writing fast and stable code, and that should be just about every coder going.
I'm a self-taught, practical C++ programmer, I don't work on games, but I do need to write tight, quick code, and this is where this book scores highly.
The book tackles various C++ aspects, always focussing on performance, and how to go about getting the most out of limited resources. It details the mechanics of what goes on when you use class hierachies, and the 'cost' of various programming approaches, and then goes on to recommend ways of improving performance and avoiding common pitfalls.
I particularly got a lot out of the memory allocation chapter. I had never before thought about the cost of allocating new memory dynamically, or about heap fragmentation, that stuff had always been too advanced, and I assumed that it did not matter too much. The clear and readable explanations spelt out the subtle problems you can get hit by, and how to avoid them. There is source code for a memory manager that helps you incorporate pre-allocated memory pools, a heap walker, and leak tracker code. As I write a ton of stuff with strings, I was exposed to risks I did not even know about.
This is a great book for going from intermediate to advanced, not in terms of C++ elegance, but in terms of practical application. It does not fry your mind with dense, esoteric stuff, it is very down to earth. I found Scott Meyers books impressive, but very much focussed on the C++ language, and reading a Meyers book cover to cover is hard work. This book differs in that it's more about ways to deal with the hidden overhead of C++, and the conversational style of the text was easy and didn't leave me boggling.
My coding has changed radically thanks to this book, I can't recommend it highly enough.
Sort: Oldest first | Newest first
Showing 1-1 of 1 posts in this discussion
Initial post: 11 Jul 2010 21:13:54 BDT
Lu I says:
Can you recommend a great C++ book for those starting out? (ie, beginners). This sounds good for taking things further and I'll remember that, but I'm not quite sure what book to go for to get me started.
‹ Previous 1 Next ›