American en gineers have been call ing small flaws in ma -
chines “bugs” for over a century.
Thomas Edison talked about
bugs in electrical cir cuits in the 1870s. When the first comput-
ers were built dur ing the early 1940s, peo ple working on them
found bugs in both the hardware of the ma chines and in the
programs that ran them.
In 1947, en gineers working on the
Mark II com puter at Har-
vard University found a moth stuck in one of the components.
They taped the in sect in their log book and labeled it “first ac -
tual case of bug be ing found.” The words “bug” and “debug”
soon be came a standard part of the lan guage of com puter pro-
gram mers. (Smith so nian Na tional Mu seum of Amer i can His-
tory, n.d.)
The pro cess of fixing bugs is called debugging. If you follow the ex amples
in
this book ex actly, de bugging is not dif ficult; you simply compare what you
typed to the ex ample and find the dif ference. Once you get a lit tle more adven-
turous and try to make a few small
changes to the scripts, you will need some
ideas to help you solve problems.
Do'stlaringiz bilan baham: