Safe C++: How to avoid common mistakes

2,91 durchschnittliche Bewertung
( 11 Bewertungen bei GoodReads )
9781449320935: Safe C++: How to avoid common mistakes
Vom Verlag:

The C++ programming language allows programmer to make all kinds of mistakes such as access memory beyond the bounds of an allocated array, or read memory which was never initialized, or allocate memory and forget to de-allocate it, e.g. there are great many ways to "shoot yourself in a foot" while programming in C++, and the C++ language will not catch you by the hand and instead will proceed happily until it will either crash or produce an unreasonable result or do something which is in computer literature called by a vague but scary term "an unpredictable behavior". So, in this sense, the C++ is unsafe. This book contains discussion of some of the most typical mistakes made by us, programmers, in C++ code and also some recipes how to avoid each of these mistakes. The undeniable truth is that any program significantly more complex than "Hello, World" would contain some number of errors, also affectionately called "bugs", which are put in there by the Programmer. The Great Question of Programming is how do we make the number of these bugs smaller (that is, without slowing the process of programming to a halt)?

Vom Verlag:

It’s easy to make lots of programming mistakes in C++—in fact, any program over a few hundred lines is likely to contain bugs. With this book, you’ll learn about many common coding errors that C++ programmers produce, along with rules and strategies you can use to avoid them.

Author Vladimir Kushnir shows you how to use his Safe C++ library, based in part on programming practices developed by the C++ community. You’ll not only find recipes for identifying errors during your program’s compilation, runtime, and testing phases, you’ll learn a comprehensive approach for making your C++ code safe and bug-free.

  • Get recipes for handling ten different error types, including memory leaks and uninitialized variables
  • Discover problems C++ inherited from C, like pointer arithmetic
  • Insert temporary and permanent sanity checks to catch errors at runtime
  • Apply bug prevention techniques, such as using separate classes for each data type
  • Pursue a testing strategy to hunt and fix one bug at a time—before your code goes into production

„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.

(Keine Angebote verfügbar)

Buch Finden:

Kaufgesuch aufgeben

Sie kennen Autor und Titel des Buches und finden es trotzdem nicht auf ZVAB? Dann geben Sie einen Suchauftrag auf und wir informieren Sie automatisch, sobald das Buch verfügbar ist!

Kaufgesuch aufgeben