Programming By Scaffolded Demonstration with Perpend

Angela Bi, Eric Rawn, Justin Lubin and Sarah E. Chasins

Abstract

Output-centric programming paradigms such as Direct Manipulation Programming, Programming By Demonstration, and Programming By Example enable users to author programs by constructing an intended output. However, sometimes the purpose of a programming interaction is to discover an “intended output” in the first place (e.g., exploratory data analysis, improvisational creative coding, early-stage prototyping). We argue that one role for output-centric programming here is scaffolding the user in demonstrating their next program editing step by selecting among possible modifications to their current program. We call this Programming By Scaffolded Demonstration (PBSD). To explore PBSD, we built Perpend, a programming environment for p5.js. In a user study with nine artists, we juxtapose Perpend with an existing Direct Manipulation editor, exploring how participants used Perpend to situate themselves within a space of possible programs, shift focus between program text and visual output, and shape their exploration by modifying their program structure.

Venue
CHI 2026
Volume
Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3772318.3791327
PDF
https://dl.acm.org/doi/pdf/10.1145/3772318.3791327
Anthology ID
2026.chi.1040

Cite

@inproceedings{bi-etal-2026-programming,
    title = {{Programming By Scaffolded Demonstration with Perpend}},
    author = {Angela Bi and Eric Rawn and Justin Lubin and Sarah E. Chasins},
    booktitle = {Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400722783},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3772318.3791327},
    url = {https://doi.org/10.1145/3772318.3791327},
    abstract = {Output-centric programming paradigms such as Direct Manipulation Programming, Programming By Demonstration, and Programming By Example enable users to author programs by constructing an intended output. However, sometimes the purpose of a programming interaction is to discover an “intended output” in the first place (e.g., exploratory data analysis, improvisational creative coding, early-stage prototyping). We argue that one role for output-centric programming here is scaffolding the user in demonstrating their next program editing step by selecting among possible modifications to their current program. We call this Programming By Scaffolded Demonstration (PBSD). To explore PBSD, we built Perpend, a programming environment for p5.js. In a user study with nine artists, we juxtapose Perpend with an existing Direct Manipulation editor, exploring how participants used Perpend to situate themselves within a space of possible programs, shift focus between program text and visual output, and shape their exploration by modifying their program structure.}
}