» » C++ Coding Standards: 101 Rules, Guidelines, and Best Practices

Download C++ Coding Standards: 101 Rules, Guidelines, and Best Practices fb2

by Herb Sutter

Download C++ Coding Standards: 101 Rules, Guidelines, and Best Practices fb2
Author: Herb Sutter
ISBN: 0321113586
Language: English
Pages: 240 pages
Category: Programming
Publisher: Addison-Wesley Professional; 1 edition (November 4, 2004)
Rating: 4.3
Formats: doc lrf mbr rtf
FB2 size: 1232 kb | EPUB size: 1624 kb | DJVU size: 1633 kb

The coding standards introduced by this book are a collection of guidelines for writing high-quality C++ code. They are the distilled conclusions of a rich collective experience of the C++ community.

The coding standards introduced by this book are a collection of guidelines for writing high-quality C++ code. This book's intent is to collect that knowledge into a collection of rules that is terse, justified, and easy to understand and follow. Of course, one can write bad code even with the best coding standards.

C++ Coding Standards book. Goodreads helps you keep track of books you want to read. Start by marking C++ Coding Standards: 101 Rules, Guidelines, and Best Practices as Want to Read: Want to Read saving. Start by marking C++ Coding Standards: 101 Rules, Guidelines, and Best Practices as Want to Read: Want to Read savin. ant to Read.

Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. The authors cover virtually every facet of C++ programming: design and coding style, functions, operators, class design, inheritance, tion, copying, assignment, namespaces, modules, templates, genericity, exceptions, STL containers and algorithms, and more. Each standard is described concisely, with practical examples.

C++ Coding Standards by Herb Sutter and Andrei Alexandrescu, the book in Bjarne Stroustrup's C++ In Depth series, is. .This book delivers a valuable set of tried-and-true rules, guidelines, and best practices condensed into 101 concise one- and two-page Items.

C++ Coding Standards by Herb Sutter and Andrei Alexandrescu, the book in Bjarne Stroustrup's C++ In Depth series, is the authoritative reference for C++ software development teams. Whether you're working alone or with others, "C++ Coding Standards" will help you write cleaner code-and write it faster, with fewer hassles and less frustration. Download from free file storage.

From type definition to error handling, this book presents C++ best practices, including some that have . Whether you're working alone or with others, C++ Coding Standards will help you write cleaner code-and write it faster, with fewer hassles and less frustration.

From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and ues you may not know even if you've used C++ for years.

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, Herb Sutter and Andrei Alexandrescu. C++ In-Depth Box Set, Bjarne Stroustrup, Andrei Alexandrescu, Andrew Koenig, Barbara E. Moo, Stanley B. Lippman, and Herb Sutter

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, Herb Sutter and Andrei Alexandrescu. Lippman, and Herb Sutter. C++ Network Programming, Volume 1: Mastering Complexity with ACE and Patterns, Douglas C. Schmidt and Stephen D. Huston. C++ Network Programming, Volume 2: Systematic Reuse with ACE and Frameworks, Douglas C. C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond, David Abrahams and Aleksey Gurtovoy.

Herb Sutter and Andrei Alexandrescu are two of the world's foremost experts on software development in general and C++ in particular

Herb Sutter and Andrei Alexandrescu are two of the world's foremost experts on software development in general and C++ in particular. From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and ues you may not know even if you've used C++ for years. Along the way, you'll find answers to questions like. What's worth standardizing-and what isn't? What are the best ways to code for scalability? What are the elements of a rational error handling policy? How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies?

The coding standards introduced by this book are collection of guidelines for writing high-quality C++ code. They are distilled conclusions of a rich collective experience of the C++ community.

The coding standards introduced by this book are collection of guidelines for writing high-quality C++ code. This book's intent is to collect that knowledge into a collection of rules that is terse, justified, and easy to understand and follow". The key IMO starts here "This book's intenet.

Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Now, two of the world's most respected C++ experts distill the rich collective experience of the global C++ community into a set of coding standards that every developer and development team can understand and use as a basis for their own coding standards.

The authors cover virtually every facet of C++ programming: design and coding style, functions, operators, class design, inheritance, construction/destruction, copying, assignment, namespaces, modules, templates, genericity, exceptions, STL containers and algorithms, and more. Each standard is described concisely, with practical examples. From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and standardized-techniques you may not know even if you've used C++ for years. Along the way, you'll find answers to questions like

