Who was Grace Hopper, and did she find the first computer bug?
Grace Hopper (1906–1992) was a mathematician and US Navy officer who did more than almost anyone to make programming something other than writing machine instructions by hand. The bug story is true in its details and false in its usual implication.
Her career. A PhD mathematician from Yale, she joined the Navy Reserve during the Second World War and was assigned to the Harvard Mark I — one of the first large-scale computers — where she was among its earliest programmers and wrote a substantial manual for it.
Her genuinely major contribution is the idea that a computer could translate human-readable instructions into machine code. In 1952 she produced the A-0 system, one of the first compilers, at a time when the prevailing view was that computers could only do arithmetic and that the idea was not worth pursuing. She had to argue the point for years.
She went on to develop FLOW-MATIC, the first programming language using English-like statements, which directly influenced COBOL — a language she is closely associated with, and which ran, and in places still runs, an enormous share of the world's business and banking systems. She was not COBOL's sole author, but she was its most effective advocate and a key figure behind its design.
She also pushed hard for machine independence — the then-radical idea that a program should run on more than one manufacturer's hardware.
She retired from the Navy as a rear admiral, having been recalled from retirement twice.
The bug. In 1947, operators working on the Harvard Mark II found a moth caught in a relay, removed it, and taped it into the logbook with the note that it was the "first actual case of bug being found". The logbook and moth survive.
But "bug" already meant a technical fault — the usage predates this by decades and appears in Edison's correspondence. The joke in the logbook only works because the term was familiar, which is precisely what people miss when they cite it as the origin.