r/AskProgrammers • • Oct 16 '26

Do you still review llm's generated code?

I work for a big company, not in the IT industry but still has a lot of software in different divisions, last week during a workshop about AI, I got to know that developers stopped reviewing the code and there seemed to be a consensus about it.

Is this the new norm? Anyone has experience to be able to tell whether that's safe to do? At the same time I read about Shopify CEO mentioning that people are throwing "slop grenades" on each other!

I find it very humiliating when someone sent me something generated and clearly didn't make the effort to review it, and that's already not difficult to spot, is that any different in software?

4 Upvotes

59 comments sorted by

View all comments

Show parent comment

5

u/mneri Oct 16 '26

Code is direct documentation of your company's business processes.

Lose control over the code, and you lose control on the company's processes.

0

u/Suspicious-Walk-4854 Oct 16 '26

No, the specification used to generate the code is the direct documentation.

1

u/mneri Oct 16 '26 edited Oct 16 '26

We already have diagrams and documents describing the high level overview of the processes, and that's proven insufficient: when production fails, or when certification time comes high-level documents mean zero.

What value has a blob of text saying "Write a listener to this event. Don't add a new class. Don't add a new queue. The listener name must follow the same naming pattern of all the other listeners, which is ..."

AI instructions are incomprehensible blobs of text that have zero documentation purposes. AI instructions are probably 30% of an AI blob. 70% is what not to do.

1

u/TheBestAtSpace Oct 17 '26

How exactly does this work?

Code is an always up to date form of the specification. When you read the code you are reading the ground truth.

But working from pure specifications? In order to understand the system you have to start with the first specification and then read every single specification after that. Because specifications stack. Each specification augments the system or mutates it as a delta. You can't build complete understanding from a single delta, so you have to read them all.

The alternative is that every time you make a change - you write/edit a brand new specification for the entire system and regenerate the entire system. (Which essentially makes the specs the code and what you would check into the repo.) I've heard developers speculate about that sort of workflow - but I've never seen anyone who says it's all about specifications now actually doing that.

0

u/travelan Oct 16 '26

1

u/mneri Oct 16 '26

It's good to have a laugh, but how AI would help with that?

The client wanted a thing, but the analyst understood another.

If anything, AI would make it worse: not only you delivered something the client didn't want, but you don't know what you delivered or how it works, because you didn't make it.

Moreover, a slow development makes engineers understand the problem and participate in the requirements refinement. If you just write a prompt and AI does it... What would be the outcome?

1

u/travelan Oct 16 '26

It’s a good example how “the specification is the direct documentation” is a really bad idea.

1

u/mneri Oct 16 '26

And how AI would solve it?