How to write good C++ code

A

Andrea Mondelli

I'm looking for a book that teaches how to write GOOD code.
Any suggestions?

A.
 
V

Victor Bazarov

I'm looking for a book that teaches how to write GOOD code.
Any suggestions?

Take a look at www.accu.org, the book review section. Any "recommended"
or "highly recommended" C++ books are worth looking at. I personally
don't know of any specific books that "teach how to write good code", so
my approach has always been to try my best and have it reviewed by peers
and tried by heavy use.

Happy coding!

V
 
S

Stefan Ram

Andrea Mondelli said:
I'm looking for a book that teaches how to write GOOD code.

You can read (in this order and doing the exercise):
Programming -- Principles and Practice Using C++ (only if
you have not programmed before) or Accelerated C++ (if you
have programmed before), The C++ Programming Language,
Effective C++, Exceptional C++ (Parts 1 and 2), and Modern
C++ programming.
 
V

Victor Bazarov

You can read (in this order and doing the exercise):
Programming -- Principles and Practice Using C++ (only if
you have not programmed before) or Accelerated C++ (if you
have programmed before), The C++ Programming Language,
Effective C++, Exceptional C++ (Parts 1 and 2), and Modern
C++ programming.

The last title should probably be "Modern C++ Design".

V
 
B

Balog Pal

I'm looking for a book that teaches how to write GOOD code.
Any suggestions?

I suggest to obtain a mentor, one who can actually write good C++ or
whatever code, then he will set you on books and review your progress.

We have many books that help those who already can write at some level
good code to be better and more consistent. But the first milestone is
way more tricky, and I doubt books can realistically cover it.
 
P

Puppet_Sock

I'm looking for a book that teaches how to write GOOD code.
Any suggestions?

In the category of "transferable skills" I would suggest
_Code Complete_ by Steve McConnell. Many good suggestions
that are less specific to a particular coding language.
These will mostly be useful in C++ or any coding language.
Socks
 
A

Anand Hariharan

I'm looking for a book that teaches how to write GOOD code.
Any suggestions?

A.

Couple of suggestions:

1. Sutter and Alexandrescu, C++ Coding standards
2. Dewhurst, C++ Gotchas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top