logoalt Hacker News

What does it mean to understand what we built?

45 points • by luu • last Sunday at 1:34 AM • 18 comments • view on HN

Comments

sandinmyjoints • yesterday at 10:44 PM

I have been doing some research on different kinds of understanding.

Language learning has notions of receptive vs. productive knowledge. Receptive knowledge lets someone read or listen and understand. Productive knowledge lets them speak or write. Learners can typically understand far more than they can produce.

Memory psychology has recognition vs. recall. Recognition means identifying the right answer when it's in front of you, as on a multiple-choice test. Recall means producing it from nothing. Recognition is consistently easier.

Some sociologists have what they call interactional vs. contributory expertise. Interactional expertise is the ability to talk fluently about a field, follow its debates, and judge work plausibly. Contributory expertise is the ability to actually do the work.

There's no question that as I use AI more, I move from the former category to the latter category when it comes to coding. The thing I'm trying to prevent with AI usage is making that same move with the whole system. But is prompting sufficient as the mechanism of production / recall / actually doing the work?

➕ show 1 reply
popkkksidhd • today at 12:09 AM

Code is much more efficient to read than English. Unless we want to leave understanding to the LLM, it’s simply more efficient to read the code than read the markdown.

> Precise properties like “a SELECT never shows results from uncommitted transactions”

I never really understood a relational database until I wrote one. I still don’t, but I now understand a lot more than I did.

➕ show 2 replies
zamalek • today at 12:20 AM

I joined a company who is attempting to use AI with eyeballs on it - no software factory kool-aid: human+AI builds it, human+AI review it. This means I ultimately have to learn the entire codebase in order to review it.

What I've found is that, even with human-supervised AI, the codebase is drastically less organized than what a human alone would have done. For example, there's a piece of code that does a kind of budget recommendation across a few steps, and I recently reviewed changes to it - the AI was interspersing functions all over the place, which makes the code seem organized (especially to someone deeply familiar with it already). To a newcomer, the call graph is all over the place and following it was extremely taxing. I bailed and asked for a refactor into a strategy pattern and, guess what, more lines removed than added; everything drastically clearer.

AI doesn't have good taste, and doesn't care about the next thing (human or silicon) that has to touch the codebase. My point is that it's really easy, even with the best intentions, to let AI turn something into a mess that can't be understood.

➕ show 2 replies
andai • today at 1:36 AM

>I believe that the goal of understanding code is, longer-term, holding us back from understanding what matters. I’m excited about the possibilities of what we can understand better when we are freed from understanding code, and can focus on other things.

This annoyed me, but does seem true. In fact, it reminded me of something I was thinking earlier today. I often notice (most commonly at supermarkets) that humans have spatial awareness inferior to that of any animal. The best explanation I can come up with is that the brain is fully preoccupied with something else ─ presumably on the mental plane ─ and there isn't any "CPU" (neural bandwidth?) left for actual perception.[0]

See also: https://xkcd.com/1796/ especially the title text,

>Maybe if I spin it back and forth really fast [between Detail-Oriented and Big Picture] I can do some kind of pulse-width modulation.

[0] Re total identification with the contents of the mental plane: https://en.wikipedia.org/wiki/Simulacra_and_Simulation

hexapus • today at 1:40 AM

I appareciate the nuanced take of the anti-slop manifesto. We'll just have to see if that mindset takes hold, and what sort of mechanisms can be built to hold companies accountable for their use of LLMS.

Hopefully something more robust than just reputation and word-of-mouth. Responsible AI-usage audits/certifications would serve a dual-purpose of transparency and forcing everyone to slow the fuck down.

vcryan • today at 1:31 AM

This article is well said. Code is a means to an end. It should certainly do what it's intended to do. But "what it is intended to" matter, the code could have been written in any number if platforms/architectures/etc - that often doesn't matter which - just that we can measure that we're getting what we expect.

zzzeek • today at 12:24 AM

im starting to agree that we will slowly move beyond "code". For my part, I mostly dont care too much about tracts of imperative code inside of functions, unless im particularly concerned about elegance and/or performance as the code in question is super important. but a lot of other code I dont need to look at at all. Agents write tons of bash scripting all over the place, and I hardly look at any of it. (Bash was always unpleasant).

But even for vibe coded things, I still look at the overall structure and cyclomatic complexity of the thing and try to keep that under control. I ask the robot to break things into packages, to use class hieararchies instead of if/else blocks, things like that. but only sometimes, for code I expect to keep around a long time.

the bigger thought is that these things can write 200k pages that "prove" the riemann hypothesis. for the past few days I can only think of the idea of ancient builders having hundreds of workers dig into ground with shovels, vs. a modern skyscraper whose foundation is dug with giant machines. Having human strength to lift 300 pounds is impressive but not necessary. Similarly, intellectual tasks that require holding of tons of context at once, e.g. math and programming, the machines are built for this, we're not. What kind of modern skyscrapers can we build assuming all of our current software is just ancient pyramids and coliseums?

➕ show 1 reply
discreteevent • yesterday at 11:14 PM

> I believe that the goal of understanding code is, longer-term, holding us back from understanding what matters.

And then goes on to say that understanding needs to be redefined as things like "makes the users life better"

That's not understanding. You're in AI. You've won the world. Why can't you be happy with that? Stop fucking around with language in an effort to corral even more of it and so make it useless to the rest of us.

If AI is so great then you wouldn't need to redefine language to lower the bar for it.

➕ show 1 reply