|
What
is A Bug ?
A bug in a computer program is simply a mistake or oversight
in that program, made by the person who wrote that program. A bug
will stop the computer program from working correctly under certain
circumstances. Bugs
can occur in any program and even in Windows itself. Sometimes a
bug will crash or hang the computer and other times the bug will
simply stop one operation from working correctly.
Bugs generally
occur when the programmer has not been able to predict every
combination of circumstances which can occur when the program is
being used. When an unpredicted combination of circumstances arises
in normal use, the program is unable to resolve the correct action
to take, and the bug manifests itself.
In addition
to this a bug can often occur when part of a program is changed
to make it perform extra additional tasks that were not predicted
when the program was first written. In this instance the original
part of the program may not be able to cope with the extra data
or tasks which have arisen out of the changes to the program because
these extras were not allowed when the program was first written.
Fixing
Bugs
Bugs are
fixed by examining the circumstances which caused the problem
and ensuring that the program can cope with these (and all other)
circumstances. Most bugs are easy to fix once the circumstances
are known.
A bug can be
a trivial mistake which can be easily avoided once it is
known about and documented, or a serious problem which prevents
a program from operating correctly.
|