Learning Rust: How Experienced Programmers Leverage Resources to Learn a New Programming Language

Parastoo Abtahi and Griffin Dietz

Abstract

Experienced programmers are capable of learning new programming languages independently using various available resources, but we lack a comprehensive understanding of which resources they find most valuable in doing so. In this paper, we study how experienced programmers learn Rust, a systems programming language with extensive documentation and example code, an active online community, and descriptive compiler errors. We develop a task that requires learning Rust syntax and comprehending the Rust-specific approach to mutability and ownership. Our results show that users spend 43% of online time viewing example code and that programmers appreciate in-line compiler errors, choosing to refresh, on average, every 30.6 seconds after first discovering this feature. The average time between these refreshes predicted total task time, but individual resource choices did not. Based on our findings we offer design implications for language and IDE developers.

Venue
CHI 2020
Volume
Extended Abstracts of the 2020 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3334480.3383069
PDF
https://dl.acm.org/doi/pdf/10.1145/3334480.3383069
Anthology ID
2020.chi-ea.474

Cite

@inproceedings{abtahi-dietz-2020-learning,
    title = {{Learning Rust: How Experienced Programmers Leverage Resources to Learn a New Programming Language}},
    author = {Parastoo Abtahi and Griffin Dietz},
    booktitle = {Extended Abstracts of the 2020 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450368193},
    year = {2020},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3334480.3383069},
    url = {https://doi.org/10.1145/3334480.3383069},
    abstract = {Experienced programmers are capable of learning new programming languages independently using various available resources, but we lack a comprehensive understanding of which resources they find most valuable in doing so. In this paper, we study how experienced programmers learn Rust, a systems programming language with extensive documentation and example code, an active online community, and descriptive compiler errors. We develop a task that requires learning Rust syntax and comprehending the Rust-specific approach to mutability and ownership. Our results show that users spend 43\% of online time viewing example code and that programmers appreciate in-line compiler errors, choosing to refresh, on average, every 30.6 seconds after first discovering this feature. The average time between these refreshes predicted total task time, but individual resource choices did not. Based on our findings we offer design implications for language and IDE developers.}
}