跳到正文
DEV Community· Martino quintas·· 4 小時前AI 評分39

IDE 的未來:當 AI 智能體編寫程式碼,誰來審核?

The Future of the IDE: When AI Agents Write the Code, Who Audits It?

AI 導讀

文章指出,AI 智能體承接編寫程式碼等工作,但閲讀、理解、核查程式碼及重現錯誤仍然耗時,IDE 的未來不應只聚焦於編輯器會否消失。作者曾接受未細讀的 412 行程式碼差異,之後才發現分頁功能出錯,問題 11 天後才被察覺。

正文

Martino quintas

A few months ago I caught myself accepting a 412-line diff without reading all of it. It wasn't laziness in the classic sense. I read the first sixty lines, they looked sensible, the code compiled, the tests passed, and I hit accept. Two weeks later I found out the agent had rewritten a pagination function so that the last page always returned the first item, repeated. Nobody noticed for eleven days. Me included, and I own the place.

I'm starting here because it's where the conversation about the future of the IDE should start, and rarely does.

The thesis going around is that the editor dies. If most code starts life as a sentence typed into a chat box, or as an agent running on its own in a terminal while you go get coffee, then what's the point of an editor with syntax highlighting, refactoring shortcuts and a file panel? I think the question is badly framed. Typing was never the bottleneck. Anyone who has spent a few years maintaining software they didn't write knows the time goes almost entirely into reading, understanding, distrusting, reproducing a bug and understanding it again. Agents attack the cheap part of the job and leave the expensive part untouched. Read more

來源:DEV Community · dev.to