October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Writing About Code Has Made Me Better at Writing Code

Writing about code exposes hidden assumptions and makes examples run, but no study directly tests whether it improves programming. Here is what the evidence supports.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

My own experience says that writing about code has made me a better programmer, but only in specific, identifiable ways. No study I could find tests that exact claim. The closest experimental evidence points to a different lever: writing code itself, ideally with immediate feedback, is what most reliably builds coding skill. Writing about code works best as a companion to that practice, not a substitute for it.

What I mean by “writing about code”

For me the term covers four kinds of work: tutorials, reference documentation, essays like this one, and the comments I leave in code. Explaining a concept to a colleague in a message counts too. These are different genres with different demands. A tutorial has to run. A comment has to stay true as the code changes. An essay has to hold an argument together. What they share is one move: turning something I understand into an order another person can follow.

As an Amazon Associate I earn from qualifying purchases.

The mechanism I have noticed

The effect I notice is not that writing makes my typing faster. It is that drafting an explanation exposes gaps in my understanding. Three patterns recur.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Hidden assumptions surface. Writing “this function assumes the input is sorted” makes me ask whether it is, and whether anything enforces that. Often nothing does.
  • Decomposition gets sharper. A paragraph that wanders across three ideas usually signals a function that is doing three jobs. Rewriting the paragraph tends to suggest splitting the function.
  • Examples force working code. A snippet I have not run is one I may get wrong. Once I started executing every example before publishing it, I found errors I would otherwise have shipped.

Consider a small illustration. Say a function reads numbers from a file and returns their average. Before I tried to explain it, I would have said it “handles input.” Explaining it step by step forces the questions: what happens with an empty file, a header row, or a line with a missing value? Each answer becomes either a guard clause or a test. The explanation did not write the code, but it located the places where the code was silently undefined.

This is a plausible account of a reflective practice, not a measured one. The mechanism is that drafting forces ideas into a linear sequence, and linear sequences expose missing steps. Learning research on writing and reflection is compatible with this idea, though none of the studies below tests blog-style writing about programs.

What the studies show, and what they do not

Several studies sit near the title’s claim. None measures it directly. The table summarizes what each one examined and where its evidence stops.

Study What it examined What it supports What it cannot show
Gold, Tjaden, and Carvalho, 2026 (preregistered experiment, N = 250 participants; preprint abstract) Practice-based programming instruction compared with video, measured on a novel code-generation test Practice beat video. Participants who wrote code with immediate feedback performed best among the compared approaches. Anything about writing prose articles. The result concerns producing code, and the details available are at abstract level.
Writing-to-learn case study, 2019 Short, low-stakes writing during programming, read through the comments novice programmers left Short writing can make reflection, analysis, synthesis, and metacognition visible while coding. A causal estimate of skill gains. The focus was how comments reveal thinking.
Python study, 2009 (students) Relationships among writing code, tracing code, and explaining code Students who did reasonably well at writing code usually also could trace and explain code. That explaining produces better coding. The finding is an association.
Cal Poly thesis, 2018 (CS students) Whether programming skills transfer to academic prose Students reported more confidence writing organized papers, and their paragraphs were more often focused on a single topic. The title’s direction. This evidence runs from programming habits to prose, not from prose to code.

Why the direction matters

The title claims that writing about code improves writing code. The evidence most often tests the reverse, or tests producing code against watching it. Keeping four distinctions apart avoids most of the confusion:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Generating code versus watching or tracing someone else’s code.
  • Writing prose about code versus writing comments or reflections while coding.
  • Working with immediate feedback versus working without it.
  • A correlation between two skills versus an experiment that changes one of them.

Treating these as one intervention is the common error. A claim that “explaining code helps you learn to code” sounds equivalent to “producing code with feedback helps you learn to code,” but only the second has direct experimental support.

Learner differences matter more than method alone

A 2020 University of Washington report on novice Python learners, led by Chantel Prat and colleagues, found that language aptitude, fluid reasoning, working memory, and resting-state brain activity predicted learning better than numeracy did. Numeracy explained an average of 2% of differences in outcomes in that study. Prat also said that the combined measures explained more than 70% of the variability in how quickly learners picked up Python. That figure is her characterization of the study’s own measures, not a general law.

Prat put the implication this way: “Many barriers to programming, from prerequisite courses to stereotypes of what a good programmer looks like, are centered around the idea that programming relies heavily on math abilities, and that idea is not born out in our data.” That point concerns perceived prerequisites. It says nothing about whether writing helps.

For a writer, this means the same practice may help some learners more than others, and a single essay habit will not close every gap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to test the claim on your own work

If you want to know whether writing helps you, rather than assume it, a simple comparison will tell you more than any study summary:

  1. Pick one concept you already use daily and write a short explanation of it for a reader who knows the language but not your codebase.
  2. Before writing, list the edge cases and assumptions you believe the code handles. Keep the list.
  3. After writing, compare the list with the draft. Note each assumption that the draft made you state or question.
  4. Run every code example in the draft in a clean environment, and record each failure.
  5. For a comparison group, spend the same amount of time on a coding task with no article attached, and count the bugs you find in review.

Over a month of this, you will have a small, honest dataset about your own habits. It is still one person’s data, but it tests the claim directly, which the studies above do not.

What the evidence supports

The defensible version of the title is narrower than the title itself. Writing about code has, in my experience, exposed unstated assumptions, sharpened how I split problems, and made my examples run. Those are observations from one programmer. The controlled evidence we have says that producing code, ideally with feedback, is the stronger lever, and that programming habits can carry over into how people organize prose. The reverse path, from prose to better code, has not been tested directly.

If you write about code to get better at it, treat the writing as a way of checking your understanding, and keep most of your hours for the code itself.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.