Bugs, errors and causes from an 1975 paper
Tags: bug, programming, beginners
Published: 2023-08-11 02:53:37

Discover the timeless relevance of a 1975 paper that sheds light on the causes of bugs and errors in system programs. 

In this article, we delve into Albert Endres' findings and explore how understanding the problem, effective communication, and domain knowledge play crucial roles in reducing errors. 

These principles remain highly relevant in current software development practices, where collaboration, clear communication, and comprehensive knowledge of the project's domain could be crucial for the success of the product. 

### About the paper

In 1975, [Albert Endres](https://ieeexplore.ieee.org/author/37087903653) published a paper called ["An Analysis of Errors and their Causes in System Programs"](https://ieeexplore.ieee.org/document/6312834).

In this paper, they analyze the errors detected in an operating system DOS/VS developed by IBM Laboratories in Germany.

The system was released in 1973. The paper analyses:

\- 500 modules, with an average of 360 lines per module and 480 lines of comments, resulting in 190K instructions and 60K comments.

\- A total of 740 problems were found, of which 432 were classified as program errors.

### Areas where errors where found

And here are some of the conclusions from this paper:


!["Almost half of all errors are found in the area of understanding the problem, problem communication and of the knowledge of possibilities and procedures for problem-solving"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qc1burs9pmgc4cyovn4t.png)


If we want to reduce the number of errors, then we should focus not only on better programming techniques but also on the problem definition, and understanding domain knowledge:


!["This fact is alarming or encouraging, depending on the expectations we had for a hundred percent automation of software production.  More specifically, only half of the mistakes can be avoided with better programming techniques (better programming languages, more comprehensive test tools). The other half must be attacked with better methods of problem definition (specification languages), a better understanding of basic system concepts (training, education), and by making applicable algorithms available"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0hoiojg532xmjbi4qp70.png)


And based on the paper, here are the categories of causes for errors or bugs:

1\. Technological

2\. Organisational

3\. Historic

4\. Group dynamic

5\. Individual

6\. Other



![An image showing the category of bugs and their description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jkm8u76cgihaxvplj6vl.png)


## Some conclusions:

1. When considering quality in a software product, we should consider all aspects, not only the tools and programming techniques we use.
    
2. When joining a product or team, it is important to understand the history of the product & team.
    
3. To become a better developer, one must learn more than coding/engineering techniques.
    
4. When we think about a possible future of using AI to augment programming, we should consider that if this study remains true it is not enough to reduce the number of errors. As half of them are not caused by code.

---

Enjoyed this article?

Join my [**Short Ruby News**](https://shortruby.com/) **newsletter** for weekly Ruby updates. For more Ruby **learning resources**, visit [**rubyandrails.info**](http://rubyandrails.info)