The impact of vibe coding on students’ programming self-efficacy and attitudes toward artificial intelligence

The impact of vibe coding on students’ programming self-efficacy and attitudes toward artificial intelligence

This study employed a quantitative, quasi-experimental single-group pretest–posttest design to examine the effects of the Vibe Coding intervention. Quantitative research designs are appropriate for studies aiming to test objective theories by measuring relationships among variables numerically and analyzing them statistically20. In this study, students’ programming self-efficacy and attitudes toward AI were measured before and after their participation in the Vibe Coding program. The intervention consisted of a four-week structured instructional program in which students learned coding through project-based, natural language interactions using GitHub Copilot. The single-group pretest–posttest design was chosen because it provides a practical means of assessing the impact of an educational intervention within the same group of participants, thereby controlling for individual differences. This design has been widely applied in educational technology and computer science education research to investigate short-term instructional effects when random assignment or the inclusion of a control group is not feasible21. Using paired measurements helps reduce error variance attributable to inter-individual differences and increases the statistical power of analyses, even with relatively small sample sizes. The purpose of this study was not to compare different instructional methods but to determine whether the Vibe Coding experience could lead to measurable improvements within a single group of students. Therefore, the pretest–posttest design was deemed appropriate for identifying within-group changes in a natural classroom context.

Participants

Prior to data collection, an a priori power analysis was conducted using G*Power 3.122 to determine the minimum required sample size for a two-tailed paired-samples t-test. Parameters were set at α = 0.05, power (1–β) = 0.95, and an expected effect size of d = 0.60. The expected effect size was informed by prior research reporting medium-to-large effects of AI-assisted learning interventions on programming self-efficacy10 and on students’ attitudes toward AI23. The analysis indicated that a minimum of 39 participants would be required to achieve adequate statistical power.

Enrollment in academic programs that included programming-related courses was a key criterion for participant selection. Participants were recruited using convenience sampling and volunteered to participate in the study. The initial sample consisted of 64 undergraduate students enrolled at a vocational school. However, due to incomplete responses on either the pretest or posttest, only 50 students provided complete and usable data for analysis. Detailed demographic characteristics, including gender and academic program, are presented in Table 2 (see Results section). All included participants completed both the pretest and posttest assessments, resulting in complete paired data for statistical analyses.

Data collection

Data were collected using two validated scales: The Computer Programming Self-Efficacy Scale (CPSES) and the General Attitudes toward Artificial Intelligence Scale (GAAIS). In addition, a brief demographic questionnaire was administered to collect information on participants’ academic program, gender, student ID, and self-rated programming ability.

Computer programming self-efficacy scale

Programming self-efficacy was measured using the CPSES. The original scale consisted of 32 items on a 7-point Likert-type scale (1 = not confident at all, 7 = completely confident) and included four dimensions: independence and persistence, complex programming tasks, self-regulation, and simple programming tasks. Subscale reliabilities ranged from α = 0.86 to 0.94, and the overall internal consistency coefficient was α = 0.9824. In the Turkish adaptation, the scale was refined to 9 items following exploratory and confirmatory factor analyses that supported a two-factor structure: simple programming tasks (3 items) and complex programming tasks (6 items)25. The adapted version which was used in this study explained 80.81% of the total variance, and internal consistency coefficients indicated excellent reliability (α = 0.93; ω = 0.96). Confirmatory factor analysis revealed a good model fit: χ²/df = 1.55, RMSEA = 0.062, SRMR = 0.034, GFI = 0.95, AGFI = 0.90, CFI = 0.99, NFI = 0.98, NNFI = 0.99, IFI = 0.99. Higher scores indicate greater confidence in performing programming tasks. In the present study, both subdimension and total scores were used in the analyses. In the present study, the reliability coefficient of the CPSES was α = 0.94 for the pretest and α = 0.96 for the posttest.

General attitudes toward artificial intelligence scale

Students’ attitudes toward AI were measured using the GAAIS. The scale comprises 20 items organized into two subscales: positive attitudes (12 items) and negative attitudes (8 items). Responses were given on a 5-point Likert-type scale ranging from 1 (strongly disagree) to 5 (strongly agree). Negative items were reverse-coded, ensuring that higher scores represent more positive attitudes toward AI26. The Turkish adaptation of the scale confirmed the same two-factor structure as the original version. Internal consistency coefficients were α = 0.82 for the positive attitudes subscale and α = 0.84 for the negative attitudes subscale. Factor loadings ranged from 0.40 to 0.71 for the positive dimension and from 0.41 to 0.76 for the negative dimension. Confirmatory factor analysis indicated that the model had acceptable to excellent fit indices in the first analysis (χ² = 557.01, df = 169, χ²/df = 3.30, CFI = 0.92, NNFI = 0.91, SRMR = 0.067, RMSEA = 0.081) and improved fit when reanalyzed using the DWLS estimator (χ² = 255.38, df = 169, χ²/df = 1.51, CFI = 0.974, NNFI = 0.971, SRMR = 0.066, RMSEA = 0.038, 90% CI [0.028, 0.048])27. In the present study, reverse coding was applied prior to computing scale scores. Consistent with the multidimensional structure of the Turkish GAAIS, analyses were conducted at the subscale level (positive and negative attitudes), and the total score was not used in inferential analyses. In the present study, the reliability coefficients for the positive and negative attitudes subscales were α = 0.92 and α = 0.85 at pretest, and α = 0.94 and α = 0.92 at posttest, respectively.

