logoalt Hacker News

pif • today at 9:31 AM • 3 replies • view on HN

A couple days ago, I rejected my first PR written by AI.

My rationale was that I don't care what tool you use to write the code (AI, and IDE, ed, or ink and paper followed by an OCR) but you must understand the code and be able to sum it up in the PR. That's because we as a team, and you in particular as the author, must be able to maintain it. That PR, in particular, touched some code that may become the foundation of a new bug feature, and as such must be extremely well known by us.

If it was just CRUD, or graphical details, or automatic tests, none of that would have mattered.

Edit: that "bug feature" should have been "big feature", but I don't have the heart to change it XD


Replies

daemin • today at 10:20 AM

I would think that automated tests matter more in this agentic age, as how else can you verify that another pass of generated code hasn't screwed something up?

People have already given up trying to code review the generated changes.

➕ show 1 reply
lolive • today at 9:52 AM

That's why the planning part of the PR must be commited too. And AI can still help there. So a PR is done in two phase: validate the planning part first (can be a dedicated PR, that will eventually trigger the technical implementation in a second PR).

➕ show 2 replies
waterymelon • today at 9:39 AM

Not sure if done on purpose, but I like the Freudian "new bug feature" :)

➕ show 1 reply