In the beginning, there was the ENIAC Mark I. One day an operator happened to notice that the machine was malfunctioning and traced the problem to a moth that had flown into the machine and gotten beaten to death by the relay contacts.
She removed the moth, taped it in the log book, and made a notation: "Found a bug in the system." Thus, the first computer bug. [1]
My introduction to computer bugs came long after this. I wrote my first program at age 11. It was one assembly language instruction long. The program added together 2 + 2. The result was 2. The program was only one instruction long and it still had a bug in it.
This chapter contains a few "firsts": the first time I stayed up to 2:00 in the morning to locate a bug (Program 3), the first question on the first C programming test I administered (Program 2), and, of course, the first program in any programming book, "Hello World."
[1]Although people believe that this was the first use of the word bug in conjunction to computing machine it was not. The term bug had been around for a long time before that to describe all sorts of machinery faults. But why let the truth spoil a good story?