Interactive Extraction of Examples from Existing Code

Honorable Mention
Open-Source Collaboration & Code ReviewComputational Methods in HCISoftware Engineers & DevelopersHCI Researchers

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.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/chi/5898/2018

AdRecommended

Learn AI Coding at CodeNow

At a Glance

Paper Snapshot

fact_check
dataset
Source
CHI
calendar_month
Year
2018
emoji_events
Award
Honorable Mention
group
Authors
4 authors
sell
Subtopics
Open-Source Collaboration & Code Review, Computational Methods in HCI
work
Professions
Software Engineers & Developers, HCI Researchers
article
Content Status
Abstract only
hub
Related Papers
10 related papers