Article Gold Open Access 2021

Clean and dirty code comprehension by eye-tracking based evaluation using gp3 eye tracker

Acta Polytechnica Hungarica
Journal · Vol. 18 · Issue 1 · pp. 79-99
Abstract

During the observation, analysis, and examination of cognitive processes, human-computer interfaces are increasingly becoming widespread. Programming could also be seen as a complex cognitive process. This study aims to examine the efficiency of the clean code paradigm and compares it to the dirty code produced without the principles formulated in this technique. In addition to the traditional knowledge level test and subjective judgment, the readability and comprehensibility of the implemented code were determined by analysing the heatmap and gaze route besides measuring and evaluating eye movement parameters. Based on the statistical evaluation, it can be stated that there is a significant difference in the average number of fixations, the average fixation time, and the average length of routes between fixations measured by studying two differently written source codes. This means that in the case of the clean code, significantly less and shorter information recording and processing were necessary to understand the code. © 2021, Budapest Tech Polytechnical Institution. All rights reserved.

Keywords

Author Keywords

Programming eye-tracking Clean code paradigm Dirty code

Index Keywords

Author Affiliations
University of Dunaújváros, Dunaujvaros, Fejer County, Hungary
Funding & Acknowledgements
No funding information
References 10 References
1 Clean Code A Handbook of Agile Software Craftsmanship, (2008)
2 Baranyi, Péter Zoltán, Cognitive infocommunications (CogInfoCom), Cognitive Infocommunications (CogInfoCom), pp. 1-219, (2015)
3 Baranyi, Péter Zoltán, Definition and synergies of cognitive infocommunications, Acta Polytechnica Hungarica, 9, 1, pp. 67-83, (2012)
4 Busjahn, Teresa, Eye Movements in Code Reading: Relaxing the Linear Order, IEEE International Conference on Program Comprehension, 2015-August, pp. 255-265, (2015)
5 Crosby, Martha E., How Do We Read Algorithms?: A Case Study, Computer, 23, 1, pp. 25-35, (1990)
6 14th Workshop of the Psychology of Programming Interest Group, (2002)
7 Busjahn, Teresa, Analysis of code reading to gain more insight in program comprehension, Proceedings - 11th Koli Calling International Conference on Computing Education Research, Koli Calling'11, pp. 1-9, (2011)
8 Busjahn, Teresa, What influences dwell time during source code reading? Analysis of element type and frequency as factors, Eye Tracking Research and Applications Symposium (ETRA), pp. 335-338, (2014)
9 Chandrika, K. R., Recognizing eye tracking traits for source code review, IEEE International Conference on Emerging Technologies and Factory Automation, ETFA, pp. 1-8, (2017)
10 32nd Annual Conference of the Working Group Business Information Systems of the German Speaking Universities of Applied Sciences, (2019)
Quick Actions
Full Text via DOI
Citation Metrics
36
Times Cited (Scopus)

References 10
Document Identifiers