Ebook C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu
If you ally require such a referred C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu book that will offer you worth, obtain the most effective seller from us currently from lots of prominent authors. If you wish to enjoyable publications, numerous novels, tale, jokes, and more fictions compilations are likewise launched, from best seller to one of the most recent launched. You could not be confused to delight in all book collections C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu that we will certainly offer. It is not concerning the rates. It has to do with what you require now. This C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu, as one of the very best sellers here will certainly be one of the appropriate selections to review.
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu
Ebook C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu
C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu As a matter of fact, book is truly a home window to the globe. Also lots of people could not like checking out publications; the books will still provide the precise details regarding reality, fiction, encounter, experience, politic, religious beliefs, as well as much more. We are right here a site that gives collections of books greater than guide shop. Why? We provide you lots of numbers of link to obtain guide C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu On is as you require this C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu You can discover this book quickly right here.
If you get the published book C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu in on the internet book establishment, you could also locate the very same problem. So, you have to move store to store C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu and look for the offered there. However, it will certainly not happen right here. The book C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu that we will offer here is the soft data concept. This is just what make you could conveniently find as well as get this C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu by reading this site. Our company offer you C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu the very best product, always and always.
Never ever doubt with our deal, since we will constantly offer exactly what you need. As like this updated book C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu, you could not discover in the other location. Yet below, it's quite simple. Simply click and download, you could have the C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu When convenience will ease your life, why should take the difficult one? You could acquire the soft file of guide C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu right here and also be participant of us. Besides this book C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu, you can additionally discover hundreds listings of guides from many resources, compilations, publishers, as well as authors in around the world.
By clicking the link that our company offer, you could take the book C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu perfectly. Connect to net, download, and save to your tool. What else to ask? Checking out can be so very easy when you have the soft file of this C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu in your gadget. You could likewise copy the data C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu to your workplace computer system or in the house or even in your laptop. Merely discuss this good news to others. Suggest them to see this page and obtain their looked for books C++ Coding Standards: 101 Rules, Guidelines, And Best Practices, By Herb Sutter, Andrei Alexandrescu.
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.
- Sales Rank: #343928 in Books
- Published on: 2004-11-04
- Original language: English
- Number of items: 1
- Dimensions: 9.10" h x .60" w x 7.30" l, 1.06 pounds
- Binding: Paperback
- 240 pages
From the Back Cover
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.
About the Author
Herb Sutter is the author of three highly acclaimed books, Exceptional C++ Style, Exceptional C++, and More Exceptional C++ (Addison-Wesley). He chairs the ISO C++ standards committee, and is contributing editor and columnist for C/C++ Users Journal. As a software architect for Microsoft, Sutter leads the design of C++ language extensions for .NET programming.
Andrei Alexandrescu is the author of the award-winning book Modern C++ Design (Addison-Wesley, 2001) and is a columnist for C/C++ Users Journal.
Excerpt. © Reprinted by permission. All rights reserved.
Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list-not the size of his vocabulary.
--Alan Perlis emphasis ours
The best thing about standards is that there are so many to choose from.
--Variously attributed
We want to provide this book as a basis for your team's coding standards for two principal reasons:
A coding standard should reflect the community's best tried-and-true experience: It should contain proven idioms based on experience and solid understanding of the language. In particular, a coding standard should be based firmly on the extensive and rich software development literature, bringing together rules, guidelines, and best practices that would otherwise be left scattered throughout many sources.
Nature abhors a vacuum: If you don't consciously set out reasonable rules, usually someone else will try to push their own set of pet rules instead. A coding standard made that way usually has all of the least desirable properties of a coding standard; for example, many such standards try to enforce a minimalistic C style use of C++.
Many bad coding standards have been set by people who don't understand the language well, don't understand software development well, or try to legislate too much. A bad coding standard quickly loses credibility and at best even its valid guidelines are liable to be ignored by disenchanted programmers who dislike or disagree with its poorer guidelines. That's "at best"--at worst, a bad standard might actually be enforced.
How to Use This BookThink. Do follow good guidelines conscientiously; but don't follow them blindly. In this book's Items, note the Exceptions clarifying the less common situations where the guidance may not apply. No set of guidelines, however good (and we think these ones are), should try to be a substitute for thinking.
Each development team is responsible for setting its own standards, and for setting them responsibly. That includes your team. If you are a team lead, involve your team members in setting the team's standards; people are more likely to follow standards they view as their own than they are to follow a bunch of rules they feel are being thrust upon them.
This book is designed to be used as a basis for, and to be included by reference in, your team's coding standards. It is not intended to be the Last Word in coding standards, because your team will have additional guidelines appropriate to your particular group or task, and you should feel free to add those to these Items. But we hope that this book will save you some of the work of (re)developing your own, by documenting and referencing widely-accepted and authoritative practices that apply nearly universally (with Exceptions as noted), and so help increase the quality and consistency of the coding standards you use.
Have your team read these guidelines with their rationales (i.e., the whole book, and selected Items' References to other books and papers as needed), and decide if there are any that your team simply can't live with (e.g., because of some situation unique to your project). Then commit to the rest. Once adopted, the team's coding standards should not be violated except after consulting with the whole team.
Finally, periodically review your guidelines as a team to include practical experience and feedback from real use.
Coding Standards and YouGood coding standards can offer many interrelated advantages:
- Improved code quality: Encouraging developers to do the right things in a consistent way directly works to improve software quality and maintainability.
- Improved development speed: Developers don't need to always make decisions starting from first principles.
- Better teamwork: They help reduce needless debates on inconsequential issues and make it easier for teammates to read and maintain each other's code.
- Uniformity in the right dimension: This frees developers to be creative in directions that matter.
Under stress and time pressure, people do what they've been trained to do. They fall back on habit. That's why ER units in hospitals employ experienced, trained personnel; even knowledgeable beginners would panic.
As software developers, we routinely face enormous pressure to deliver tomorrow's software yesterday. Under schedule pressure, we do what we are trained to do and are used to doing. Sloppy programmers who in normal times don't know good practices of software engineering (or aren't used to applying them) will write even sloppier and buggier code when pressure is on. Conversely, programmers who form good habits and practice them regularly will keep themselves organized and deliver quality code, fast.
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. Much of this body of knowledge has only been available in bits and pieces spread throughout books, or as word-of-mouth wisdom. 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. The same is true of any language, process, or methodology. A good set of coding standards fosters good habits and discipline that transcend mere rules. That foundation, once acquired, opens the door to higher levels. There's no shortcut; you have to develop vocabulary and grammar before writing poetry. We just hope to make that easier.
We address this book to C++ programmers of all levels:
If you are an apprentice programmer, we hope you will find the rules and their rationale helpful in understanding what styles and idioms C++ supports most naturally. We provide a concise rationale and discussion for each rule and guideline to encourage you to rely on understanding, not just rote memorization.
For the intermediate or advanced programmer, we have worked hard to provide a detailed list of precise references for each rule. This way, you can do further research into the rule's roots in C++'s type system, grammar, and object model. At any rate, it is very likely that you work in a team on a complex project. Here is where coding standards really pay off-you can use them to bring the team to a common level and provide a basis for code reviews.
About This BookWe have set out the following design goals for this book:
Short is better than long: Huge coding standards tend to be ignored; short ones get read and used. Long Items tend to be skimmed; short ones get read and used.
Each Item must be noncontroversial: This book exists to document widely agreed upon standards, not to invent them. If a guideline is not appropriate in all cases, it will be presented that way (e.g., "Consider X..." instead of "Do X...") and we will note commonly accepted exceptions.
Each Item must be authoritative: The guidelines in this book are backed up by references to existing published works. This book is intended to also provide an index into the C++ literature.
Each Item must need saying: We chose not to define new guidelines for things that you'll do anyway, that are already enforced or detected by the compiler, or that are already covered under other Items.
Example: "Don't return a pointer/reference to an automatic variable" is a good guideline, but we chose not to include it in this book because all of the compilers we tried already emit a warning for this, and so the issue is already covered under the broader Item 1, "Compile cleanly at high warning levels."
Example: "Use an editor (or compiler, or debugger)" is a good guideline, but of course you'll use those tools anyway without being told; instead, we spend two of our first four Items on "Use an automated build system" and "Use a version control system."
Example: "Don't abuse goto" is a great Item, but in our experience programmers universally know this, and it doesn't need saying any more.
Each Item is laid out as follows:
- Item title: The simplest meaningful sound bite we could come up with as a mnemonic for the rule.
- Summary: The most essential points, briefly stated.
- Discussion: An extended explanation of the guideline. This often includes brief rationale, but remember that the bulk of the rationale is intentionally left in the References.
- Examples (if applicable): Examples that demonstrate a rule or make it memorable.
- Exceptions (if applicable): Any (and usually rare) cases when a rule doesn't apply. But beware the trap of being too quick to think: "Oh, I'm special; this doesn't apply in my situation"-that rationalization is common, and commonly wrong.
- References: See these parts of the C++ literature for the full details and analysis.
In each section, we chose to nominate a "most valuable Item." Often, it's the first Item in a section, because we tried to put important Items up front in each part; but other times an important Item couldn't be put up front, for flow or readability reasons, and we felt the need to call it out for special attention in this way.
Most helpful customer reviews
42 of 42 people found the following review helpful.
Finally, a coding standard that programmers can accept.
By Amazon Customer
For many programmers, the term "coding standard" generates a gut-level response. We all know that someone is going to be pushing the "one, true brace style" or the "proper" way to indent code. This subject is probably the best way to generate instantaneous rebellion among a group of programmers.
The first "standard" in "C++ Coding Standards" wipes all of that away with their first rule:
0. Don't sweat the small stuff. (Or: know what not to standardize.)
In one quick entry, Sutter and Alexandrescu sweep all of the indent-level, brace-placement, CamelCase/underscores holy wars into a single category and give a useful bit of advice: Be consistent. The authors point out that any professional programmer should be able to read and write in any of these styles. The differences are basically a matter of personal preference.
From this point on, we get to see a coding standard that is focused on "best practices" and proven techniques for improving code.
This is the only coding standard I've ever seen that would really help a group of programmers improve their work.
0 of 0 people found the following review helpful.
A must have for C++ professional (from novice to expert)
By Stefano Buora
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.
48 of 52 people found the following review helpful.
Higher level than Effective C++
By Jack D. Herrington
I love both this book and Effective C++ for different reasons. The Effective C++ series is mainly very low level hints that help you avoid the pitfalls that C++ has in store for you. This book, while showing a lot of code, gives a higher level perspective of the areas it covers (e.g. templates, STL, class design, namespaces, etc.). That perspective grounds you in an understanding of the topic, then binds that to some real world code examples. Both approaches are very valuable. I would recommend getting both books. You can't live without the practical advice of Effective C++ or the architectural material in C++ Coding Standards.
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu PDF
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu EPub
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu Doc
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu iBooks
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu rtf
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu Mobipocket
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices, by Herb Sutter, Andrei Alexandrescu Kindle
Tidak ada komentar:
Posting Komentar