What's worth standardizing--and what isn't? What are the best ways to code for scalability? What are the elements of a rational error handling policy? How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies? When (and how) should you use static and dynamic polymorphism together? How do you practice "safe" overriding? When should you provide a no-fail swap? Why and how should you prevent exceptions from propagating across module boundaries? Why shouldn't you write namespace declarations or directives in a header file? Why should you use STL vector and string instead of arrays? How do you choose the right STL search or sort algorithm? What rules should you follow to ensure type-safe code?

Whether you're working alone or with others, C++ Coding Standards will help you write cleaner code--and write it faster, with fewer hassles and less frustration.

Comments (7)
Whatever
I've been a programmer since the earliest 90's, a professional software engineer since the 2000, and I would say that book contains many of the things you learn through your carrier, exposed in a very pleasant way.
101 rules, mostly described in one or 2 pages make it a good reading before fall asleep, a good reminder of best practices that should not be forgotten. In these times, where code reviews are part of our daily activity, being aligned and focused makes the job more easy.
For novice it's for sure a good set of best-practices to be learned. For intermediate-expert it provides a clean and well focused reasoning on every single rule, good for tutoring and nice nuts of knowledge.

A must have.
ARE
This is a must read for intermediate level and higher programmers. One of the book's strengths is its conciseness, which makes it easier to read without getting tied up in a lot of details. Because of this, the reader must take it upon himself/herself to check the readings in the supplied references (given for each rule) to completely understand the terms/idioms/ideas mentioned in the rule. This is not at all a weakness in the book, as it's purpose is to summarize the rule/guideline/practice, so they can put it to use, while leaving it up to the reader to refer to readings in the given references, to obtain a greater understanding of the ideas used in that rule. Most of the references can be found in the authors' previous works. The book also makes reference to standard time tested design patterns and ideas, so it would be good to have the text "Design Patterns" read, or close by.
Adaly
Covers coding standards for C++. Good to review for standards, guidelines, etc. that you want to implement in a specific project. Reflects choices, some that may fit your project and some that may not, so best used as a list of possible guidelines. So, choice and decision would be involved before using these... just blindly trying to use them all is not a good idea.
Honeirsil
Every programming language has a list of caveats and things you generally shouldn't do; although it is a bit outdated, many of the concepts are still very applicable to modern day C++ programming. However, this book really shines because it tells you the caveat and tells how what to look out for if you do decide to implement the design. So it doesn't take a "Don't ever do this" approach that many other design books take.
Ferne
Having enjoyed the Exceptional C++ books from Sutter, I ordered this book as soon as I got the usual email from Amazon.com whenever my favourite authors release a new book.

I must say I'm a bit dissapointed. Not because this isn't a good book, which it is, but because it's not as good as the previous ones. It seems like the author didn't expect the readers from learn that much from the Exceptional C++ series... so he explains things that seem obvious if you read those book.

One example: "Don't memcpy or memcmp non-PODs". Who would ever do such as thing other than a newbie?

Anyway, if you are wondering whether or not you should buy this book: If you completed the previous ones (and made all the exercises), just don't. Not because is not good, but because you don't need it.

If you are fluent in C++ but by no means a guru yet, go for the book. Make an effort to revise a bit of your own code following its advice. You are likely to be surprised with the results.
Brannylv
You know it's a book for geeks if there are 101 tips but the numbering starts at zero. That said, this book is outstanding. It was everything I had hoped the new edition of Meyers's "Effective C++". In particular, if you learned C++ a while ago but need to get up to speed with the latest developments in RAII, templates, etc., then I can't imagine a better book.

The only reason I did not give it 5 stars is that now and then the language is just too clunky. In particular, I had to read "...the name lookup for that operator function might reach out into the name space...Whether it reaches out into N..." a few times before I understood that "reaching out into" is meant to be a synonym for "reach into".

On the whole, however, the book is quite readable, and the code examples hit the sweet spot of demonstrating the topic of discussion without being overly long.
Haracetys
C++ Coding Standards is one of the best books about C++ that I have read, although I feel the title can be somewhat misleading. When the average programmer thinks "coding standard", their mind probably thinks of a crusty old document on their company wiki somewhere that tells them exactly how to lay out their curly brackets. This book is not that at all, but rather an awesome collection of C++ wisdom that should be useful to anyone using the language. Sutter and Alexandrescu write in a wonderful conversational style that reading this book is almost like sitting down for a chat with these two masters of C++ and software development.

I've learned a lot from this book, and it's a fantastic resource for C++ developers of all skill levels. Highly recommended!
Great book on the methodologies and best practices that every c++ programmer should read and follow. The best advice to follow: think! Don't just blindly apply any advice, but rather understand the problem domain and know the tools and best practices so that you can make informed design decisions.