At 3:45 p.m. on September 9, 1947, a computer programmer working on the Mark II at Harvard recorded in a logbook that the team had discovered the “first actual case of [a] bug being found.” But the programmer wasn’t referring to some poorly written lines of code — this was an actual bug. A moth, to be exact, which had flown into a room where the Mark II, one of the world’s first computers, was housed at the university. Attracted by the warmth of the 25-ton machine, the winged creature met its end in one of the many electromagnetic relay contacts. The team removed the moth with tweezers.
While this event is often mistakenly cited as the birth of the programming term “bug” to mean a flaw or imperfection, the word had actually been used in engineering circles for over half a century. But the 1947 moth misadventure was popularized by Grace Hopper, a mathematician and computer science pioneer who worked with the team as they “debugged” the Mark II. Early computers such as Harvard’s Mark series were responsible for other modern computer programming lingo, though: For example, a “patch” comes from the punched cards used in early machines that programmers physically “patched” with tape to fix errors. Today, the original Mark II logbook — with the original “bug” taped to it — is at the Smithsonian Museum of American History.
Media Release/Interesting Facts