Title :
An empirical investigation of the influence of a type of side effects on program comprehension
Author :
Dolado, J.J. ; Harman, M. ; Otero, M.C. ; Hu, L.
Author_Institution :
Dept. of Comput. Languages & Syst., Univ. of the Basque Country, San Sebastian, Spain
fDate :
7/1/2003 12:00:00 AM
Abstract :
This paper reports the results of a study on the impact of a type of side effect (SE) upon program comprehension. We applied a crossover design on different tests involving fragments of C code that include increment and decrement operators. Each test had an SE version and a side-effect-free counterpart. The variables measured in the treatments were the number of correct answers and the time spent in answering. The results show that the side-effect operators considered significantly reduce performance in comprehension-related tasks, providing empirical justification for the belief that side effects are harmful.
Keywords :
program testing; software engineering; LinSERT algorithm; crossover design; program comprehension; program tests; side-effect operators; side-effect-free programs; Algorithm design and analysis; Computer languages; Humans; Impedance; Programming profession; Software maintenance; Testing; Time measurement;
Journal_Title :
Software Engineering, IEEE Transactions on
DOI :
10.1109/TSE.2003.1214329