{"type":"note","slug":"the-mentor-you-didnt-have","title":"The Mentor You Didn't Have","summary":"Most of us learned to code alone. AI can offer what apprenticeship always did, if we use it to learn how the work is done instead of collecting answers.","kind":"essay","published_at":"2026-11-04T14:20:00-05:00","revised_at":null,"reading_minutes":5,"word_count":969,"series":null,"url":"https://waltspence.com/notes/the-mentor-you-didnt-have","short_url":"https://walt.im/JyXN1o2","links":{"html":"https://waltspence.com/notes/the-mentor-you-didnt-have","json":"https://waltspence.com/notes/the-mentor-you-didnt-have.json","txt":"https://waltspence.com/notes/the-mentor-you-didnt-have.txt","md":"https://waltspence.com/notes/the-mentor-you-didnt-have.md","canonical":"https://waltspence.com/notes/the-mentor-you-didnt-have"},"topics":[{"name":"Agents","slug":"agents","url":"https://waltspence.com/topics/agents"},{"name":"Writing","slug":"writing","url":"https://waltspence.com/topics/writing"}],"tags":[],"body_markdown":"Who taught you to plan a feature?\n\nI don't mean writing one. I mean the boring part, deciding what done looks like before you write a line and how you'll know it works.\n\nI've been writing code since '96 or '97 and I can't name anyone who showed me. I learned it like most self-taught people learn anything, by shipping something half broken and then working backward from the mess.\n\nIt left a gap, and I didn't notice it for twenty years.\n\nTrades used to be learned another way. You stood next to someone who already knew the work and watched. In 1989, Collins, Brown and Newman wrote about bringing that into schools and called it [cognitive apprenticeship](https://apps.dtic.mil/sti/pdfs/ADA178530.pdf). Their point was simple. You can see the finished work, but you can't see the decisions behind it. The expert has to work out loud, watch you try, and slowly do less of the helping.\n\nSelf-taught developers got docs, tutorials and a search box. When those ran out, we asked strangers on Stack Overflow, and that went about how you'd expect. I've had questions closed as duplicates of questions that weren't the same. I've been told I shouldn't do it that way, by people who never said what I should do instead.\n\nA lot of people stopped asking. By early 2025 the site was getting [fewer new questions a month than at any point since 2009](https://blog.pragmaticengineer.com/are-llms-making-stackoverflow-irrelevant/). The slide started around 2020, and ChatGPT sped it up. Amy Edmondson studied 51 work teams and found that people learn more when it feels [safe to take interpersonal risks](https://web.mit.edu/curhan/www/docs/Articles/15341_Readings/Group_Performance/Edmondson%20Psychological%20safety.pdf), like admitting a mistake or saying you're lost. Ask yourself whether a comment thread ever felt like that.\n\nI use AI almost every day now (mostly an agent working in my terminal). The code it writes matters less to me than the habits that rubbed off. Before it touches a file, it tells me what it's about to do.\n\nI asked for a short-link service for my domain and got a plan first, with how we'd know it worked, what it was allowed to spend, and what could go wrong with the DNS. I'd heard \"acceptance criteria\" for years. I'd never watched anyone use them on my own project.\n\nAnother time, a review caught a bug on my own site. A page title containing a closing `</script>` tag could break out of the structured-data block in the page header and inject a redirect. The fix was one line. Before it called the bug fixed, it wrote a test that publishes a note with that exact title and checks that no redirect shows up. I'd written tests for years. I'd never thought of one as a record of the exact attack it keeps out.\n\nSame with idempotency. I knew the word, but I didn't respect it until a review found that my content scripts would quietly re-hide posts I'd republished, if anyone ever re-ran them. Teams with senior people do this by default. I never had one, and at 2 a.m. there was nobody to ask why a fifth time without getting the eye roll.\n\nBut it screws up, and it sounds just as sure when it does.\n\nMy site has a chart drawn like a hypnodensity. That's the graph [neural-network sleep scoring](https://www.nature.com/articles/s41467-018-07229-3) produces, showing the odds of each sleep stage at every point in the night. The AI wrote a caption calling it \"how a sleep study is scored now.\" That's wrong. Clinical scoring still gives each [30-second epoch](https://pmc.ncbi.nlm.nih.gov/articles/PMC3525994/) one stage and draws a plain hypnogram. I've run more than 15,000 sleep studies and I read right past it, because it sounded right and I was reading like a student. A review of the site's content caught it, not me.\n\nThere's a name for that. A [2010 review of the research on automation bias](https://pubmed.ncbi.nlm.nih.gov/21077562/) found that experts fall for it as well as beginners, and that practice alone doesn't cure it. Aviation and medicine train people against it. In twenty-some years of software, I've never heard it mentioned.\n\nIf you want the mentor and not just the answers, ask different questions. Ask for the plan before the code. Then make it tell you what would sink the plan. When it fixes something, ask how you'd know, and get the test. If it uses a pattern you don't recognize, ask what it's called, then go read about it on your own.\n\nWherever you're the expert, check its work the way you'd check a new tech's first overnight study. Line by line.\n\nI spent years guessing, because asking was expensive. It isn't anymore. I'm learning faster now than I did in my twenties. What would you go learn if asking didn't cost you anything?\n\n## Sources\n\n- Collins, A., Brown, J. S., & Newman, S. E. (1989). \"Cognitive apprenticeship: Teaching the crafts of reading, writing, and mathematics.\" In L. B. Resnick (Ed.), *Knowing, Learning, and Instruction*, 453–494. [Earlier technical report](https://apps.dtic.mil/sti/pdfs/ADA178530.pdf).\n- Edmondson, A. (1999). \"[Psychological Safety and Learning Behavior in Work Teams](https://web.mit.edu/curhan/www/docs/Articles/15341_Readings/Group_Performance/Edmondson%20Psychological%20safety.pdf).\" *Administrative Science Quarterly* 44(2), 350–383.\n- Parasuraman, R., & Manzey, D. H. (2010). \"[Complacency and Bias in Human Use of Automation](https://pubmed.ncbi.nlm.nih.gov/21077562/).\" *Human Factors* 52(3), 381–410.\n- Stephansen, J. B., et al. (2018). \"[Neural network analysis of sleep stages enables efficient diagnosis of narcolepsy](https://www.nature.com/articles/s41467-018-07229-3).\" *Nature Communications* 9, 5229.\n- Rosenberg, R. S., & Van Hout, S. (2013). \"[The American Academy of Sleep Medicine Inter-scorer Reliability Program: Sleep Stage Scoring](https://pmc.ncbi.nlm.nih.gov/articles/PMC3525994/).\" *Journal of Clinical Sleep Medicine* 9(1), 81–87.\n- Orosz, G. (2025). \"[Are LLMs making StackOverflow irrelevant?](https://blog.pragmaticengineer.com/are-llms-making-stackoverflow-irrelevant/)\" *The Pragmatic Engineer*, 21 January 2025.\n","body_html":"<p>Who taught you to plan a feature?</p>\n<p>I don’t mean writing one. I mean the boring part, deciding what done looks like before you write a line and how you’ll know it works.</p>\n<p>I’ve been writing code since ’96 or ‘97 and I can’t name anyone who showed me. I learned it like most self-taught people learn anything, by shipping something half broken and then working backward from the mess.</p>\n<p>It left a gap, and I didn’t notice it for twenty years.</p>\n<p>Trades used to be learned another way. You stood next to someone who already knew the work and watched. In 1989, Collins, Brown and Newman wrote about bringing that into schools and called it <a href=\"https://apps.dtic.mil/sti/pdfs/ADA178530.pdf\">cognitive apprenticeship</a>. Their point was simple. You can see the finished work, but you can’t see the decisions behind it. The expert has to work out loud, watch you try, and slowly do less of the helping.</p>\n<p>Self-taught developers got docs, tutorials and a search box. When those ran out, we asked strangers on Stack Overflow, and that went about how you’d expect. I’ve had questions closed as duplicates of questions that weren’t the same. I’ve been told I shouldn’t do it that way, by people who never said what I should do instead.</p>\n<p>A lot of people stopped asking. By early 2025 the site was getting <a href=\"https://blog.pragmaticengineer.com/are-llms-making-stackoverflow-irrelevant/\">fewer new questions a month than at any point since 2009</a>. The slide started around 2020, and ChatGPT sped it up. Amy Edmondson studied 51 work teams and found that people learn more when it feels <a href=\"https://web.mit.edu/curhan/www/docs/Articles/15341_Readings/Group_Performance/Edmondson%20Psychological%20safety.pdf\">safe to take interpersonal risks</a>, like admitting a mistake or saying you’re lost. Ask yourself whether a comment thread ever felt like that.</p>\n<p>I use AI almost every day now (mostly an agent working in my terminal). The code it writes matters less to me than the habits that rubbed off. Before it touches a file, it tells me what it’s about to do.</p>\n<p>I asked for a short-link service for my domain and got a plan first, with how we’d know it worked, what it was allowed to spend, and what could go wrong with the DNS. I’d heard “acceptance criteria” for years. I’d never watched anyone use them on my own project.</p>\n<p>Another time, a review caught a bug on my own site. A page title containing a closing <code>&lt;/script&gt;</code> tag could break out of the structured-data block in the page header and inject a redirect. The fix was one line. Before it called the bug fixed, it wrote a test that publishes a note with that exact title and checks that no redirect shows up. I’d written tests for years. I’d never thought of one as a record of the exact attack it keeps out.</p>\n<p>Same with idempotency. I knew the word, but I didn’t respect it until a review found that my content scripts would quietly re-hide posts I’d republished, if anyone ever re-ran them. Teams with senior people do this by default. I never had one, and at 2 a.m. there was nobody to ask why a fifth time without getting the eye roll.</p>\n<p>But it screws up, and it sounds just as sure when it does.</p>\n<p>My site has a chart drawn like a hypnodensity. That’s the graph <a href=\"https://www.nature.com/articles/s41467-018-07229-3\">neural-network sleep scoring</a> produces, showing the odds of each sleep stage at every point in the night. The AI wrote a caption calling it “how a sleep study is scored now.” That’s wrong. Clinical scoring still gives each <a href=\"https://pmc.ncbi.nlm.nih.gov/articles/PMC3525994/\">30-second epoch</a> one stage and draws a plain hypnogram. I’ve run more than 15,000 sleep studies and I read right past it, because it sounded right and I was reading like a student. A review of the site’s content caught it, not me.</p>\n<p>There’s a name for that. A <a href=\"https://pubmed.ncbi.nlm.nih.gov/21077562/\">2010 review of the research on automation bias</a> found that experts fall for it as well as beginners, and that practice alone doesn’t cure it. Aviation and medicine train people against it. In twenty-some years of software, I’ve never heard it mentioned.</p>\n<p>If you want the mentor and not just the answers, ask different questions. Ask for the plan before the code. Then make it tell you what would sink the plan. When it fixes something, ask how you’d know, and get the test. If it uses a pattern you don’t recognize, ask what it’s called, then go read about it on your own.</p>\n<p>Wherever you’re the expert, check its work the way you’d check a new tech’s first overnight study. Line by line.</p>\n<p>I spent years guessing, because asking was expensive. It isn’t anymore. I’m learning faster now than I did in my twenties. What would you go learn if asking didn’t cost you anything?</p>\n<h2 id=\"sources\">Sources<a href=\"#sources\" aria-label=\"Link to heading 'Sources'\" data-heading-content=\"Sources\" class=\"anchor\"></a></h2>\n<ul>\n<li>Collins, A., Brown, J. S., &amp; Newman, S. E. (1989). “Cognitive apprenticeship: Teaching the crafts of reading, writing, and mathematics.” In L. B. Resnick (Ed.), <em>Knowing, Learning, and Instruction</em>, 453–494. <a href=\"https://apps.dtic.mil/sti/pdfs/ADA178530.pdf\">Earlier technical report</a>.</li>\n<li>Edmondson, A. (1999). “<a href=\"https://web.mit.edu/curhan/www/docs/Articles/15341_Readings/Group_Performance/Edmondson%20Psychological%20safety.pdf\">Psychological Safety and Learning Behavior in Work Teams</a>.” <em>Administrative Science Quarterly</em> 44(2), 350–383.</li>\n<li>Parasuraman, R., &amp; Manzey, D. H. (2010). “<a href=\"https://pubmed.ncbi.nlm.nih.gov/21077562/\">Complacency and Bias in Human Use of Automation</a>.” <em>Human Factors</em> 52(3), 381–410.</li>\n<li>Stephansen, J. B., et al. (2018). “<a href=\"https://www.nature.com/articles/s41467-018-07229-3\">Neural network analysis of sleep stages enables efficient diagnosis of narcolepsy</a>.” <em>Nature Communications</em> 9, 5229.</li>\n<li>Rosenberg, R. S., &amp; Van Hout, S. (2013). “<a href=\"https://pmc.ncbi.nlm.nih.gov/articles/PMC3525994/\">The American Academy of Sleep Medicine Inter-scorer Reliability Program: Sleep Stage Scoring</a>.” <em>Journal of Clinical Sleep Medicine</em> 9(1), 81–87.</li>\n<li>Orosz, G. (2025). “<a href=\"https://blog.pragmaticengineer.com/are-llms-making-stackoverflow-irrelevant/\">Are LLMs making StackOverflow irrelevant?</a>” <em>The Pragmatic Engineer</em>, 21 January 2025.</li>\n</ul>\n","revisions":[],"original_url":null,"related":[],"backlinks":[]}