ThinkRoost
How Everyday Things Work

Computers and software · 5 min

Grace Hopper and the bug

Learn about the famous moth.

ReflectText size
Source reading

What the sources describe

Grace Hopper was a mathematician and US Navy officer who worked on early computers at Harvard University, including the Mark I and Mark II, in the 1940s. In September 1947, operators of the Harvard Mark II found a moth trapped in one of its relays, causing an error.

They taped the moth into the logbook with the note "First actual case of bug being found." The joke shows that engineers already used the word bug for technical problems; Thomas Edison used it in the 1870s. Hopper did not find the moth herself, but she often told the story, helping to popularise it. The logbook page is now in the Smithsonian's National Museum of American History.

Hopper's most important work was on making programming easier. In the early 1950s, she developed one of the first compilers, programs that translate instructions written by people into machine code computers can run. Many people at the time doubted computers could understand anything but numbers.

Her FLOW-MATIC language, which used English-like commands, influenced COBOL, a business programming language created in 1959 and still used in banking and government systems. Hopper became a rear admiral and was awarded the Presidential Medal of Freedom after her death.

Our interpretation

Connecting the ideas

In 1947, operators of the Harvard Mark II taped a moth into a logbook as the first actual case of bug being found, and Grace Hopper pioneered compilers.

The idea, in plain language

The big idea

Debugging is part of computing, and making code readable helps people use computers.

Use it in real life

Use it in real life

Write instructions for a task others can follow, such as a recipe or how to use a household appliance, using clear, simple words. Ask someone else to follow them, and note where they get confused, as a way of debugging your instructions.

Practice scenario (made up for this lesson)

Try it

Made-up example: Was bug a new word for technical problems in 1947?

A good answer: no, engineers already used it, including Thomas Edison in the 1870s, which is why the logbook note was a joke.

Quick quiz

1. Why was the 1947 logbook note a joke?

2. What is a compiler?

3. Which language did Hopper's work influence?

Finished reading?

Make this the next Doom video?

Vote for the lessons you'd most like to see turned into a short animated story.

How was this lesson?

No ratings yet — be the first.

Sign in to rate

Sources

Overview sources only. These references are not a completed primary-source fact-check.

Limitations

The term predates the moth.

Voice: Debby — Soft and soothing (tap to change)

Debby narration · part 1 of 15