• DocumentCode
    387649
  • Title

    Two controlled experiments concerning the usefulness of assertions as a means for programming

  • Author

    Müller, Matthias M. ; Typke, Rainer ; Hagner, Oliver

  • Author_Institution
    Fak. fur Inf., Karlsruhe Univ., Germany
  • fYear
    2002
  • fDate
    2002
  • Firstpage
    84
  • Lastpage
    92
  • Abstract
    Assertions, or more generally "programming by contract", have gained widespread acceptance in the computer science community as a means for correct program development. However the literature lacks an empirical evaluation of the benefits a programmer gains by using assertions in his software development. This paper reports two controlled experiments that close this gap. Both experiments compare "programming by contract" to the traditional programming style without assertions. The evaluation of the first experiment suggests that assertions decrease the programming effort for the extension of existing software, measured as time needed to finish the task, while the programming effort slightly increases during the development of new code. The second experiment shows that the programming effort tended to be larger with assertions than without. In addition, it shows that the reliability of the written programs slightly increases with the usage of assertions compared to the programs written without assertions.
  • Keywords
    programming; software maintenance; software reliability; software reusability; assertions; controlled experiments; correct program development; programming by contract; programming effort; software development; software maintenance; software reliability; software reuse; time; Application software; Boosting; Computer science; Contracts; Documentation; Programming profession; Software maintenance; Software measurement; Testing; Time measurement;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance, 2002. Proceedings. International Conference on
  • ISSN
    1063-6773
  • Print_ISBN
    0-7695-1819-2
  • Type

    conf

  • DOI
    10.1109/ICSM.2002.1167755
  • Filename
    1167755