Programming by a sample

Björn Hartmann, Leslie Wu, Kevin Collins and Scott R. Klemmer

Abstract

Source-code examples of APIs enable developers to quickly gain a gestalt understanding of a library's functionality, and they support organically creating applications by incrementally modifying a functional starting point. As an increasing number of web sites provide APIs, significantlatent value lies in connecting the complementary representations between site and service - in essence, enabling sites themselves to be the example corpus. We introduce d.mix, a tool for creating web mashups that leverages this site-to-service correspondence. With d.mix, users browse annotated web sites and select elements to sample. d.mix's sampling mechanism generates the underlying service calls that yield those elements. This code can be edited, executed, and shared in d.mix's wiki-based hosting environment. This sampling approach leverages pre-existing web sites as example sets and supports fluid composition and modification of examples. An initial study with eight participants found d.mix to enable rapid experimentation, and suggested avenues for improving its annotation mechanism.

Venue
UIST 2007
Volume
Proceedings of the 20th annual ACM symposium on User interface software and technology
DOI
10.1145/1294211.1294254
PDF
https://dl.acm.org/doi/pdf/10.1145/1294211.1294254
Anthology ID
2007.uist.32

Cite

@inproceedings{hartmann-etal-2007-programming,
    title = {{Programming by a sample}},
    author = {Björn Hartmann and Leslie Wu and Kevin Collins and Scott R. Klemmer},
    booktitle = {Proceedings of the 20th annual ACM symposium on User interface software and technology},
    isbn = {9781595936790},
    year = {2007},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/1294211.1294254},
    url = {https://doi.org/10.1145/1294211.1294254},
    abstract = {Source-code examples of APIs enable developers to quickly gain a gestalt understanding of a library's functionality, and they support organically creating applications by incrementally modifying a functional starting point. As an increasing number of web sites provide APIs, significantlatent value lies in connecting the complementary representations between site and service - in essence, enabling sites themselves to be the example corpus. We introduce d.mix, a tool for creating web mashups that leverages this site-to-service correspondence. With d.mix, users browse annotated web sites and select elements to sample. d.mix's sampling mechanism generates the underlying service calls that yield those elements. This code can be edited, executed, and shared in d.mix's wiki-based hosting environment. This sampling approach leverages pre-existing web sites as example sets and supports fluid composition and modification of examples. An initial study with eight participants found d.mix to enable rapid experimentation, and suggested avenues for improving its annotation mechanism.}
}