Concept-Labeled Examples for Library Comparison

要旨

Programmers often rely on online resources—such as code examples, documentation, blogs, and Q&A forums—to compare similar libraries and select the one most suitable for their own tasks and contexts. However, this comparison task is often done in an ad-hoc manner, which may result in suboptimal choices. Inspired by Analogical Learning and Variation Theory, we hypothesize that rendering many concept-annotated code examples from different libraries side-by-side can help programmers (1) develop a more comprehensive understanding of the libraries' similarities and distinctions and (2) make more robust, appropriate library selections. We designed a novel interactive interface, ParaLib, and used it as a technical probe to explore to what extent many side-by-side concept-annotated examples can facilitate the library comparison and selection process. A within-subjects user study with 20 programmers shows that, when using ParaLib, participants made more consistent, suitable library selections and provided more comprehensive summaries of libraries' similarities and differences.

著者
Litao Yan
Harvard University, Cambridge, Massachusetts, United States
Miryung Kim
UCLA, Los Angeles, California, United States
Bjoern Hartmann
UC Berkeley, Berkeley, California, United States
Tianyi Zhang
Purdue University, West Lafayette, Indiana, United States
Elena L.. Glassman
Harvard University, Cambridge, Massachusetts, United States
論文URL

https://doi.org/10.1145/3526113.3545647

会議: UIST 2022

The ACM Symposium on User Interface Software and Technology

セッション: Programming, Kits, and Libraries

6 件の発表
2022-11-01 23:30:00
2022-11-02 01:00:00