This blog provides free online articles, ebooks and other resource on all Computer subjects. Various subjects are computer programming, computer graphics, computer networking, computational theories, Software engineering, Operating systems, Low Level programming, Computer Databases, Web developments, Compiler designing, Mainframe, SAP and ABAP, Graphic Ebooks, Artifical Intelligence, Computational Complexity, Scripting Languages, Assembly Languages, Computer Hardware and Maintenance and Computer Science General etc

Sunday, August 30, 2009

Writing Bug Free C Code



DESCRIPTION:
This book describes an alternate class methodology that provides complete data hiding and fault-tolerant run-time type checking of objects in C programs. With it, you will produce code that contains fewer bugs.

The class methodology helps to prevent bugs by making it easier to write C code. It does this by eliminating data structures (class declarations) from include files, which makes a project easier to understand (because there is not as much global information), which makes it easier to write C code, which helps to eliminate bugs. This class methodology, which uses private class declarations, is different from C++, which uses public class declarations.

The class methodology helps detect bugs by providing for both compile-time and run-time type checking of pointers (handles) to class objects. This run-time type checking catches a lot of bugs for you since invalid object handles (the cause of a lot of bugs) are automatically detected and reported.

We have all, at some point in our programming careers, spent several hours or days tracking down a particularly obscure bug in our code. Have you ever stepped back and wondered how following a different programming methodology might have prevented such a bug from occurring or have automatically detected it? Or have you tracked down the same type of bug several times?.....


VIEW/DOWNLOAD

No comments:

Post a Comment