What the research does and does not say
Guo, Kim and Rubin analysed 6.9 million video watching sessions across four edX courses [1]. Their main findings: shorter videos were much more engaging, informal talking-head segments and Khan-style tablet drawing held attention better than slides alone, and students engaged differently with lectures and tutorials, so tutorials should support rewatching and skimming [1]. They recommend segmenting videos into chunks shorter than 6 minutes [1].
Two limits matter. The study measured engagement (how long people watched and whether they attempted follow-up problems), which the authors describe as necessary but not sufficient for learning [1]. And it did not compare video with text. No source we found settles text versus video for coding directly, so the useful question is which format makes you practise more.
Practice matters more than delivery
Dunlosky and colleagues reviewed ten study techniques. Practice testing and distributed practice received high utility ratings; rereading, highlighting and summarizing were rated low [2]. The APS summary notes that the high-utility techniques helped learners of many ages and abilities [3].
For coding courses, practice testing means writing code from a prompt and checking it, not watching or reading a solution again. A text course with frequent quizzes and code challenges builds this in; for example, Educative's free Learn Python 3 course lists 17 quizzes and a series of coding challenges [4]. A video course can do the same when it has graded assignments; PY4E pairs lecture videos with autograded assignments and a free book [5]. The format of the explanation matters less than how often you are forced to retrieve and apply it.
Trade-offs at a glance
| Factor | Text plus in-browser code | Video lectures |
|---|---|---|
| Pace control | You set reading speed and can jump to the code | Playback speed and seeking; the study found tutorials are rewatched and skimmed [1] |
| Finding a detail later | Search the page or scan headings | Harder unless there are timestamps or transcripts |
| Engagement risk | Easy to skim past code without running it | Long videos lose attention; under about 6 minutes held it better [1] |
| Built-in practice | Often quizzes and challenges inline, for example 17 quizzes in one course [4] | Depends on assignments; PY4E uses autograded exercises [5] |
| Explaining visual ideas | Diagrams and code snippets | Drawing and live narration can be more engaging [1] |
Decision checklist
- You often lose focus during videos longer than ten minutes: lean toward text, or video courses with short segments.
- You prefer to see someone build and debug in real time: lean toward video, but pick one with graded exercises.
- You study in short gaps on a phone: text with small exercises is usually easier to resume.
- You tend to read without trying: whichever format you choose, require yourself to write code before checking the answer.
- You need a recognised certificate: check the certificate terms first, since format is secondary.
A one-week trial to test both formats
Pick one topic, such as Python loops, and split it across two free sources: a text lesson with code exercises (for example, Educative Learn Python 3 [4]) and a video lesson with an autograded assignment (for example, PY4E [5]).
| Day | Task | What to record |
|---|---|---|
| 1 | Text lesson on loops, complete its exercises | Minutes spent; exercises correct on first try |
| 2 | Video lesson on a comparable topic, complete its assignment | Same measures |
| 3 | Without notes, write a loop that totals numbers from a list | Could you do it? Which lesson did you recall? |
| 4 | Text lesson on functions with exercises | Minutes; first-try accuracy |
| 5 | Video lesson on functions with assignment | Minutes; first-try accuracy |
| 6 | Rest | Nothing |
| 7 | From memory, write a function using a loop, then check | Errors, and which format you would continue |
Common mistakes
This guide summarizes published research and course pages. We have not run a format trial ourselves.
- Judging by enjoyment alone; engagement and learning are not the same thing [1].
- Rereading or rewatching instead of attempting the exercise; rereading was rated low utility [2].
- Paying for a subscription before running the trial week on free material.
- Ignoring spacing; distributed practice was rated high utility, so revisit each topic a few days later [2].
Questions before you decide
Are video coding courses less effective than text ones?
The research we found does not compare them directly. The edX study measured engagement in videos and found shorter ones held attention better; learning gains depend more on practice testing and spacing, which either format can include.
How long should a coding video be?
Guo, Kim and Rubin recommend segmenting videos into chunks shorter than 6 minutes, based on engagement data from 6.9 million viewing sessions.
Sources & verification
Product details and prices can change. Check the linked provider before buying.
- Guo, Kim and Rubin (2014), How Video Production Affects Student Engagement: An Empirical Study of MOOC Videos (author PDF) Accessed 30 Oct 2026
- Duke Scholars: Dunlosky et al. (2013), Improving students' learning with effective learning techniques (abstract) Accessed 30 Oct 2026
- Association for Psychological Science: summary of the learning techniques report Accessed 30 Oct 2026
- Educative: Learn Python 3, free interactive course page Accessed 30 Oct 2026
- PY4E: Python for Everybody free materials Accessed 30 Oct 2026
Sources link directly to providers. Product buttons may use separately labeled affiliate links. Read our disclosure.