A meta-analysis of teaching and learning computer programming: Effective instructional approaches and conditions
Scherer, R., Siddiq, F., & Sánchez Viveros, B. · 2020
Current published assessment
Assessment status: No model-attributed paper reading is stored
The published assessment remains the archive’s current judgment. Stored model readings are preserved separately and never replace it automatically.
Bottom line
Current archive record
Students taught programming outscored those given none. Differences between teaching approaches were not statistically significant, so the choice of approach appears not to matter. Most samples came from colleges and universities, and many study designs were weak.
Read the full explanation
What was found
Students taught programming outscored students given no programming instruction. This review found no statistically significant differences between teaching approaches. It pooled 139 studies of people learning to program, a meta-analysis.1 Its results cover four comparisons.
Taught versus untaught. In 11 studies, students who got programming instruction outscored control groups who got none, by about 0.8 of the usual spread in test scores between students, an effect size of g = 0.81.2 For scale, g = 0.5 is roughly the jump from the 50th to the 69th percentile. The authors call the taught-versus-untaught result a "reference ceiling" because its controls received no programming instruction. It does not measure the advantage of a particular teaching method. The ceiling label conflicts with the larger blended-learning estimate below, g = 1.02.
Visual programming, such as Scratch. Compared with alternative instruction, visual approaches had an advantage of g = 0.37 after a correction for publication bias. The uncorrected estimate was g = 0.44, and the authors concluded some bias was present here.3 The advantage was concentrated in Asian samples and in Scratch itself.4
Robotics and other hands-on, physical tools. Compared with alternative instruction, these showed an advantage of g = 0.72, but one study carried about a third of that. Removing a single influential result dropped the estimate to g = 0.48. For secondary-school students it was much smaller, g = 0.24, against 1.44 for primary students and 1.47 for college and university students.5
Teaching approaches. Studies compared approaches such as blended learning, collaboration, feedback, problem solving and metacognition (thinking about one's own learning) with alternative instruction. The separate estimates ranged from g = 0.49 to 1.02. Combining the results gave g = 0.60; removing unusually influential results lowered that pooled estimate to g = 0.52.6 The differences between approaches were not statistically significant, and the variation between approaches was estimated at about zero. On this evidence, the choice of approach appears not to matter. Game-based learning was one of the approaches highlighted in the authors' short opening summary, but its estimate was not statistically significant: it rests on two studies.7
How sure are we
Effect estimates differed by study design. Among feedback studies, randomized ones found g = 0.32 and non-randomized ones found g = 1.00, roughly three times as large.8 The pool as a whole is weak on the authors' own accounting:
- 74.1% of studies tested students only after the program, with no earlier test to adjust for what they already knew. The authors name this as a limitation.
- Only 49.6% report randomization, and 77.7% of control groups were not matched.
- Outcomes mixed standardized tests, knowledge and computational-thinking tests the researchers built, course grades and exam scores. All measured performance; none were self-reports.
Selection into treatment affects much of this largely non-randomized evidence. The main threats are tests closely aligned with what was taught and the lack of adjustment for students' prior skills.
Programs ran 1 to 105 hours, averaging 21.4 hours, with a median of 20 hours. All results were measured at the end of the program.
Checks for publication bias suggested real signal and found no sign that results were fished for statistical significance. But the authors could not obtain unpublished studies even after contacting researchers directly.9 This account rests on the full published paper; the subgroup tables and bias corrections have been checked.
Who the results apply to
Most of the evidence comes from college and university students: 72.3% of the samples, with ages running 7 to 27. This is not mainly evidence about school-age children.
The primary-school figures refer to different comparisons. The positive g = 1.44 above is for robotics and other physical tools. In the collaboration studies, primary-school samples were null to negative, g = −0.855, with uncertainty that included no difference. Collaboration estimates were 1.507 for secondary students and 0.496 for college and university students.8
Collaboration also showed different results for different kinds of outcome. Tests of programming knowledge found no statistically significant effect, while tests of programming skills found a positive effect. Standardized tests showed larger effects than tests without that standardization, contrary to the usual pattern.8
How it fits with other research
Other independent reviews find gains of similar size, g = 0.62 and d = 0.73. Both letters express differences in units of the spread of scores; g includes a correction for small-sample bias. But the specific comparisons between approaches highlighted in this review have been contradicted where others tested them head to head. Most notably, a review comparing block-based and text-based programming found no difference and detected publication bias.10 Within this paper, the test found no statistically significant differences between approaches. The approaches highlighted in the authors' opening summary are observations from subgroups, not replicated comparisons.
Footnotes
-
139 studies, 375 effect sizes, 26,864 students (13,774 taught, 13,090 controls); average female share 46.0%. The paper reports three syntheses: taught versus untaught instruction, visual and physical tools, and teaching approaches. These rest on very different numbers of studies: taught versus untaught 11 studies (13 effect sizes); visual 20 studies (46); physical 7 studies (27); teaching approaches 88 studies (263). The "three-level random-effects models," run in metafor, allow for uncertainty in each result, differences among results from the same study, and differences between studies. ↩
-
g = 0.814, 95% confidence interval 0.420 to 1.207. Keeping the one influential effect size raises it to g = 1.047. Trim-and-fill estimates potentially missing results and recalculates the pooled effect; it estimated none missing here. Egger's test checks whether smaller studies' results differ systematically from larger studies' results, a possible sign of publication bias; it detected no such pattern here (t = 0.00, p = 1.00). ↩
-
g = 0.436 (95% CI 0.289 to 0.583). Trim-and-fill estimated five missing effect sizes and added them statistically, giving g = 0.373 (0.264 to 0.482), a 14% reduction; these were estimated results, not additional studies retrieved. Egger's test was marginal (p = .06). The fail-safe N, an estimate of how many unpublished studies finding no effect would be needed to remove statistical significance, was large. The authors nevertheless concluded that some degree of publication bias existed in the visualization condition. ↩
-
Asian samples g = 0.80 against 0.05 to 0.35 elsewhere. Scratch g = 1.01 against 0.38 for other languages. ↩
-
g = 0.718 (95% CI 0.226 to 1.210); without the influential effect size, 0.478 (0.149 to 0.808), so one study carries about a third of the headline. Secondary g = 0.238 (0.115 to 0.360); primary 1.439 (1.083 to 1.795); tertiary 1.472 (1.130 to 1.815). Asian samples g = 1.574 against 0.216 to 0.871 elsewhere. Shorter programs outperformed longer ones. ↩
-
Pooled g = 0.598 (0.494 to 0.702), and 0.520 (0.437 to 0.603) after removing influential cases. Blended learning 1.023 (0.291 to 1.756, 3 studies); game-based learning 0.821; metacognition 0.658 (0.332 to 0.983); collaboration 0.560 (0.351 to 0.767); problem solving 0.518 (0.378 to 0.659, Egger p = .01, indicating publication bias); feedback 0.493 (0.207 to 0.780); other 0.490 (0.028 to 0.952). The test comparing all approach groups at once found no statistically significant difference (QM(6) = 2.81, p = .83). A four-level model estimated the variance between approaches, a measure of how much their effects differed, at 0.000 (95% CI 0.000 to 0.038). ↩
-
g = 0.821, 95% CI −0.126 to 1.768, p = .089, from two studies. ↩
-
Randomized g = 0.324 (0.143 to 0.506); non-randomized g = 0.999 (0.480 to 1.518); p = .016. Within the collaboration category, outcomes measuring programming knowledge were null (g ≈ −0.04, 95% CI −0.64 to 0.56) while programming skills showed a positive effect (g = 0.607, 0.405 to 0.808); primary-school samples were null to negative (g = −0.855, interval crossing zero) against secondary 1.507 and tertiary 0.496; and, against the usual pattern, standardized tests gave larger effects (g = 1.323) than unstandardized ones (g = 0.438). ↩ ↩2 ↩3
-
The authors used trim-and-fill, Egger's test, Rosenberg's fail-safe N and a p-curve. The p-curve examines the distribution of p-values, the numbers used to judge statistical significance. It was "right-skewed": among statistically significant results, very small p-values were more common than values just below the significance cutoff. The authors interpreted this as evidence of a real signal and no sign of p-hacking, or choosing analyses to obtain statistically significant results. ↩
-
The independent reviews are Hu (2024, g = 0.62) and Simonsmeier (2025, d = 0.73). The block-versus-text review is Xu et al. (2019). ↩
Meta-analysis
A meta-analysis combines numerical results from multiple studies into a weighted estimate. Its precision does not repair biased designs, missing studies, or mismatched outcomes in the evidence it pools.
Effect size (g, d)
An effect size states how big a difference is in units of the spread of scores, so results from different tests can be compared. A g of 0.4 means the treated group's average sits 0.4 standard deviations above the comparison group's — enough to move a median student to roughly the 66th percentile. (g and d are near-identical variants; g corrects a small-sample bias.)
Rough anchors: 0.1 is small and hard to distinguish from noise in most classroom studies; 0.2–0.4 is a solid, real intervention effect; above 0.6 is rare in well-controlled trials of school-age academics and deserves suspicion before celebration.
Two cautions. The same true improvement yields a bigger number on a narrow researcher-built test than on a broad standardized one (see measure alignment). And an effect measured the week treatment ends usually shrinks by follow-up (see fadeout) — so a headline number without its test and its timing is not yet information.
Publication bias
Publication bias is the filter between what researchers find and what gets printed: significant, positive, novel results are published; null results sit in file drawers. The published literature on a question is therefore a biased sample of the research actually done on it.
The consequence compounds with small studies. Underpowered studies produce scattered results; the filter keeps the lucky-large ones; a meta-analysis then averages the survivors and reports an effect bigger than the truth. Statistical checks (funnel plots, trim-and-fill) can detect the footprint but only roughly correct it.
Preregistration — publicly committing to the design and analysis before collecting data — is the strongest available fix, and preregistered studies are weighted accordingly here.
Randomized controlled trial (RCT)
A randomized controlled trial assigns participants or groups to conditions by chance. Random assignment makes the groups comparable on average, so later differences can more credibly be attributed to the treatment.
Confidence interval
A confidence interval is the range of effect sizes consistent with the data — the study's honest statement of its own precision. "g = 0.30 [0.10, 0.50]" says the best estimate is 0.30, and values from 0.10 to 0.50 would all fit the evidence comfortably.
The interval matters more than the point estimate. An interval that includes zero means the study cannot rule out "no effect." A wide interval means a small study: "g = 0.6 [−0.1, 1.3]" sounds impressive and establishes almost nothing (see statistical power).
When this site reports a number in brackets after an effect, it is this interval.
Results
- Result
0.814 (95% CI 0.420-1.207), from 11 studies / 13 effect sizes. Controls received no programming instruction at all, so this is a taught-vs-untaught contrast the authors offer as a reference ceiling. Keeping the one influential effect size raises it to g = 1.047; trim-and-fill found nothing missing and Egger's test was flat (t = 0.00, p = 1.00).
Reported as: Hedges g
Compared withbusiness-as-usual
Timingend of intervention
Technical details
- Measure
- mixed
- Measure origin
- Not recorded
- Horizon
- end-of-treatment
- Outcome class
- domain-skill
How the review worked
The recorded sample, comparison, methods, and practical details.
Evidence included
Who or what was studied
How the review worked
How much confidence should we place in this?
Limits of the research itself, separate from checks on this interpretation.