Why We Call Computer Glitches 'Bugs': The Moth That Crashed Harvard's Mark II and Stuck Forever

Computer glitches drive us crazy. Your laptop freezes. An app crashes. You mutter, "Stupid bug." Ever wonder where that word came from? It started with a real insect.

In 1947, a team of engineers at Harvard University found a moth trapped inside one of the world's first computers. They taped it into their logbook. That simple act birthed the term "bug" we use today.

The Machine That Ate a Moth

The Harvard Mark II was a beast. Built in 1944, it filled an entire room. It weighed 5 tons. Punch cards fed it instructions.

On September 9, 1947, it malfunctioned. Relays clicked wrong. The team hunted for the problem. They found it: a two-inch moth jammed a relay.

"First actual case of bug being found," they wrote next to the taped moth.

That logbook page still exists. It's at the Smithsonian Institution. Proof that bugs were once literal.

Grace Hopper: The Woman Who Debugged the Bug

Grace Hopper led the charge. She was a Navy captain and math whiz. Born in 1906, she earned a PhD in math.

Hopper worked on the Mark II for the U.S. Navy. She loved sharing stories. The moth tale spread fast.

She didn't invent "bug." Engineers like Thomas Edison used it in the 1870s for faulty devices. But Hopper made it famous in computing.

  • Hopper taped the moth herself.
  • She called it "debugging" after removal.
  • Her team laughed, but the name stuck.

Hopper's Bigger Impact

Beyond the bug, Hopper invented the first compiler. It translated code to machine language. This paved the way for COBOL, a business coding language.

She pushed for English-like programming. No more cryptic symbols. Programmers owe her simplicity.

Before the Moth: Bugs Hiding in Plain Sight

Glitches plagued early machines. Vacuum tubes burned out. Wires frayed. Insects loved warm server rooms.

In the 1800s, telegraphers cursed "bugs" in lines. Edison noted "bugs" in his notebooks. The term floated around.

Computers just gave it wings. Or should we say, legs?

Proof from the Past

Early "Bug" Mentions Date Source
Thomas Edison's phonograph glitch 1878 Edison's notebook
Telegraph line faults 1890s Western Union logs
Harvard Mark II moth 1947 Relay #70 panel

This table shows "bug" wasn't new. The moth made it iconic.

How One Moth Changed Software Forever

Today, "bug" means any flaw. From tiny typos to massive crashes. Billions of bugs lurk in code.

Microsoft fixes 4,000 bugs weekly. Google squashes millions yearly. "Debugging" is a job skill.

The moth sparked a mindset. Engineers now test obsessively. Tools like debuggers trace issues fast.

Fun Bug Facts Around the World

  1. In Japan, bugs are "bagu" – borrowed straight from English.
  2. Apple's original Macintosh team found real ants in prototypes.
  3. NASA's Mars rover code had a "priority inversion bug" in 1997. It delayed launch.

Even space tech bows to the bug legacy.

Why the Bug Name Stuck (And Other Names That Didn't)

Alternatives existed. "Glitch" came from radio static. "Crash" implies total failure.

But "bug" won. It's short. Visual. Humorous. Who doesn't picture a creepy crawler?

Programmers bond over bug hunts. Forums fill with "bug bash" stories. It's tech folklore.

The Smithsonian Moth Today

Visit the National Museum of American History. See the logbook. Moth still pinned there.

It's yellowed. Faded. But powerful. A reminder: even giants fail from tiny flaws.

Bugs in Modern Life: Beyond Computers

The term escaped tech. Car mechanics say "engine bug." Recipes have "baking bugs."

Why? Humans love metaphors. Bugs are sneaky. Hard to spot. Perfect fit.

Next freeze-up, thank Grace Hopper. And curse that moth a little less.

Debug Your Own Tech

  • Restart first – clears memory bugs.
  • Update software – patches known bugs.
  • Check Task Manager – spot buggy apps.

Simple steps. Hopper would approve.

The Legacy: From Moth to AI

AI now hunts bugs. Tools like GitHub Copilot suggest fixes. But humans still rule debugging.

Quantum computers face "quantum bugs." The term endures.

Grace Hopper lived to 85. Died in 1992. Honored with a Navy destroyer named after her.

She proved one story changes everything. Your next "bug" hunt? Part of her world.

Share this tale. Next glitch, say, "Thanks, moth." Tech history hides in plain sight.