33 points luu 1 day ago 10 comments

sandinmyjoints 2 hours ago | parent

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?

starkd 1 hour ago | parent

If I'm following you correctly, I think you mean that AI usage moves you from the latter to the former category. You listed the categories as recognition vs. recall. So AI usage would encourage more recognition than recall.

glouwbug 1 hour ago | parent

AI certainly cheapened what all those guys in slack did writing multi paragraph responses to show off their oracle level expertise before 2023 rolled around

sandinmyjoints 4 minutes ago | parent

Yes, my mistake—swapped former and latter!

discreteevent 1 hour ago | parent

> 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.

starkd 1 hour ago | parent

Why are you so hostile?

popkkksidhd 41 minutes ago | parent

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.

mjb 9 minutes ago | parent

> Code is much more efficient to read than English

I think this is true "in the small", but unless the code is uncommonly well structured isn't generally true as code bases get larger. For example, if you started reading the Postgres or MySQL code, it would take a great deal of reading and understanding to get to where you understood where and when this property applies.

If I just wanted to state the property crisply, using some kind of formalism could help. But in non-trivial systems code doesn't appear to be a crisp statement of many of its properties (in general, some languages and domains get closer than others).

I also learned a great deal writing a relational database (and then helping build parts of two really big ones), and a great deal from reading others code in this domain. But the code tends to be very low 'density' when seen as a mapping from implementation to customer-desirable properties.

zamalek 30 minutes ago | parent

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.

zzzeek 26 minutes ago | parent

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?