🐛 Computer Bug

4th Grade 💻 Computers & the Internet

A bug is a mistake in software or hardware that makes a computer do something wrong — crash, freeze or give a wrong answer. Finding and fixing bugs is called “debugging.”

Free · US Letter · no sign-up
Google Classroom Save to Pinterest Email me
Famous mothSeptember 9, 1947
ComputerMark II, Harvard University
Logbook todaySmithsonian, Washington, D.C.
Fixing bugsDebugging

Engineers called glitches “bugs” even before there were computers, but the famous story happened on September 9, 1947. The team running a computer called the Mark II at Harvard University found a moth stuck inside one of its switches. They taped it into their logbook and joked that it was the “first actual case of bug being found.” Grace Hopper, a programming pioneer on the team, loved telling the story. The logbook, moth and all, is kept at the Smithsonian in Washington, D.C.

Today most bugs are mistakes in the instructions: a programmer forgot a certain case, or two parts of a program don’t “understand” each other. In software with millions of lines, it’s almost impossible to have no bugs at all, so programs are tested a lot before they come out and fixed later with updates. Some bugs are also security holes — which is why installing updates matters so much.

For example

  • In Jackson’s video game, his character suddenly walked through a wall — a bug the game makers fixed in the next update.
  • When the calculator app on Harper’s tablet gave a wrong answer in one special case, she reported the bug to the app makers.

📌 Remember: Bug = a mistake in a program. Debugging = finding and fixing it. The 1947 moth is the famous story.

Quick quiz

  1. What is a computer bug?

  2. What was found inside a Harvard computer in 1947?

  3. How are bugs fixed in programs that are already out?

🔎 Ask Thinkapedia another question