Effect of Implementing Subgoals in Code.org's Intro to Programming Unit in Computer Science Principles
Margulieux, L. E., Morrison, B. B., Franke, B., & Ramilison, H. · 2020
Current published assessment
Assessment status: Not yet compared
The published assessment remains the archive’s current judgment. Stored model readings are preserved separately and never replace it automatically.
There are multiple stored readings, but no claim-by-claim comparison has been recorded.
Bottom line
Current archive record
High school students using a redesigned Code.org programming unit with labeled problem-solving steps scored slightly higher on the course's own knowledge questions than students using the original unit. The advantage was concentrated on questions about the procedure. Teachers volunteered for the redesigned unit rather than being randomly assigned, and the developers ran the study using course-based measures.
Read the full explanation
What was found
Students who got the redesigned unit did better on the course's knowledge questions than students who got the original unit. The overall gap was statistically significant but small: an effect size of 0.18, roughly the jump from the 50th to the 57th percentile. The gain sat mostly in the four questions about the problem-solving procedure, where it was about twice as large (0.34). The record does not give the total number of knowledge questions.1 On the questions about facts and definitions, the two groups did equally well.
The redesign broke programming tasks into labeled steps, called subgoals, such as "move," "orient" and "define a function." The labels were given as prompts at first, then explained, then withdrawn over six lessons.
Three other differences favored the redesigned unit:
- Judging code by what it does. More of its students judged two pieces of code as similar because of what they did rather than how they looked: 78% against 67% (effect size 0.22).2
- Longer written answers. Its students wrote more across the 18 open-ended questions, including a reported 102 more characters on the practice Advanced Placement (AP) Performance Task (451 against 348 on average).3 This measures length only. The researchers could not read the answers under Code.org's privacy policy, so they counted characters and keywords.
- Continuing to label code. At least a third of students kept using subgoal comments in their code after the prompts were withdrawn. This is different from using those words in written answers, the check below. Teachers said the subgoals helped struggling students most.
The keyword check found no group difference
The proposed explanation for the gains failed its keyword check. Researchers counted subgoal words in written answers to check whether the labels had entered students' thinking. The AppLab/Turtle drawing terms "move," "orient" and "pen properties" appeared fewer than 20 times in either group. The programming terms "define," "call," "function" and "loop" appeared at the same rate in both. Here, "no difference" describes the observed keyword use; no formal statistical test was run. The measured gains are not explained by the framework's proposed mechanism.
What limits the conclusion
- Teachers chose their group. Code.org invited all active teachers of the course. Those who signed up got the redesigned unit, and everyone else got the original. This is a quasi-experiment, not a randomized trial. Volunteers may differ from other teachers: selection bias.
- The developers ran it. The subgoal framework's developers, L. E. Margulieux and B. B. Morrison, are co-authors. Code.org's curriculum lead is another co-author and placed teachers into groups. The study ran inside Code.org's own platform, making it a developer-led evaluation.
- The tests were the course's own. Every outcome was a question built into the course, plus a practice AP task. The authors say these questions were built to give students feedback, not to measure effects, and give that as a reason to expect small effects.
- Short horizon, one study. Everything was measured at the end of the unit. The study has not been replicated. Earlier work in the framework developers' research program, by Morrison, Margulieux and Guzdial (2015), failed to replicate the subgoal effect, so the wider record is mixed.
Who was studied
US high school students in Code.org's Computer Science Principles course. The multiple-choice analysis covered 8,008 students: 1,384 with the redesigned unit and 6,624 with the original. The open-ended analysis covered 7,938. Before engagement-based exclusions, the starting pool was 2,027 with the redesigned unit and 10,206 with the original. The record does not specify the engagement cutoff or whether the exclusions biased the comparison.
The paper has been read in full and is marked verified.
Footnotes
-
Cohen's d = 0.18, t(8006) = 25.5, p = .001. For the procedure questions, d = 0.34, t(8006) = 11.1, p < .001. Cohen's d measures the size of the gap relative to the spread of scores. The t statistic summarizes a test comparing groups; the parenthesized number is its degrees of freedom, related to the sample size. A p-value describes how surprising a result this extreme would be under the test's no-difference model. "= .001" reports that value; "< .001" reports a value below it. Both forms are retained as recorded. ↩
-
d = 0.22, t(8006) = 39.4, p < .001. The percentages are the shares judging both items by what the code does. ↩
-
Across the 18 open-ended questions, F(1,7936) = 61.7, p < .001, eta-squared = 0.08. F is another group-comparison test statistic; its parenthesized numbers are degrees of freedom. Eta-squared expresses a share of variation in answer length, a different scale from Cohen's d: 0.08 cannot be ranked against 0.18. On the practice AP task, the redesigned-unit group averaged 451 characters (SD 72) against 348. SD describes the spread around the average; the record supplies no SD for the original-unit group. The record reports a 102-character gap, although the stated averages differ by 103. ↩
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.
Quasi-experiment
A quasi-experiment estimates a causal effect without random assignment, using a comparison created by a rule, cutoff, policy change, or statistical adjustment. Its credibility depends on whether that comparison removes the important pre-existing differences.
Selection bias
Selection bias is the systematic difference between people who end up in a program and people who don't — differences that exist before the program does anything. Families who choose a Montessori school, students who sign up for tutoring, and teachers who volunteer for training all differ from those who don't in motivation, resources, and ability, and those differences move outcomes on their own.
This is the default explanation for almost every impressive educational comparison, because the students, their families, or their schools almost always chose their condition. The gap between program participants and non-participants mixes the program's effect with the participants' head start, and no amount of measuring outcomes afterward can unmix it.
Designs earn trust in proportion to how they handle it: lotteries remove it (RCTs, natural experiments), cutoffs sidestep it locally (regression discontinuity), statistical adjustment handles only its measured part (quasi-experiments). When family background is involved, its genetic component needs its own name: genetic confounding.
Evaluator independence
Evaluator independence records whether the people judging a program are separate from the people who developed or delivered it. Independence reduces one source of bias; it does not by itself make a study well designed or correct.
Replication
Replication asks whether a result appears again when a study is repeated with a new sample. Independent repetition matters most because it tests whether the finding survives beyond the original team and setting.
Results
- Result
0.18, t(8006) = 25.5, p = .001 - favouring subgoals. The record previously stored this as 'no difference'.
Reported as: Cohen d
Compared withactive-alternative
Timingend of unit
Technical details
- Measure
- researcher-designed
- Measure origin
- Not recorded
- Horizon
- end-of-treatment
- Outcome class
- domain-skill
How the study worked
The recorded sample, comparison, methods, and practical details.
Sample
Who or what was studied
How the study worked
How much confidence should we place in this?
Limits of the research itself, separate from checks on this interpretation.