Reading Behavior and Comprehension of C plus plus Source Code - A Classroom Study

被引:2
|
作者
Saddler, Jonathan A. [1 ]
Peterson, Cole S. [1 ]
Peachock, Patrick [2 ]
Sharif, Bonita [1 ]
机构
[1] Univ Nebraska, Lincoln, NE 68588 USA
[2] Youngstown State Univ, Youngstown, OH 44555 USA
来源
AUGMENTED COGNITION, AC 2019 | 2019年 / 11580卷
关键词
Eye tracking; Program comprehension; Expertise; Gaze transitions;
D O I
10.1007/978-3-030-22419-6_43
中图分类号
B84 [心理学]; C [社会科学总论]; Q98 [人类学];
学科分类号
03 ; 0303 ; 030303 ; 04 ; 0402 ;
摘要
This paper presents an eye-tracking study conducted in a classroom setting with seventeen students enrolled in a Computer Science program. The students were a mix of twelve first-year undergraduates (novices) and five masters students (non-novices). Students were asked to answer a comprehension question for each of thirteen C++ programs after reading them. Each program is split into a series of chunks which logically break down meaningful parts where eye gazes hint at cognition about parts of programs useful to solving problems. We analyze these patterns across chunks for the stories they tell about how participants went about searching for cues, and to learn whether their gaze patterns predicted accurate answers to three types of questions The results show that novices tend to visit print output statements and declaration statements the same amount as they do other statements in code with the exception of control block headers, which both groups tend to focus on the most across all categories. We also find that non-novices spend longer fixating inside of chunks of code before transitioning to other chunks, and tend to transition to chunks that are further away from their original position than novices.
引用
收藏
页码:597 / 616
页数:20
相关论文
共 50 条
  • [41] Performance portable Vlasov code with C plus plus parallel algorithm
    Asahi, Yuuichi
    Padioleau, Thomas
    Latu, Guillaume
    Bigot, Julien
    Grandgirard, Virginie
    Obrejan, Kevin
    2022 IEEE/ACM INTERNATIONAL WORKSHOP ON PERFORMANCE, PORTABILITY AND PRODUCTIVITY IN HPC (P3HPC), 2022, : 68 - 80
  • [42] Algorithmic Differentiation of a Complex C plus plus Code with Underlying Libraries
    Sagebaum, Max
    Gauger, Nicolas R.
    Naumann, Uwe
    Lotz, Johannes
    Leppkes, Klaus
    2013 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE, 2013, 18 : 208 - 217
  • [43] Generation of C plus plus Code from Isabelle/HOL Specification
    Jiang, Dongchen
    Xu, Bo
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2022, 32 (07) : 1043 - 1069
  • [44] The Impact of Compiler Warnings on Code Quality in C plus plus Projects
    Johansson, Albin
    Holmberg, Carl
    Neto, Francisco G. de Oliveira
    Leitner, Philipp
    PROCEEDINGS 2024 32ND IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, ICPC 2024, 2024, : 270 - 279
  • [45] Tool for Detecting Standardwise Differences in C plus plus Legacy Code
    Brunner, Tibor
    Pataki, Norbert
    Porkolab, Zoltan
    2015 IEEE 13TH INTERNATIONAL SCIENTIFIC CONFERENCE ON INFORMATICS, 2015, : 51 - 56
  • [46] Visually Analyzing Students' Gaze on C plus plus Code Snippets
    Peterson, Cole S.
    Saddler, Jonathan A.
    Blascheck, Tanja
    Sharif, Bonita
    2019 IEEE/ACM 6TH INTERNATIONAL WORKSHOP ON EYE MOVEMENTS IN PROGRAMMING (EMIP 2019), 2019, : 18 - 25
  • [47] Techniques for Memory-Efficient Model Checking of C and C plus plus Code
    Rockai, Petr
    Still, Vladimir
    Barnat, Jiri
    SOFTWARE ENGINEERING AND FORMAL METHODS, 2015, 9276 : 268 - 282
  • [48] NOBRAINER: A Tool for Example-Based Transformation of C/C plus plus Code
    Savchenko, V. V.
    Sorokin, K. S.
    Bronshtein, I. E.
    Volkov, A. S.
    Kachanov, V. V.
    Pankratenko, G. A.
    Ermakov, M. K.
    Markov, S. I.
    Spiridonov, A. V.
    Aleksandrov, I. V.
    PROGRAMMING AND COMPUTER SOFTWARE, 2020, 46 (05) : 362 - 372
  • [49] Nobrainer: An Example-Driven Framework for C/C plus plus Code Transformations
    Savchenko, Valeriy
    Sorokin, Konstantin
    Pankratenko, Georgiy
    Markov, Sergey
    Spiridonov, Alexander
    Alexandrov, Ilia
    Volkov, Alexander
    Sun, Kwangwon
    PERSPECTIVES OF SYSTEM INFORMATICS (PSI 2019), 2019, 11964 : 140 - 155
  • [50] From C/C plus plus Code to High-Performance Dataflow Circuits
    Josipovic, Lana
    Guerrieri, Andrea
    Ienne, Paolo
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2022, 41 (07) : 2142 - 2155