Atoms of Confusion
Autor: | Alessandro Garcia, Márcio Ribeiro, Benedito de Oliveira, Guilherme Amaral, Baldoino Fonseca, Rafael Maiani de Mello, Rohit Gheyi, Rodrigo Bonifácio, José Aldo Silva da Costa, Anderson Oliveira |
---|---|
Rok vydání: | 2020 |
Předmět: |
atoms of confusion
eye tracking business.industry Computer science Perspective (graphical) 020207 software engineering 02 engineering and technology Software maintenance computer.software_genre Gaze Comprehension Software 0202 electrical engineering electronic engineering information engineering Code (cryptography) Eye tracking Artificial intelligence Empirical evidence business computer Natural language processing |
Zdroj: | SBES |
DOI: | 10.1145/3422392.3422437 |
Popis: | Code comprehension is crucial in software maintenance activities, though it can be hindered by misunderstandings and confusion patterns, namely, atoms of confusion. They are small pieces of code using specific programming language constructs, such as Conditional Operators and Comma Operators. A previous study showed that these atoms of confusion impact developers’ performance, i.e., time and accuracy, and increase code misunderstandings. However, empirical knowledge of the impact of such atoms on code comprehension is still scarce, especially when it comes to analyzing that impact on developers’ visual attention. The present study evaluates whether developers misunderstand the code in the presence of atoms of confusion with an eye tracker. For this purpose, we measure the tasks’ completion time, the accuracy of the answers, and analyze the distribution of visual attention. We conducted a controlled experiment with 30 students and software practitioners. We ask the subjects to specify the output of three tasks with atoms and three without atoms randomly assigned using a Latin Square design. We use an eye-tracking camera to detect the visual attention of the participants while solving the tasks. From an aggregated perspective, we observed an increase of 43.02% in time and 36.8% in gaze transitions in code snippets with atoms. For accuracy, no statistically significant difference was observed. We also confirm that the regions that receive most of the eye attention were theregions with atoms. Our findings reinforce that atoms hinder developers’ performance and comprehension. So, developers should avoid writing code with them. |
Databáze: | OpenAIRE |
Externí odkaz: |