Enabling Data-Driven API Design with Community Usage Data

Tianyi Zhang, Björn Hartmann, Miryung Kim and Elena L. Glassman

Abstract

APIs are becoming the fundamental building block of modern software and their usability is crucial to programming efficiency and software quality. Yet API designers find it hard to gather and interpret user feedback on their APIs. To close the gap, we interviewed 23 API designers from 6 companies and 11 open-source projects to understand their practices and needs. The primary way of gathering user feedback is through bug reports and peer reviews, as formal usability testing is prohibitively expensive to conduct in practice. Participants expressed a strong desire to gather real-world use cases and understand users' mental models, but there was a lack of tool support for such needs. In particular, participants were curious about where users got stuck, their workarounds, common mistakes, and unanticipated corner cases. We highlight several opportunities to address those unmet needs, including developing new mechanisms that systematically elicit users' mental models, building mining frameworks that identify recurring patterns beyond shallow statistics about API usage, and exploring alternative design choices made in similar libraries.

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

Cite

@inproceedings{zhang-etal-2020-enabling,
    title = {{Enabling Data-Driven API Design with Community Usage Data}},
    author = {Tianyi Zhang and Björn Hartmann and Miryung Kim and Elena L. Glassman},
    booktitle = {Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450367080},
    year = {2020},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3313831.3376382},
    url = {https://doi.org/10.1145/3313831.3376382},
    abstract = {APIs are becoming the fundamental building block of modern software and their usability is crucial to programming efficiency and software quality. Yet API designers find it hard to gather and interpret user feedback on their APIs. To close the gap, we interviewed 23 API designers from 6 companies and 11 open-source projects to understand their practices and needs. The primary way of gathering user feedback is through bug reports and peer reviews, as formal usability testing is prohibitively expensive to conduct in practice. Participants expressed a strong desire to gather real-world use cases and understand users' mental models, but there was a lack of tool support for such needs. In particular, participants were curious about where users got stuck, their workarounds, common mistakes, and unanticipated corner cases. We highlight several opportunities to address those unmet needs, including developing new mechanisms that systematically elicit users' mental models, building mining frameworks that identify recurring patterns beyond shallow statistics about API usage, and exploring alternative design choices made in similar libraries.}
}