Evaluating a Visual Approach for Understanding JavaScript Source Code
Evaluating a Visual Approach for Understanding JavaScript Source Code
复制标题
评估理解 JavaScript 源代码的可视化方法
DOI:
--
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Alexandre Bergel
中科院分区:
文献类型:
--
作者:
Martin Dias;D. Orellana;S. Vidal;Leonel Merino;Alexandre Bergel
To characterize the building blocks of a legacy software system (e.g., structure, dependencies), programmers usually spend a long time navigating its source code. Yet, modern integrated development environments (IDEs) do not provide appropriate means to efficiently achieve complex software comprehension tasks. To deal with this unfulfilled need, we present Hunter, a tool for the visualization of JavaScript applications. Hunter visualizes source code through a set of coordinated views that include a node-link diagram that depicts the dependencies among the components of a system, and a treemap that helps programmers to orientate when navigating its structure. In this paper, we report on a controlled experiment that evaluates Hunter. We asked 16 participants to solve a set of software comprehension tasks, and assessed their effectiveness in terms of (i) user performance (i.e., completion time, accuracy, and attention), and (ii) user experience (i.e., emotions, usability). We found that when using Hunter programmers required significantly less time to complete various software comprehension tasks and achieved a significantly higher accuracy. We also found that the node-link diagram panel of Hunter gets most of the attention of programmers, whereas the source code panel does so in Visual Studio Code. Moreover, programmers considered that Hunter exhibits a good user experience.