Live data from Hacker News

Cognitive Debt: When Velocity Exceeds Comprehension

rockoder.com

111–120 of 234 posts

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#111
post #56

Earlier quoted context omitted.

Lucky you. I always go "huh, so I wrote this?". And this was in the pre-AI era.

These feelings aren't mutually exclusive. I'm often like "I have no memory of this place" while my name stares at me from git blame, but that doesn't mean my intuition of how it's structured isn't highly likely to be right in such cases.

Like a painter not remembering a specific stroke, but being able to recreate it instantly because of years of muscle memory.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#112

Code has become cheaper to produce than to perceive. Which means fixes can go in faster than it would require to first grok it What’s missing in literally every single one of these conversations is testing Literally all you have to do is implement test driven development and you solve like 99.9% of these issues Even if you don’t go fully TDD which I’m not a fan of necessarily having an extensive testing suite the cov…

There's another gap, actually. Imprecise specification. When you need to implement something yourself, you have to make decisions when faced with the reality of turning ideas into code. An AI agent sometimes surfaces these; and sometimes it just makes a choice. The risk is tests just embed these decisions as policy in code, without there have been proper consideration. Often there's a core ambiguity in a conception s…

I agree but this is captured in the higher order evaluation layer

So a poor specification is perfectly technically implemented won’t actually do what the intended goal is because the user has not correctly specified the goal and so ultimately it will fail at the highest level task if poorly specified

But that won’t necessarily reveal itself in code it would reveal itself in failure for other people to adopt or the user let’s say to adopt that tool for their workflow

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#113

And now programmers experience what is like to be a user, trying to comprehend the system on their computer screen. I propose a new paradigm: programmer experience, PX. So, code generated by AI ideally would follow the rules of PX. Whatever those may turn out to be.

Is this different from DX?

It should be, right? DX has other context.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#114
Richard Gabriel wrote a famous essay Worse Is Better (https://www.dreamsongs.com/WorseIsBetter.html). The MIT approach vs the New Jersey approach does not necessarily apply to the discussion of the merits of coding agent, but the essay's philosophy seems relevant. AI coding sometimes sacrifices correctness or cleanness for simplicity, but it will win and win big as long as the produced code works per its users' standards.

Also, the essay notes that once a "worse" system is established, it can be incrementally improved. Following that argument, we can say that as long as the AI code runs, it creates a footprint. Once the software has users and VC funding, developers can go back and incrementally improve or refactor the AI's mess, to a satisfying degree.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#115
post #52

Earlier quoted context omitted.

If I’m learning for the first time, I think it matters to hand code something. The struggle internalizes critical thinking. How else am I supposed to have “taste”? :) I don’t know if this becomes prod code, but I often feel the need to create like a Jupyter notebook to create a solution step by step to ensure I understand. Of course I don’t need to understand most silly things in my codebase. But some things I need t…

Almost anything I write in Python I start in jupyter just so I can roll it around and see how it feels- which determines how I build it out and to some degree, how easy it is to fix issues later on. With llm-first coding, this experience is lost

Yeah I do that too. I also teach training with Jupyter notebooks (ironically about agents). I still find it invaluable.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#116
post #35
post #9

The whole premise of the post, that coders remember what and why they wrote things from 6 months ago, is flawed. We've always had the problem that understanding while writing code is easier than understanding code you've written. This is why, in the pre-AI era, Joel Spolsky wrote: "It's harder to read code than to write it."

I recently did some work on a codebase I last touched 4 years ago. I didn't remember every line but I still had a very good grasp of how and why it's put together. (edit: and no, I don't have some extra good memory)

I definitely understand my own code better than what other people wrote, even from 10 years ago. I often see code and think "this makes sense to do it this way". Turns out I wrote it years ago.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#117

Richard Gabriel wrote a famous essay Worse Is Better ( https://www.dreamsongs.com/WorseIsBetter.html ). The MIT approach vs the New Jersey approach does not necessarily apply to the discussion of the merits of coding agent, but the essay's philosophy seems relevant. AI coding sometimes sacrifices correctness or cleanness for simplicity, but it will win and win big as long as the produced code works per its users' sta…

What definition of simplicity implies that it can be at odds with correctness?

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#118

Why wouldn’t you ask AI to explain the architecture and code? It’s much better and efficient than any human.

I just recently started using Claude Code seriously and I am surprised how well it understands even complex codebases and can explain not only what was done but also why. Really impressive and very useful. You just have to pray that it didn't hallucinate something

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#119
Nothing new here, but the article is so well written and clear in how it presents the effects that it is a must-read.

One could argue with its stance, but I took it as a given (the equation for cognitive debt touches on science).

It feels entirely logical to view LLMs/coding agents as an almost final step in the short-term focus the overall system has been thriving on.

Re: Cognitive Debt: When Velocity Exceeds Comprehension

#120
post #16

Management where I work is currently touting a youtube video from some influencer about the levels of AI development, one of the later ones being "you'll care that it works, not how". We are all supposed to be advancing through these levels. Moving at a pace where you actually understand the system you're responsible for is now considered a performance issue. But also, we're "still held responsible for quality". Need…

I think there will be some massive data breaches in the next few years in AI code.
Post reply on HN