Emergent, crowd-scale programming practice in the IDE

Ethan Fast, Daniel Steffee, Lucy Wang, Joel R. Brandt and Michael S. Bernstein

Abstract

While emergent behaviors are uncodified across many domains such as programming and writing, interfaces need explicit rules to support users. We hypothesize that by codifying emergent programming behavior, software engineering interfaces can support a far broader set of developer needs. To explore this idea, we built Codex, a knowledge base that records common practice for the Ruby programming language by indexing over three million lines of popular code. Codex enables new data-driven interfaces for programming systems: statistical linting, identifying code that is unlikely to occur in practice and may constitute a bug; pattern annotation, automatically discovering common programming idioms and annotating them with metadata using expert crowdsourcing; and library generation, constructing a utility package that encapsulates and reflects emergent software practice. We evaluate these applications to find Codex captures a broad swatch of programming practice, statistical linting detects problematic code snippets, and pattern annotation discovers nontrivial idioms such as basic HTTP authentication and database migration templates. Our work suggests that operationalizing practice-driven knowledge in structured domains such as programming can enable a new class of user interfaces.

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

Cite

@inproceedings{fast-etal-2014-emergent,
    title = {{Emergent, crowd-scale programming practice in the IDE}},
    author = {Ethan Fast and Daniel Steffee and Lucy Wang and Joel R. Brandt and Michael S. Bernstein},
    booktitle = {Proceedings of the SIGCHI Conference on Human Factors in Computing Systems},
    isbn = {9781450324731},
    year = {2014},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/2556288.2556998},
    url = {https://doi.org/10.1145/2556288.2556998},
    abstract = {While emergent behaviors are uncodified across many domains such as programming and writing, interfaces need explicit rules to support users. We hypothesize that by codifying emergent programming behavior, software engineering interfaces can support a far broader set of developer needs. To explore this idea, we built Codex, a knowledge base that records common practice for the Ruby programming language by indexing over three million lines of popular code. Codex enables new data-driven interfaces for programming systems: statistical linting, identifying code that is unlikely to occur in practice and may constitute a bug; pattern annotation, automatically discovering common programming idioms and annotating them with metadata using expert crowdsourcing; and library generation, constructing a utility package that encapsulates and reflects emergent software practice. We evaluate these applications to find Codex captures a broad swatch of programming practice, statistical linting detects problematic code snippets, and pattern annotation discovers nontrivial idioms such as basic HTTP authentication and database migration templates. Our work suggests that operationalizing practice-driven knowledge in structured domains such as programming can enable a new class of user interfaces.}
}