Prevent cognitive debt by manually retyping LLM-generated code

38 points by abhin4v


addison

Hey, former CS teacher here. In addition to being somewhere in the middle for speed, you are also likely somewhere in the middle for understanding. The actual benefits of writing it out versus manifesting it yourself are quite diminished in my experience with students doing the same. Generally, I observed students having more success by reading the example, understanding it, then replicating it independently. This is still at the loss of building intuition for planning out your own solution, but if you're going to use these tools regardless, that might also help.

That all being said, this excerpt gives me a modicum of hope:

If I don't understand an API or algorithm, I can stop to look it up, or just ask the LLM to explain it.

While I think this exercises a different brain muscle than the original programming practice, it indicates critical engagement that will still help you learn from the experience. Nevertheless, you will eventually fall into classical human traps (normalisation of deviance, alert fatigue, etc.) that will reduce your efficacy in this eventually.

(Used to such posts being submitted by authors. Feel free to replace 2nd person pronouns with 3rd :p)

emk

"Cognitive debt" is real. As someone who wants to understand what LLMs can do, I have been putting each new generation through its paces for a few years now. (Mostly on a backlog of minor utility projects that I want to use but don't especially feel motivated to write. I have cooler things to write myself.) And what I noticed was a clear generational picture:

Now, personally, I'm not going to start retyping LLM code. I can type code really fast with modern IDE tooling. And if you give me a few-lines-at-a-time completion model like Zed's Zeta2, I can go faster still. (Zeta2 will autocomplete a few lines of boilerplate but only if it's really predictable.) So if I'm going to type the code at all, I'll write it myself. My main personal use case for LLMs is "that code is basically boring and predictable and I don't wanna type it all out."

But I agree that the trend line around cognitive debt is pretty worrisome, and that the incentives all point towards taking the human further out of the loop. This is a WALL-E future we're looking at, folks. And I don't blame programmers for being horrified by it. I certainly am.

But the Fall 2025/Sonnet 4.5 class models were really interesting, in terms of cognitive debt. You know that saying that "the best way to really learn something is to teach it to someone else?" A Sonnet 4.5-class LLM was sort of an eternal student that never actually learned anything.

For the local LLM crowd, the people who want MIT-licensed weights and a whole stack they control from end-to-end, here's how I'd classify the top local models as of this week:

I am honestly struggling to care about whatever Anthropic and OpenAI are up to this week. Sure, they're the only shop in town if I want the "full WALL-E experience", complete with float chairs and giant sodas, or if I want entire custom Android apps built while I'm in the kitchen. But the mid-tier MIT-licensed weights are good enough for a wide range of work. Or maybe they're even already too good if you're worried about cognitive debt.

I also think we're reaching the point where ideologically-driven free software projects that do allow AI should be seriously thinking about MIT-licensed weights and free software harnesses. Outsourcing everything to Anthropic or ChatGPT is starting to feel far too much like outsourcing everything to Microsoft in the 90s.