Developers' Visuo-spatial Mental Model and Program Comprehension
Abir Bouraffa, Gian-Luca Fuhrmann, Walid Maalej
Abstract
Previous works from research and industry have proposed a spatial representation of code in a canvas, arguing that a navigational code space confers developers the freedom to organise elements according to their understanding. By allowing developers to translate logical relatedness into spatial proximity, this code representation could aid in code navigation and comprehension. However, the association between developers' code comprehension and their visuo-spatial mental model of the code is not yet well understood. This mental model is affected on the one hand by the spatial code representation and on the other by the visuo-spatial working memory of developers. We address this knowledge gap by conducting an online experiment with 20 developers following a between-subject design. The control group used a conventional tab-based code visualization, while the experimental group used a code canvas to complete three code comprehension tasks. Furthermore, we measure the participants' visuo-spatial working memory using a Corsi Block test at the end of the tasks. Our results suggest that, overall, neither the spatial representation of code nor the visuo-spatial working memory of developers has a significant impact on comprehension performance. However, we identified significant differences in the time dedicated to different comprehension activities such as navigation, annotation, and UI interactions.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 75996a64-4ba6-4c05-a00c-375eee837f9fBuilds on2
- Program Comprehension and Code Complexity Metrics: An fMRI StudyNorman Peitek, Sven Apel, Chris Parnin, André Brechmann et al.ICSE 2021 · 59 citations
- Correlates of programmer efficacy and their link to experience: a combined EEG and eye-tracking studyNorman Peitek, Annabelle Bergum, Maurice Rekrut, Jonas Mucke et al.FSE 2022 · 28 citations
Related papers
- The Role of Working Memory in Program TracingWill Crichton, Maneesh Agrawala, Pat HanrahanCHI 2021 · 13 citations
- CrossCode: Multi-level Visualization of Program ExecutionDevamardeep Hayatpur, Daniel Wigdor, Haijun XiaCHI 2023 · 23 citations
- CodeGrid: A Grid Representation of CodeAbdoul Kader Kaboré, Earl T. Barr, Jacques Klein, Tegawendé F. BissyandéISSTA 2023 · 4 citations
- Predicting Code Comprehension: A Novel Approach to Align Human Gaze with Code using Deep Neural NetworksTarek Alakmeh, David R. Reich, Lena A. Jäger, Thomas FritzFSE 2024 · 6 citations
- The Mind Is a Powerful Place: How Showing Code Comprehensibility Metrics Influences Code UnderstandingMarvin Wyrich, Andreas Preikschat, Daniel Graziotin, Stefan WagnerICSE 2021 · 24 citations
