Interactive Extraction of Examples from Existing Code
Honorable MentionAuthors
Programmers frequently learn from examples produced and shared by other programmers. However, it can be challenging and time-consuming to produce concise, working code examples. We conducted a formative study where 12 participants made examples based on their own code. This revealed a key hurdle: making meaningful simplifications without introducing errors. Based on this insight, we designed a mixed-initiative tool, CodeScoop, to help programmers extract executable, simplified code from existing code. CodeScoop enables programmers to "scoop" out a relevant subset of code. Techniques include selectively including control structures and recording an execution trace that allows authors to substitute literal values for code and variables. In a controlled study with 19 participants, CodeScoop helped programmers extract executable code examples with the intended behavior more easily than with a standard code editor.
Research Questions / Practical Problems
Question signals indexed for this paper.
- 75%
Computational Interaction: Theory and Practice
CHI '18· Computational Methods in HCI
- 75%
Model-based Evaluation of Recall-based Interaction Techniques
CHI '24· Computational Methods in HCI
- 75%
Small-Step Live Programming by Example
UIST '20· Computational Methods in HCI
- 60%
Visualizing API Usage Examples at Scale
CHI '18· Interactive Data Visualization +1
- 60%
CFar: A Tool to Increase Communication, Productivity, and Review Quality in Collaborative Code Review
CHI '18· Open-Source Collaboration & Code Review +1
- 60%
Observations on Typing from 136 Million Keystrokes
CHI '18· User Research Methods (Interviews, Surveys, Observation) +1
- 60%
How Users Interpret Bugs in Trigger-Action Programming
CHI '19· Prototyping & User Testing +1
- 60%
To Write Code: The Cultural Fabrication of Programming Notation and Practice
CHI '20· Reproductive & Women's Health +1
- 60%
Understanding Visual Investigation Patterns Through Digital "Field" Observations
CHI '22· Interactive Data Visualization +1
- 60%
Dynamics of eye-hand coordination are flexibly preserved in eye-cursor coordination during an online, digital, object interaction task
CHI '23· Eye Tracking & Gaze Interaction +1
Based on Jaccard similarity of research subtopics & professions (≥60%)