A Comparison of Defensive Development and Design by Contract

  • Authors:
  • Donald G. Firesmith

  • Affiliations:
  • -

  • Venue:
  • TOOLS '99 Proceedings of the Technology of Object-Oriented Languages and Systems
  • Year:
  • 1999

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper briefly defines and discusses assertions and their uses before summarizing Design by Contract and Defensive Development. This provides a foundation for the following comparison of their similarities as well as their respective strengths and weaknesses. The paper concludes by arguing that Defensive Development is superior to Design by Contract, largely because of how they differ in assigning the responsibility for checking and ensuring preconditions.