Gunnar Kudrjavets

Assessing the Relationship between Software Assertions and Code Quality

After almost a year of writing code, verifying the results, fixing various review comments, and doing a number of other things we finally published our paper about the relationship between assertions and code quality. Here's the summary:
The use of assertions in software development is thought to help produce quality software. Unfortunately, there is scant empirical evidence in commercial software systems for this argument to date. This paper presents an empirical case study of two commercial software components at Microsoft Corporation. The developers of these components systematically employed assertions, which allowed us to investigate the relationship between software assertions and code quality. We also compare the efficacy of assertions against that of popular bug finding techniques like source code static analysis tools. We observe from our case study that with an increase in the assertion density in a file there is a statistically significant decrease in fault density. Further, the usage of software assertions in these components found a large percentage of the faults in the bug database.
Any feedback from interested parties is welcome ;-)
Published Tuesday, June 13, 2006 9:08 PM by gunnarku
Anonymous comments are disabled

This Blog

Syndication

Tags

No tags have been created or used yet.

News

These postings are provided "AS IS" with no warranties, and confer no rights. Additionally, views expressed herein are my own and not those of my employer, Microsoft.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker