Alexander Magoun and Paul Israel write in The Institute:
The use of “bug” to describe a flaw in the design or operation of a technical system dates back to Thomas Edison. He coined the phrase 140 years ago to describe technical problems during the process of innovation.
In 1873 Edison first confronted what he later called a bug when he began developing a quadruplex telegraph system to transmit and receive up to four separate telegrams on a single wire simultaneously. If he succeeded, his patron, Western Union Telegraph, would profit greatly from the increased message capacity. The 26-year-old engineer combined diplex and duplex circuits to send two messages in each direction using changes in current direction and strength. The problem in this approach was the false break in a message’s signal created by the changing polarity of the electromagnet in the diplex circuit when the current switched direction.
Edison worked around this by building what he later called a “bug trap” to isolate the unwanted break so that it wouldn’t interfere with the meaning of the Morse-coded signal. In August 1873 he filed a patent caveat, a form of patent application long since discontinued, which included this solution. A year later it became part of his application for U.S. Patent 480,567, which did not issue until 1892 due to patent-interference claims and court cases.
Edison is largely responsible for broadening the term’s application. The term itself appeared in his notebooks in 1876, first occurring that July in connection with his experiments on another approach to multiplexing signals over a wire. A later Edison biography made note of its frequent appearance in his notebooks. One entry, referring to incandescent lighting, read: “Awful lot of bugs still. Let [Dr. Otto] Moses try…to rid us of them.” …
The term was also spread by members of the electrical community. By the mid-1880s, after the quadruplex had become a common feature of telegraphy, engineers made frequent reference to Edison’s bug trap. And in 1888, William Maver, who later wrote the standard book on American telegraphy, noted that those familiar with the quadruplex were “aware that there is tendency in its operation termed, not very elegantly perhaps, the ‘bug.’ It was first so called by Edison.”
Author and engineer Thomas Sloane standardized Edison’s terms in his 1892 Standard Electrical Dictionary. He defined a bug as “[a]ny fault or trouble in the connections or working of electric apparatus,” with a bug trap being a “connection or arrangement for overcoming” said bug. Both terms, “[i]t is said […] originated in quadruplex telegraphy.” Funk and March’s 1895 Standard Dictionary of the English Language gave the term to the general public as “a fault in the working of a quadruplex system or in any electrical apparatus.”
By the early 1900s the idea of bugs and bug traps had gone well beyond Edison and his inventions. The International Correspondence Schools’ 1913 Elements of Telegraph Operating referred to the “bug-trap remedy” as one of several solutions for eliminating “slight disturbances” in a circuit. In 1921, Transactions of the American Institute of Electrical Engineers included a lengthy paper on railroad telegraphy and telephony in which bug traps were the subject of considerable discussion…
Grace Hopper did not invent the bug, but she did draw cartoons of gremlins that represented chads, or fragments, created when holes are made in her computer’s punched paper tapes. Like Edison, she was recalling the word’s older origins in the Welsh bwg, the Scottish bogill or bogle, the German bögge, and the Middle English bugge: the hobgoblins of pre-modern life, resurrected in the 19th century as, to paraphrase philosopher Gilbert Ryle, ghosts in the machine. Bugs are not only for today’s computers or software; for more than 100 years, they have represented the challenges of an imperfect world that engineers work to overcome.
Pingback: The computer software bug makes its first appearance | The Story of Information