Live data from Hacker News

Prevent cognitive debt by manually retyping LLM-generated code

ankursethi.com

331–340 of 479 posts

Re: Prevent cognitive debt by manually retyping LLM-generated code

#331

Not familiar with this term "cognitive debt" A debt implies repayment. But the loss here is not going to be repaid, it's permanent Perhaps a more appropriate term might be "cognitive deficit" or "cognitive loss"

It’s an extension of technical debt. They’re both bullshit in my opinion.

Re: Prevent cognitive debt by manually retyping LLM-generated code

#332
Also... if your workflow is "think hard, let LLM write it, read what AI wrote, think hard about what AI wrote, re-type what AI wrote, fix what AI wrote"...

Where in the heck are the efficiency gains? Couldn't you just drop the LLM part of it and save the company a trillion dollars in tokens?

Re: Prevent cognitive debt by manually retyping LLM-generated code

#335
post #44

I already wrote my opinion on this, which I don't think anyone read, but my idea is to let AI code the working system, and then prompt it to teach you, give you challenges, and grade your work. If you write, you should write in your own words, to demonstrate your own understanding - the so-called Feynman technique. Never verbatim. That's as true for coding as it is for study notes.

[dead]

Re: Prevent cognitive debt by manually retyping LLM-generated code

#336
post #329

So we are reduced to code monkeys mindlessly re-typing what an LLM wrote to increase potential understanding... Whatever this approaches, it is not a state of software engineering I find desirable.

I think some sort of visual paradigm is where we will end up. Something like Star Trek, where the system architecture and modules are visually represented in 3D space, and you see how the organization changes with realtime low-latency animation representing the changes as they are made. So you are still in control but just at a higher level. I see some prototypes and weak implementations of this sort of thing but surprised at how little is out there.

Re: Prevent cognitive debt by manually retyping LLM-generated code

#338
post #331

Not familiar with this term "cognitive debt" A debt implies repayment. But the loss here is not going to be repaid, it's permanent Perhaps a more appropriate term might be "cognitive deficit" or "cognitive loss"

It’s an extension of technical debt. They’re both bullshit in my opinion.

That's what I thought

Re: Prevent cognitive debt by manually retyping LLM-generated code

#339
I used to do this and called it "Coding with AI the Hard Way" in a nod to Zed Shaw: https://kamens.com/blog/code-with-ai-the-hard-way

I no longer do and blogged my updates for fear of being seen as a luddite:

https://kamens.com/blog/code-with-ai-the-hard-way-update https://kamens.com/blog/code-with-ai-the-hard-way-update-ii

Re: Prevent cognitive debt by manually retyping LLM-generated code

#340
A better interface for code review would be a pseudocode layer that sits on top of all of your code, at the editor level.

Basically it would convert all of the chunks of your code using an LLM to simple pseudocode with clickable symbols so you can follow function calls, definitions, then you could expand/collapse it to see the real underlying code.

Post reply on HN