🐛 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.”
| Famous moth | September 9, 1947 |
|---|---|
| Computer | Mark II, Harvard University |
| Logbook today | Smithsonian, Washington, D.C. |
| Fixing bugs | Debugging |
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
What is a computer bug?
What was found inside a Harvard computer in 1947?
How are bugs fixed in programs that are already out?