DEV Community

Discussion on: What was the worst bug you've ever written?

Collapse
 
coderdennis profile image
Dennis Palmer

In my first job back in the mid 90’s I was working on a program that would send a fax to every contact in our database. I started the execution so that it would run overnight. The next day we got a very angry call from the first contact in the list. Their entire roll of fax paper was on the floor. They had received our fax repeatedly until running out of paper.

Upon reviewing my code, I discovered that I had forgotten the line of code that moves to the next record in the while-not-at-end loop.