We report on the results of an experiment involving software developers concerning the effects of formal specifications in software quality. The formal methods (FM) community has advocated for years that the inclusion of formal specifications in the software development process produces better software without incurring in significant delays---particularly when it comes to critical software. There exists a large number of industrial projects and case studies where FM deliver high quality software. Nevertheless, there is only a handful of reports on controlled experiments where the inclusion of FM is tested against the lack of them. Hence, we have conducted a controlled experiment involving 28 software developers divided into two groups who were required to implement the same program. The experimental group is given a formal specification whereas the Control group receives informal requirements. The statistical outcome of the experiment is null: the average quality of the programs delivered by both groups is statistically indistinguishable. However, when other development activities (e.g. testing) are considered the inclusion of FM would definitely yield better software.
翻译:暂无翻译