The first computer bug was a literal bug.

To be exact, a moth.

On Sept 9, 1947, a moth got trapped in Harvard University's Mark II computer -- causing multiple errors.

This bug disrupted the electronics inside the Mark II.

Here's a photo of that first computer bug.

@atomicpoet Back in college one of our teachers told us about this incident, he had a very humorous style and made the occasional wife joke. Between the laughs we learned how the first computer bug had been fried in the vacuum tubes, causing the malfunction.

(turns out it wasn't a vacuum tube, it was a relay, so perhaps it got electrocuted instead of burnt?)

Anyway, the programmer wins: It was a hardware error 😁

@yuki2501 @atomicpoet It was not really the first computer bug, "bug" was already a well-known term for design errors in engineering slang. Grace Hopper's note said that it was the "first actual case of bug", implying the existence of previous imaginary bugs.