Kids Can Program Too!


Sample from PART THREE:
Object Oriented Programming
The Nitty-Gritty Details
How To Tackle Errors
Debugging

Debugging
Most programs do not work the first time they are run. They frequently contain errors, known as bugs. Legend has it that the late Rear Admiral Grace Murray Hopper, who is considered the first programmer, coined this term in the late 1940’s when she traced an error in the Mark II computer to a moth trapped in a relay; since then, whenever a computer has a problem, it's referred to as a bug.

The process of getting rid of all the errors (bugs) in your program is called debugging. There are many technigues for debugging programs, and they depend on the type of program and the tools available. It is beyond the scope of this book to discuss this subject. As a matter of fact, it is considered more an art than a science – as you dive deeper and deeper into programming, you’ll develop your own style and technique for debugging. But remember this: all programs have bugs, but good programs have only a few and they are well-hidden…

Home   Overview   Outline   About the Author   Members   Download   Contact Us