Live data from Hacker News

Prevent cognitive debt by manually retyping LLM-generated code

ankursethi.com

431–440 of 479 posts

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

#431

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.

Taking down the lesson/lecture does relatively little, you can do it on autopilot. If anything, it distracts from listening to the content. When I took computer science at university (mid naughties) we were given digital lecture notes anyway. (Mathematics lectures did have to be written down but there were no typed notes to start with so it was just out of necessity.) It's the exercises afterwards that are useful for…

> Taking down the lesson/lecture does relatively little

Not my experience.

> you can do it on autopilot

Huh, that sounds magically to me, I certainly can't. Actually taking notes down does the opposite, it forces you to get out of the autopilot, because you must think about the content.

Taking notes down, helps you learn better, because you use way more brain areas to process the information. Instead of just hearing, you need to hear it, understand it, try to rephrase it in your own words, use you motoric skills to write it down, and then see it and the placement of element on your page.

> we were given digital lecture notes anyway

Which you don't learn anything from, because by downloading you processed exactly none of the content yourself. Yeah they are way better to eventually search the information later on, if you already no the topic, but for learning you need to start with understanding it and structure it in your brain, which you would have already done for the first time, if you have taken notes.

> but there were no typed notes to start with so it was just out of necessity

The necessity was created by the teachers in order to get the students to learn. It didn't fell down from the sky.

> Or summarising notes in your words.

Which is what you do, if you take down notes. And that on a real time loop, so you can't slack down or miss something, because the information won't come again.

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

#432
post #305

Earlier quoted context omitted.

Am I the only one who enjoys taking notes? But more in the sense of recording knowledge so that I have it in perpetuity. For instance, I have almost completely forgotten how to solve ODEs, even though I had a good command of it when I learned it (by solving practice problems). In that sense, I wish that my prior self had taken good notes, so that I wouldn't have to dig up source material if I wanted to relearn it aga…

>In that sense, I wish that my prior self had taken good notes, so that I wouldn't have to dig up source material if I wanted to relearn it again. I don't really get it. If you've truly forgotten, you have to relearn it one way or another. What makes you think your past student self improvising a half-assed explanation in the moment could do better than a professional author who was already an expert when they wrote…

Because you never truly forget something. If you took effort to generate a rehash of your own mental brain model, first you will recognize it again and thus don't need to relearn everything, and second you already have it in your own brain model, instead of needing to invent it first from someone's else brain model.

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

#433

Earlier quoted context omitted.

> It was only with Claude Code that I realized I never actually enjoyed programming This is so real!

20 or 30 years ago, programming was reserved for people who were truly devoted to it, even when the work was a nightmare of difficulty. Now, when I talk to programmers in their 20s and 30s and ask which program they first fell in love with, there's usually no answer. I'm glad they've stopped pretending otherwise.

They fell in love with the money.

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

#434

Earlier quoted context omitted.

You are cooked if you think the end goal was the quality of the code and not the quality of the product.

You won't get a quality product built on sloppy code. Absolutely delusional if you think the two aren't related

lol Tell me you've never worked on legacy code without telling me.

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

#435

Earlier quoted context omitted.

You are cooked if you think the end goal was the quality of the code and not the quality of the product.

End-goal seems like making money in this line of thinking so I recommend spinning up some gambling racket or getting into finance, you don't need to program anyways. This is specifically what people pumping these ideas are doing as you can see like Sam Altman or Dario.

lol What?

No the end goal is providing value to the user. Why is this so hard to accept for people in this field?

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

#436
>Typing the code myself forces me to slow down, which means I'm more likely to detect hallucinations or bad design choices the LLM might have made.

I think this depends on your level of expertise with the task.

If I'm writing a language I am extremely familiar with and so second nature to me, for example SQL then I can instantly read llm code.

But if a new language or a new piece of software then llm generating huge amounts of code can make it difficult to improve yourself and also manage the quality.

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

#439

As someone who’s been programming for 20 years, I have to say that programming itself often causes a kind of brain rot. I’m very glad that I can now focus on other aspects of software development. It was only with Claude Code that I realized I never actually enjoyed programming—I enjoyed building things. You can live a perfectly mentally healthy life without programming.

I would say any programmer has found themselves so deep in the metaphorical woods that they forgot what they were actually trying to achieve in the first place. For example, you start because your boss told you to implement a new feature, but you realized there was no module you could place the feature in, then by looking at the existing module structure you realized it had become completely unsuitable in general, then you started trying to split some and rename others, then you noticed a circular dependency would appear if you didn’t add a third module between two you just split, and now all you can remember is that you’re fixing the circular dependency. The feature you were supposed to work on is a vague memory now.

I think this is a sort of brainrot which explains why a lot of times things take unjustifiably long to implement. LLMs can help so much with stuff like this if you know how to yield one. But it can also let you more quickly hang yourself if you don’t even care about “which modules even exist” ( to continue with my example).

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

#440

As someone who’s been programming for 20 years, I have to say that programming itself often causes a kind of brain rot. I’m very glad that I can now focus on other aspects of software development. It was only with Claude Code that I realized I never actually enjoyed programming—I enjoyed building things. You can live a perfectly mentally healthy life without programming.

How do you mean building things? To be honest, I don't get excited about most products that I'm working on - that is what the money is for. The enjoyment comes mostly from technological problem solving.
Post reply on HN