Suggesting API Usage to Novice Programmers with the Example Guru
Abstract
Programmers, especially novices, often have difficulty learning new APIs (Application Programming Interfaces). Existing research has not fully addressed novice programmers' unawareness of all available API methods. To help novices discover new and appropriate uses for API methods, we designed a system called the Example Guru. The Example Guru suggests context-relevant API methods based on each programmer's code. The suggestions provide contrasting examples to demonstrate how to use the API methods. To evaluate the effectiveness of the Example Guru, we ran a study comparing novice programmers' use of the Example Guru and documentation-inspired API information. We found that twice as many participants accessed the Example Guru suggestions compared to documentation and that participants used more than twice as many new API methods after accessing suggestions than documentation.
- Venue
- CHI 2017
- Volume
- Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems
- DOI
- 10.1145/3025453.3025827
- https://dl.acm.org/doi/pdf/10.1145/3025453.3025827
- Anthology ID
2017.chi.370
Cite
@inproceedings{ichinco-etal-2017-suggesting,
title = {{Suggesting API Usage to Novice Programmers with the Example Guru}},
author = {Michelle Ichinco and Wint Yee Hnin and Caitlin L. Kelleher},
booktitle = {Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems},
isbn = {9781450346559},
year = {2017},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3025453.3025827},
url = {https://doi.org/10.1145/3025453.3025827},
abstract = {Programmers, especially novices, often have difficulty learning new APIs (Application Programming Interfaces). Existing research has not fully addressed novice programmers' unawareness of all available API methods. To help novices discover new and appropriate uses for API methods, we designed a system called the Example Guru. The Example Guru suggests context-relevant API methods based on each programmer's code. The suggestions provide contrasting examples to demonstrate how to use the API methods. To evaluate the effectiveness of the Example Guru, we ran a study comparing novice programmers' use of the Example Guru and documentation-inspired API information. We found that twice as many participants accessed the Example Guru suggestions compared to documentation and that participants used more than twice as many new API methods after accessing suggestions than documentation.}
}