开发者的视觉空间心理模型与程序理解
Developers' Visuo-spatial Mental Model and Program Comprehension
AI总结:
本文通过20名开发者的被试间在线实验,比较传统标签页与 code canvas,并结合 Corsi Block 测试,考察空间代码表示和视觉空间工作记忆对程序理解的影响。
摘要:
以往来自研究界和工业界的工作提出了在画布中对代码进行空间化表示,认为可导航的代码空间赋予开发者根据自身理解组织元素的自由。通过允许开发者将逻辑相关性转化为空间邻近性,这种代码表示可能有助于代码导航和理解。然而,开发者的代码理解与其对代码的视觉空间心理模型之间的关联尚未得到充分理解。该心理模型一方面受空间代码表示影响,另一方面受开发者视觉空间工作记忆影响。我们通过一项包含20名开发者的在线实验来弥补这一知识空白,实验采用被试间设计。对照组使用传统的基于标签页的代码可视化,而实验组使用 code canvas(代码画布)完成三项代码理解任务。此外,我们在任务结束时使用 Corsi Block 测试测量参与者的视觉空间工作记忆。结果表明,总体而言,无论是代码的空间表示还是开发者的视觉空间工作记忆,都未对理解表现产生显著影响。但我们发现,开发者用于导航、注释和 UI 交互等不同理解活动的时间存在显著差异。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。