Scoped: Evaluating A Composite Visualisation of the Scope Chain Hierarchy Within Source Code

Ivan Bacher, Brian Mac Namee, John D. Kelleher

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

This paper presents two studies that evaluate the effectiveness of a software visualisation tool which uses a com-posite visualisation to encode the scope chain and information related to the scope chain within source code. The first study evaluates the effectiveness of adding the composite visualisation to a source code editor to help programmers understand scope relationships within source code. The second study evaluates the effectiveness of each individual component within the composite visualisation. The composite visualisation is composed of a packed circle tree diagram (overview component) and a list view (detail view component). The packed circle tree functions as an abstract mini-map to provide viewers with a high-level overview of the scope chain hierarchy within a source code document. The list view provides additional information about identifiers (variables, functions, and parameters) that are accessible from the scope within which the cursor is located, in the source code document. Both studies utilise a between-subject design, in which groups of participants were presented with source code fragments and asked to answer a series of code understanding questions. The results of the studies indicate that adding a composite visualisation to a source code editor can have a positive effect on code understanding, especially when the textual representation of the code no longer corresponds to the actual behaviour of the code (as is the case, for example, in languages such as JavaScript that implement variable hoisting).

Original languageEnglish
Title of host publicationProceedings - 6th IEEE Working Conference on Software Visualization, VISSOFT 2018
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages117-121
Number of pages5
ISBN (Electronic)9781538682920
DOIs
Publication statusPublished - 9 Nov 2018
Event6th IEEE Working Conference on Software Visualization, VISSOFT 2018 - Madrid, Spain
Duration: 24 Sep 201825 Sep 2018

Publication series

NameProceedings - 6th IEEE Working Conference on Software Visualization, VISSOFT 2018

Conference

Conference6th IEEE Working Conference on Software Visualization, VISSOFT 2018
Country/TerritorySpain
CityMadrid
Period24/09/1825/09/18

Keywords

  • empirical evaluation
  • software visualisation
  • source code visualistion

Fingerprint

Dive into the research topics of 'Scoped: Evaluating A Composite Visualisation of the Scope Chain Hierarchy Within Source Code'. Together they form a unique fingerprint.

Cite this