rabbithawk256 ·
So, if you're struggling with something, why not let AI do it?

I’m a pretty shit programmer. It’s not something I do often - my expertise is more in the frontend, as you can see here.

But being bad at programming comes at a twofold cost; I’m also bad at reading code.

When I was learning to program, back in secondary school, I was taught using a website called Khan Academy.

And it, along with the official Svelte tutorials, have a feature that seems pointless at first; they disable copy-paste.

I was annoyed at first, back in Year 10, that I couldn’t just copy the code from the tutorial into the REPL - it was there already, so why do I have to rewrite it!?

As it turns out, though, actually writing down the code is so much more important than it seems, because you’re actually writing down each token by hand - committing the code to memory, and building a mental map over time.

The same applies with using AI-generated code. It’s not mine, I didn’t write it, so I can’t understand it; that mental map that would come from writing the code yourself just never gets built.

I’m not saying AI code is low-quality; that’s out of scope here. I’m saying that I can’t build upon the aforementioned code, because I can’t read it. The understanding is gone.

A similar issue occurs if I copy-paste code from sites like StackOverflow; but those are usually small snippets, and not entire functions, so the issue isn’t that bad.