Why Do Bugs Occur?

Bugs are caused for numerous reasons, but, in this sample project analysis, the main cause can be traced to the specification.

What you'll be surprised to find out is that most of them aren't caused by programming errors. Numerous studies have been performed on very small to extremely large projects and the results are always the same. The number one cause of software bugs is the specification.