Live data from Hacker News

Prevent cognitive debt by manually retyping LLM-generated code

ankursethi.com

91–100 of 479 posts

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

#91
post #83

Earlier quoted context omitted.

> you don't learn from it Except that you do. Otherwise you could just sit in school or university and just listen and do nothing, but that way you just learn A LOT less, instead of taking down the lecture/lesson.

Even better would be to rewrite it by hand with a pen.

Yes some people teach C this way, for a little while, I don’t forget semicolons as much as people around me later seemed too, may or may not be related

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

#92
As others mentioned retyping is not fun. My approach is to let it write the code, but only in small portion. Not "implement this feature". But "open this file and make these changes". Each small change is easily reviewable and often times I end up asking it about better options and iterate a bit. Still feels like I'm in charge. Still feels like I'm learning stuff.

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

#93
post #31

This does not sound fun. It's better to work on your side projects with manual coding. You will learn more. Retyping things is inefficient for learning. It's like trying to retype calculus solutions — you don't learn from it. Even if there is an explanation of why the code is written in such a way, you did not come up with it, and you don't know alternative solutions. It is a practice for memorizing, not for building…

> you don't learn from it.

I strongly disagree. I used this strategy for learning how to reverse engineer and hook functions in a game with C++ and learned a ton.

I also used this strategy to learn Imgui and it worked great. Before LLMs I did this when learning from books too.

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

#94

Earlier quoted context omitted.

> Retyping things is inefficient for learning. It's like trying to retype calculus solutions Says who? You're saying this unequivocally like you have research that supports this. I used to re-write the notes I took for studying and it was like night and day for how well I did on tests. IT also gave me a chance to tighten the information I was receiving. And it's exactly what's happening here.

OC out here denying the actual learning and reinforcement research because of vibes

I had to re-read it a few times to make sure I was actually interpreting it correctly because I couldn't believe someone would make a claim like that for everyone.

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

#95

Earlier quoted context omitted.

Has this been your first hand experience? And if so, in what work, and have you tried debugging issues with SOTA models? From my experience it is certainly not the case that you cannot make progress after the first month. I work on native mobile applications.

I work on mobile native applications. Without an active harness (eg. Appium) that can end-to-end deterministically verify the changes you make continue to work correctly it is almost impossible to continue to keep the same pace on the app. Unsupervised LLMs (even fabel) are categorically incapable of running parallel unsupervised mobile app feature development. That is my personal, first hand experience working in a…

I have no idea what "an active harness" is referring to, Appium looks like a cross platform testing framework.

I doubt it brings any advantage over XCUITest here.

What is supposed to be the problem with parallel development? I use worktrees, and it works just fine with five agents in parallel.

Automated end-to-end testing on mobile is notoriously flaky, but that's nothing new, and I think it is now much easier to deal with.

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

#96
post #60

As someone who, at a point, would copy homework from someone else, copy book reports from online, and use the answer sheets to complete assignments, I can tell you this strategy is long known to accumulate and not prevent cognitive debt

> I can tell you this strategy is long known to accumulate and not prevent cognitive debt

When you say "long known" it sounds like this is established science. Is there a link you can share?

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

#98
post #90
post #31

This does not sound fun. It's better to work on your side projects with manual coding. You will learn more. Retyping things is inefficient for learning. It's like trying to retype calculus solutions — you don't learn from it. Even if there is an explanation of why the code is written in such a way, you did not come up with it, and you don't know alternative solutions. It is a practice for memorizing, not for building…

When I was learning to code at college, by myself (I did a Business degree), I bought a book on iOS development[0]. This book mandated that you type all the examples out line-by-line. I thought the idea was a pretty silly one, but I stuck with it because I didn't know what I was doing and wanted to learn. 14 years later, as a software engineer, I still think about that book and the way I can trace back a lot of my in…

Very much similar experience to yourself, when I was learning from YouTube tutorials I refused to copy/paste from their repos and instead typed everything out. Maybe changing variable names or structure.

I can definitely say it helped me learn a lot more than just blindly copy/pasting everything over.

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

#99
post #50

I don’t disagree with this if you code for a hobby. Buy if you code for a job, good luck justifying this to management. “Yeah Claude already gave me the solution, I’ll take the rest of the week to type it out”

I use LLM code for hobby/fun projects only (I also don't code for a living) and I still wouldn't want to type up the code it gives me. Instead what I dream of doing is one day to rewrite all the little things from scratch (well, with a blueprint of a working result). Your management wouldn't even talk to me, rightly so :P

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

#100
post #31

This does not sound fun. It's better to work on your side projects with manual coding. You will learn more. Retyping things is inefficient for learning. It's like trying to retype calculus solutions — you don't learn from it. Even if there is an explanation of why the code is written in such a way, you did not come up with it, and you don't know alternative solutions. It is a practice for memorizing, not for building…

I'll note this one down. I was under the impression that yes, retyping helps learning something about a language and architecture, but I found myself forgetting it after a while...

Trying it first sounds slower, but definitely better for cognitive training :)

Post reply on HN