Quantitative Quality Evaluation of the Impact of Indentation in Source Code Using Eye-Tracking

Authors

  • Kou Yorimoto Hiroshima Institute of Technology
  • Shimpei Matsumoto Hiroshima Institute of Technology

DOI:

https://doi.org/10.52731/lir.v004.293

Keywords:

Eye tracking, source code, indentation, readability

Abstract

This study focuses on the setting of indentation and aims to elucidate its impact on reada-bility through the analysis of program comprehension processes using eye tracking. Within the workload of software lifecycle activities, maintenance tasks are known to occupy a sig-nificant proportion. Among the various stages of maintenance, understanding the content of source code, namely comprehension, is considered the most time-consuming task. Against this backdrop, the ability to comprehend source code is recognized as an important pro-gramming skill. Alongside comprehension, awareness of source code readability is also considered a vital aspect of comprehension learning. Factors influencing the readability of source code include code structure, naming conventions, presence, and quality of com-ments, as well as indentation and placement of parentheses. However, insufficient quantita-tive research has been conducted to demonstrate the impact of these factors on readability. Therefore, this study focuses on the influence of indentation on readability and analyzes the program comprehension process using eye tracking. The results suggest that in the case of small-scale source code, the absence of indentation may not adversely affect slicing.

References

M. Carr, C. Wagner, “A study of reasoning processes in software maintenance Management,” Information Technology and Management, vol.3, pp.181–203, 2002.

A. Goldberg, “Programmer as reader”. IEEE Software, 4(5),62, 1987.

H. Kanamori, T. Higashimoto, Y. Yoneda and T. Akakura. Proposal of "Learning to Read Programs" in the Programming Process and Development of Learning Support System for the "Understanding Meaning" Process. IEICE Transactions on Information and Systems, 97(12), 1843-1846, 2014.

T. Oshiro, Y. Matsuzawa and S. Sakai. (2011). Proposal of Code Reading Support Tool Us-ing Tour Map. Proceedings of the 73rd National Convention, 441-442, 2011(1).

M. Tanaka, T. Ishio and K. Inoue, Proposal of Additional Annotation Document Tag for Program Understanding. Technical Report of Software Engineering (SE), 2009(31(2009-SE-163)), 201-208, 2009.

A. Hiratani, "Analysis Based on Control Dependence of Limited Program Reading Patterns Using Eye Movements," Bachelor's Thesis, Department of Intelligent Information Systems, Faculty of Information Engineering, Hiroshima Institute of Technology, 2020.

R. Hanabusa, Y. Hayashi, M. Hirashima, and S. Matsumoto, “A Data Dependency-Based Analysis of Program Reading Patterns Using Eye Movements--For Programs Composed of Assignment and Arithmetic Operations. --,” Journal of Educational Systems and Infor-mation, Vol. 35, No. 2, pp. 192-203, 2018.

R. Bednarik, M. Tukiainen, “An eye-tracking methodology for characterizing program comprehension processes” Proc. of the 2006 symposium on Eye tracking research & appli-cations pp. 125–132, 2006

Downloads

Published

2024-09-15