The Stress of Improvisation: Instructors' Perspectives on Live Coding in Programming Classes

Xiaotian Su and April Yi Wang

Abstract

Live coding is a pedagogical technique in which an instructor writes and executes code in front of students to impart skills like incremental development and debugging. Although live coding offers many benefits, instructors face many challenges in the classroom, like cognitive challenges and psychological stress, most of which have yet to be formally studied. To understand the obstacles faced by instructors in CS classes, we conducted (1) a formative interview with five teaching assistants in exercise sessions and (2) a contextual inquiry study with four lecturers for large-scale classes. We found that the improvisational and unpredictable nature of live coding makes it difficult for instructors to manage their time and keep students engaged, resulting in more mental stress than presenting static slides. We discussed opportunities for augmenting existing IDEs and presentation setups to help enhance live coding experience.

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

Cite

@inproceedings{su-wang-2025-stress,
    title = {{The Stress of Improvisation: Instructors' Perspectives on Live Coding in Programming Classes}},
    author = {Xiaotian Su and April Yi Wang},
    booktitle = {Proceedings of the Extended Abstracts of the CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400713958},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3706599.3719993},
    url = {https://doi.org/10.1145/3706599.3719993},
    abstract = {Live coding is a pedagogical technique in which an instructor writes and executes code in front of students to impart skills like incremental development and debugging. Although live coding offers many benefits, instructors face many challenges in the classroom, like cognitive challenges and psychological stress, most of which have yet to be formally studied. To understand the obstacles faced by instructors in CS classes, we conducted (1) a formative interview with five teaching assistants in exercise sessions and (2) a contextual inquiry study with four lecturers for large-scale classes. We found that the improvisational and unpredictable nature of live coding makes it difficult for instructors to manage their time and keep students engaged, resulting in more mental stress than presenting static slides. We discussed opportunities for augmenting existing IDEs and presentation setups to help enhance live coding experience.}
}