The Shapes of Abstraction in Data Structure Diagrams
Abstract
Tools to inspect runtime state, like print statements and debuggers, are an essential part of programming. Yet, a major limitation is that they present data at a fixed, low level of abstraction which can overload the user with irrelevant details. In contrast, human drawings of data structures use many illustrative visual abstractions to show the most useful information. We attempt to bridge the gap by surveying 80 programmer-produced diagrams to develop a mechanical approach for capturing visual abstraction, termed abstraction moves. An abstraction move selects data objects of interest, and then revisualizes, simplifies, or annotates them. We implement these moves as a diagramming language for JavaScript code, named Chisel, and show that it can effectively reproduce 78 out of the 80 surveyed diagrams. In a preliminary study with four CS educators, we evaluate its usage and discover potential contexts of use. Our approach of mechanically moving between levels of abstraction in data displays opens the doors to new tools and workflows in programming education and software development.
- Venue
- CHI 2025
- Volume
- Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems
- DOI
- 10.1145/3706598.3713723
- https://dl.acm.org/doi/pdf/10.1145/3706598.3713723
- Anthology ID
2025.chi.637
Cite
@inproceedings{hayatpur-etal-2025-shapes,
title = {{The Shapes of Abstraction in Data Structure Diagrams}},
author = {Devamardeep Hayatpur and Brian Hempel and Richard Lin and Haijun Xia},
booktitle = {Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems},
isbn = {9798400713941},
year = {2025},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3706598.3713723},
url = {https://doi.org/10.1145/3706598.3713723},
abstract = {Tools to inspect runtime state, like print statements and debuggers, are an essential part of programming. Yet, a major limitation is that they present data at a fixed, low level of abstraction which can overload the user with irrelevant details. In contrast, human drawings of data structures use many illustrative visual abstractions to show the most useful information. We attempt to bridge the gap by surveying 80 programmer-produced diagrams to develop a mechanical approach for capturing visual abstraction, termed abstraction moves. An abstraction move selects data objects of interest, and then revisualizes, simplifies, or annotates them. We implement these moves as a diagramming language for JavaScript code, named Chisel, and show that it can effectively reproduce 78 out of the 80 surveyed diagrams. In a preliminary study with four CS educators, we evaluate its usage and discover potential contexts of use. Our approach of mechanically moving between levels of abstraction in data displays opens the doors to new tools and workflows in programming education and software development.}
}