Learning Programming in Informal Spaces: Using Emotion as a Lens to Understand Novice Struggles on r/learnprogramming
Alif Al Hasan, Subarna Saha, Mia Mohammad Imran
TL;DR
The paper investigates how emotions shape novice programmers' learning in informal online spaces by analyzing 1,500 posts from r/learnprogramming through the Learning-Centered Emotions framework. It combines manual annotation with clustering to identify prevalent emotions and their triggers, and derives five actionable support needs. The authors propose a design vision for lightweight affect-aware bots to provide topic explanations, learning guidance, debugging assistance, emotional support, and acknowledgment. The work offers practical guidance for building scalable, emotion-sensitive interventions in informal learning communities and outlines avenues for evaluating their impact across platforms. Overall, it advances understanding of affective dynamics in self-directed programming education and informs the design of supportive, community-integrated tools.
Abstract
Novice programmers experience emotional difficulties in informal online learning environments, where confusion and frustration can hinder motivation and learning outcomes. This study investigates novice programmers' emotional experiences in informal settings, identifies the causes of emotional struggle, and explores design opportunities for affect-aware support systems. We manually annotated 1,500 posts from r/learnprogramming using the Learning-Centered Emotions framework and conducted clustering and axial coding. Confusion, curiosity, and frustration were the most common emotions, often co-occurring and associated with early learning stages. Positive emotions were relatively rare. The primary emotional triggers included ambiguous errors, unclear learning pathways, and misaligned learning resources. We identify five key areas where novice programmers need support in informal learning spaces: stress relief and resilient motivation, topic explanation and resource recommendation, strategic decision-making and learning guidance, technical support, and acknowledgment of their challenges. Our findings highlight the need for intelligent, affect-sensitive mechanisms that provide timely support aligned with learners' emotional states.
