Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Safe C++: How to avoid common mistakes

Buy
Astute readers such as yourself may be wondering whether the title of this book, Safe C++, presumes that the C++ programming language is somehow unsafe. Good catch! That is indeed the presumption. The C++ language allows programmers to make all kinds of mistakes, such as accessing memory beyond the bounds of an allocated array, or reading memory that was never initialized, or allocating memory and forgetting to deallocate it. In short, there are a great many ways to shoot yourself in the foot while programming in C++, and everything will proceed happily along until the program abruptly crashes, or produces an unreasonable result, or does something that in computer literature is referred to as “unpredictable behavior.” So yes, in this sense, the C++ language is inherently unsafe.

This book discusses some of the most common mistakes made by us, the programmers, in C++ code, and offers recipes for avoiding them. The C++ community has developed many good programming practices over the years. In writing this book I have collected a number of these, slightly modified some, and added a few, and I hope that this collection of rules formulated as one bug-hunting strategy is larger than the sum of its parts.

The undeniable truth is that any program significantly more complex than “Hello, World” will contain some number of errors, also affectionately called “bugs.” The Great Question of Programming is how we can reduce the number of bugs without slowing the process of programming to a halt. To start with, we need to answer the following question: just who is supposed to catch these bugs?
(HTML tags aren't allowed.)

Content Strategy for the Web, 2nd Edition
Content Strategy for the Web, 2nd Edition

 

At Facebook, employees are empowered to be bold in the name of innovation. “Move Fast and Break Things,” “What Would You Do If You Weren’t Afraid?” and “Done Is Better Than Perfect” are a few of the mottos pasted on the walls at Facebook...
Microsoft  Visual Basic  Design Patterns (Microsoft Professional Series)
Microsoft Visual Basic Design Patterns (Microsoft Professional Series)
Microsoft  Visual Basic  Design Patterns focuses on how to capitalize on the powerful object-oriented capabilities of Visual Basic. Specifically, the book introduces and explains how to employ a set of reusable software design patterns available within Visual Basic. Design patterns take objects to the next level, encouraging both reuse...
Sun Certified Solaris(tm) 9 System and Network Administrator All-in-One Exam Guide
Sun Certified Solaris(tm) 9 System and Network Administrator All-in-One Exam Guide

Prepare to pass the Solaris 9 System and Network Administrator certification exams

Get complete coverage of the material contained on all three exams required for the Solaris 9 System and Network Administrator certifications inside this single, comprehensive volume. Written by best-selling Solaris expert Paul Watters, this...


Multimedia Security Handbook
Multimedia Security Handbook
Intellectual property owners who exploit new ways of reproducing, distributing, and marketing their creations digitally must also protect them from piracy. The Multimedia Security Handbook addresses issues related to protecting digital media. It begins by introducing security fundamentals and discussing the vulnerabilities of individual protection...
Algebra and Trigonometry, 3rd Edition
Algebra and Trigonometry, 3rd Edition

This best selling author team explains concepts simply and clearly, without glossing over difficult points. Problem solving and mathematical modeling are introduced early and reinforced throughout, providing students with a solid foundation in the principles of mathematical thinking. Comprehensive and evenly paced, the book provides complete...

The Handbook of Task Analysis for Human-Computer Interaction
The Handbook of Task Analysis for Human-Computer Interaction
The most widely cited reference on task analysis has been Task-Analysis for Human-
Computer Interaction, edited by Dan Diaper, who must take the main blame for this new
Handbook of Task Analysis for Human-Computer Interaction, as his motive was in part to
stem the trickle of requests from around the world for chapters from the
...
©2019 LearnIT (support@pdfchm.net) - Privacy Policy