A Bug That Was Literally… a Bug 🪲
When you hear the term “computer bug,” you probably think of software glitches or coding mistakes. But the very first “bug” in computing history wasn’t a metaphor—it was an actual insect.
On September 9, 1947, a team working on the Harvard Mark II electromechanical computer encountered a strange problem. The machine suddenly malfunctioned, producing incorrect results. Upon inspection, engineers discovered the cause: a moth had gotten trapped inside a relay, short-circuiting the system.

Logging the Incident
The engineers, including Grace Hopper, a pioneering computer scientist and U.S. Navy rear admiral, carefully removed the moth and taped it to their logbook. Next to it, they wrote:
“First actual case of bug being found.”
That page—moth included—is now preserved in the Smithsonian Institution’s National Museum of American History.
From Literal to Metaphorical
Although the word “bug” had been used before to describe mechanical defects (Thomas Edison even used it in the late 1800s), this event popularized the term in the context of computing. From then on, “debugging” became the standard phrase for finding and fixing errors in code.
Why It Still Matters Today
This quirky piece of history is more than just a fun fact. It’s a reminder that technology—no matter how advanced—can still fail in unexpected ways. Whether it’s a literal insect or a complex software vulnerability, debugging remains a critical part of technology development.
📌 Fun Fact: In modern software engineering, “bugs” are so common that entire teams are dedicated to hunting them down before a product is released. But thanks to Grace Hopper’s logbook, we’ll always remember that the first bug had wings.
Do you have any other questions? You may be interested in: From Archie to AI: The Evolution of Search Engines.