Demographic questionnaire

In addition to these scales, students also provided demographic information, including student number, academic program, and gender. This information was used to contextualize the sample and to support the interpretation of findings.

Experimental procedure

The study procedure consisted of three main phases: (1) administration of the pretest instruments (CPSES and GAAIS), (2) implementation of the four-week Vibe Coding intervention—including setup and orientation activities in Week 1 followed by progressively advanced training in Weeks 2–4—and (3) administration of the posttest instruments.

In the first phase, participants completed the pretest measures, including the CPSES and GAAIS, which were administered via online forms.

In the second phase, students participated in a structured four-week Vibe Coding intervention held in a university computer laboratory. Each week consisted of two hour-long sessions, totaling eight instructional hours over the four weeks. The intervention was implemented separately for each of the two academic programs in which participants were enrolled, and all sessions were facilitated by the same instructor to ensure consistency. Students had prior knowledge of general programming concepts, including variables, data types, control structures, and functions. Students were provided with brief guidance and example prompts to help them formulate clear task instructions, but no formal training in prompt engineering was provided. As part of the Vibe Coding intervention, they examined how these familiar concepts were applied within project-based tasks and subsequently developed similar projects independently. The instructional design aimed to support gradual skill development and enhance students’ confidence in programming using Vibe Coding.

During Week 1, students completed the technical setup required for the Vibe Coding intervention and participated in an orientation session. Specifically, they created GitHub accounts, applied for the GitHub Student Pack (https://education.github.com/pack), installed Visual Studio Code on the laboratory computers, and integrated the GitHub Copilot extension. This preparatory stage ensured that all participants had access to a standardized development environment and were technically prepared for subsequent sessions. The instructor introduced the Vibe Coding approach and provided example prompts to support students’ effective use of GitHub Copilot, without offering formal prompt engineering training.

The Vibe Coding sessions were conducted in a standardized laboratory setting where students engaged in prompt-driven coding activities using GitHub Copilot. Weeks 2 and 3 focused on progressively more challenging programming exercises. Week 2 focused on fundamental programming concepts, including algorithms, loops, and conditional statements, whereas Week 3 introduced more advanced topics, including data structures, debugging, and modular programming. In Week 4, students completed a project that required integrating multiple programming concepts with assistance from GitHub Copilot, reinforcing both technical and problem-solving skills. Throughout the intervention, the instructor guided students in evaluating Copilot-generated code, refining prompts, and reflecting on their problem-solving strategies. The intervention process was deliberately designed to include activities requiring students to critically evaluate, manually debug, and explain AI-generated code, thereby discouraging passive engagement and rote learning.

In the final phase, the CPSES and GAAIS were re-administered as posttest measures to assess changes in programming self-efficacy and attitudes toward AI. The overall flow of the study is summarized in Fig. 1.

Fig. 1Fig. 1

Flowchart of the vibe coding intervention procedure.

Data analysis

Data were analyzed using IBM SPSS Statistics (version 28.0). Descriptive statistics—including means, standard deviations, minimum and maximum values, skewness, and kurtosis—were computed to examine the general characteristics and distribution of the data.

The normality assumption was assessed using both statistical and descriptive approaches. The Kolmogorov–Smirnov test was conducted and yielded non-significant results (p > .05) for all variables, indicating no statistically significant deviation from normality. In addition, skewness and kurtosis values fell within the acceptable range of ± 228.

For paired-samples analyses, the normality assumption was evaluated based on the distribution of difference scores (posttest – pretest). Visual inspection of histograms with superimposed normal curves indicated that the difference scores were approximately normally distributed for overall and complex tasks, exhibiting clear bell-shaped and symmetric patterns (Fig. 2). Although the simple task scores showed a slight positive skew and clustering around zero, the deviation was not deemed substantial enough to invalidate parametric procedures. Given the adequate sample size (n = 50) and the absence of extreme outliers, the normality assumption was considered satisfied.

To ensure the robustness of the results, bootstrap analyses with 5000 resamples and 95% bias-corrected and accelerated (BCa) confidence intervals were conducted. The bootstrap results confirmed the stability of the observed differences; for instance, the simple tasks mean difference (1.68) remained statistically significant with a 95% BCa CI [0.88, 2.52] (p = .002). This approach aligns with the principle that parametric tests are generally robust to minor deviations from normality in moderate sample sizes (n ≥ 30).

Accordingly, parametric analysis methods were employed. Paired-samples t-tests were conducted to compare pretest–posttest scores for both the total scales and their subdimensions. The magnitude of the observed differences was evaluated using Cohen’s d, interpreted as 0.20 = small, 0.50 = medium, and 0.80 = large27.

Fig. 2Fig. 2

Histograms of difference scores (posttest – pretest) with overlaid normal curves for (A) Total score, (B) Simple tasks, and (C) Complex tasks (N = 50). Visual inspection indicates approximate normality, with only minor deviation observed in simple tasks.

Since the sample size was determined through an a priori power analysis (see Participants), the data obtained were considered to have sufficient statistical power to detect medium-to-large effects. The significance level was set at α = 0.05 for all analyses.