Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers

Research output: Contribution to book/anthology/report/conference proceedingArticle in proceedingResearchpeer-review

Abstract

As shown by several studies, programmers’ readability of source code is influenced by its structural and the textual features. In order to assess the importance of these features, we conducted an eye-tracking experiment with programming students. To assess the readability and comprehensibility of code snippets, the test subjects were exposed to four different snippets containing or missing structural and/or textual elements. To assure that all subjects were at an equivalent level of expertise, their programming skills were also evaluated. During the eye-tracking experiment, the subjects were also asked to give a readability and comprehensibility score to each snippet. The absence of textual features showed to increase the average fixation duration. This indicates that for the test subjects the textual features were more essential for the comprehension of the code. Gaze pattern analysis revealed less ordered patterns in the absence of structural features compared to the absence of textual features.
Original languageEnglish
Title of host publicationAdvances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018
Number of pages10
PublisherSpringer
Publication date1 Jan 2019
Pages91-100
ISBN (Print)9783319948652
DOIs
Publication statusPublished - 1 Jan 2019
EventAHFE International Conference on Neuroergonomics and Cognitive Engineering, 2018 - Orlando, United States
Duration: 21 Jul 201825 Jul 2018

Conference

ConferenceAHFE International Conference on Neuroergonomics and Cognitive Engineering, 2018
CountryUnited States
CityOrlando
Period21/07/201825/07/2018
SeriesAdvances in Intelligent Systems and Computing
Volume775
ISSN2194-5357

Fingerprint

Experiments
Students

Keywords

  • Code features
  • Eye-tracking
  • Programmer
  • Programming
  • Readability

Cite this

Wulff-Jensen, A., Ruder, K., Triantafyllou, E., & Bruni, L. E. (2019). Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers. In Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018 (pp. 91-100). Springer. Advances in Intelligent Systems and Computing, Vol.. 775 https://doi.org/10.1007/978-3-319-94866-9_9
Wulff-Jensen, Andreas ; Ruder, Kevin ; Triantafyllou, Evangelia ; Bruni, Luis Emilio. / Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers. Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018. Springer, 2019. pp. 91-100 (Advances in Intelligent Systems and Computing, Vol. 775).
@inproceedings{5fddad44ded649e98e1e1a671452f897,
title = "Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers",
abstract = "As shown by several studies, programmers’ readability of source code is influenced by its structural and the textual features. In order to assess the importance of these features, we conducted an eye-tracking experiment with programming students. To assess the readability and comprehensibility of code snippets, the test subjects were exposed to four different snippets containing or missing structural and/or textual elements. To assure that all subjects were at an equivalent level of expertise, their programming skills were also evaluated. During the eye-tracking experiment, the subjects were also asked to give a readability and comprehensibility score to each snippet. The absence of textual features showed to increase the average fixation duration. This indicates that for the test subjects the textual features were more essential for the comprehension of the code. Gaze pattern analysis revealed less ordered patterns in the absence of structural features compared to the absence of textual features.",
keywords = "Code features, Eye-tracking, Programmer, Programming, Readability",
author = "Andreas Wulff-Jensen and Kevin Ruder and Evangelia Triantafyllou and Bruni, {Luis Emilio}",
year = "2019",
month = "1",
day = "1",
doi = "10.1007/978-3-319-94866-9_9",
language = "English",
isbn = "9783319948652",
pages = "91--100",
booktitle = "Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018",
publisher = "Springer",
address = "Germany",

}

Wulff-Jensen, A, Ruder, K, Triantafyllou, E & Bruni, LE 2019, Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers. in Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018. Springer, Advances in Intelligent Systems and Computing, vol. 775, pp. 91-100, AHFE International Conference on Neuroergonomics and Cognitive Engineering, 2018, Orlando, United States, 21/07/2018. https://doi.org/10.1007/978-3-319-94866-9_9

Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers. / Wulff-Jensen, Andreas; Ruder, Kevin; Triantafyllou, Evangelia; Bruni, Luis Emilio.

Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018. Springer, 2019. p. 91-100 (Advances in Intelligent Systems and Computing, Vol. 775).

Research output: Contribution to book/anthology/report/conference proceedingArticle in proceedingResearchpeer-review

TY - GEN

T1 - Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers

AU - Wulff-Jensen, Andreas

AU - Ruder, Kevin

AU - Triantafyllou, Evangelia

AU - Bruni, Luis Emilio

PY - 2019/1/1

Y1 - 2019/1/1

N2 - As shown by several studies, programmers’ readability of source code is influenced by its structural and the textual features. In order to assess the importance of these features, we conducted an eye-tracking experiment with programming students. To assess the readability and comprehensibility of code snippets, the test subjects were exposed to four different snippets containing or missing structural and/or textual elements. To assure that all subjects were at an equivalent level of expertise, their programming skills were also evaluated. During the eye-tracking experiment, the subjects were also asked to give a readability and comprehensibility score to each snippet. The absence of textual features showed to increase the average fixation duration. This indicates that for the test subjects the textual features were more essential for the comprehension of the code. Gaze pattern analysis revealed less ordered patterns in the absence of structural features compared to the absence of textual features.

AB - As shown by several studies, programmers’ readability of source code is influenced by its structural and the textual features. In order to assess the importance of these features, we conducted an eye-tracking experiment with programming students. To assess the readability and comprehensibility of code snippets, the test subjects were exposed to four different snippets containing or missing structural and/or textual elements. To assure that all subjects were at an equivalent level of expertise, their programming skills were also evaluated. During the eye-tracking experiment, the subjects were also asked to give a readability and comprehensibility score to each snippet. The absence of textual features showed to increase the average fixation duration. This indicates that for the test subjects the textual features were more essential for the comprehension of the code. Gaze pattern analysis revealed less ordered patterns in the absence of structural features compared to the absence of textual features.

KW - Code features

KW - Eye-tracking

KW - Programmer

KW - Programming

KW - Readability

UR - http://www.scopus.com/inward/record.url?scp=85049689408&partnerID=8YFLogxK

U2 - 10.1007/978-3-319-94866-9_9

DO - 10.1007/978-3-319-94866-9_9

M3 - Article in proceeding

SN - 9783319948652

SP - 91

EP - 100

BT - Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018

PB - Springer

ER -

Wulff-Jensen A, Ruder K, Triantafyllou E, Bruni LE. Gaze strategies can reveal the impact of source code features on the cognitive load of novice programmers. In Advances in Neuroergonomics and Cognitive Engineering - Proceedings of the AHFE 2018 International Conference on Neuroergonomics and Cognitive Engineering, 2018. Springer. 2019. p. 91-100. (Advances in Intelligent Systems and Computing, Vol. 775). https://doi.org/10.1007/978-3-319-94866-9_9