Related Experiment Videos
Vibe coding with preservice teachers: a single-group pretest-posttest pilot study of programming self-efficacy and
1Educational Sciences Department, Duzce Universitesi Egitim Fakultesi, Düzce, Türkiye.
Introduction:
Generative artificial intelligence (GAI) is changing how novices engage with programming by enabling program creation through natural-language interaction, an approach increasingly described as vibe coding. This may be particularly relevant for preservice teachers, who are often expected to develop computational skills despite limited programming experience. Grounded in social cognitive theory, this study examined changes in programming self-efficacy and intentions to use GAI in education following a four-week vibe coding intervention.
Methods:
A single-group pretest-posttest design was used with 159 preservice teachers (92.5% women) from four undergraduate programs at a Turkish state university. The intervention combined instructor demonstrations with individual programming tasks completed through natural-language prompting. Programming self-efficacy for simple and complex tasks and, as a secondary outcome, intentions to use GAI in education were assessed before and after the intervention.
Results:
Because full measurement invariance was not established, pretest-posttest differences were interpreted as changes in observed scores. Significant increases were found for simple-task self-efficacy (Cohen's dz = 2.62), complex-task self-efficacy (Cohen's dz = 1.72), and intentions to use GAI in education (Cohen's dz = 0.29), with all comparisons remaining significant after Bonferroni correction.
Discussion:
The findings provide preliminary evidence that structured vibe coding activities may be associated with greater programming-related confidence among preservice teachers. However, the absence of a control group prevents attribution of the observed changes to the intervention, and the large self-efficacy effects may partly reflect very low pretest scores and regression to the mean. In addition, the CPSES measures general programming confidence rather than unaided programming ability, so posttest gains may partly reflect confidence in completing tasks with GAI support. Future studies should use controlled designs and performance-based measures to determine whether increased confidence is accompanied by gains in independent programming competence.
Related Concept Videos
Purposive Learning
Self-Efficacy
Cognitive Learning
E. C. Tolman's theory of purposive behavior emphasizes that much behavior is goal-directed. He argued that to understand behavior, we must look at the entire sequence of actions leading to a goal. For instance, high school students study hard, not just due to past reinforcement but also to achieve the goal of getting into a good college.
Tolman introduced the idea that behavior is influenced by...
Multiple Intelligences Theory
Self-Awareness and Its Effects
Cognitivism
Previously dominated by behaviorism, which prioritized observable behaviors and largely ignored mental processes, psychology transformed in the 1950s. Cognitive psychologists argue that understanding how we think and process information is...