Look a little closer

The word "bug," widely used today to mean a programming error, originally just meant an insect in English. The most famous story behind how this term became attached to computing dates back to an incident at Harvard University in 1947.

At the time, a team led by computer scientist Grace Hopper was troubleshooting a malfunction in an early computer called the Harvard Mark II. While searching for the cause of the machine's misbehavior, they discovered an actual moth trapped between the relay contacts.

The team carefully removed the moth, taped it into their logbook, and noted it as "the first actual case of a bug being found." That logbook is reportedly still preserved today, including at the Smithsonian Institution in the United States.

In truth, the word "bug" had already been used to describe mechanical defects before this, with records showing Thomas Edison used the term earlier, so this incident isn't technically the origin of the word. Even so, the discovery of a real moth inside the Harvard Mark II remains an iconic story that played a major role in popularizing the term "debugging."