跳到正文
原文
Hacker News · 首页· keyle·· 2026-10-18AI 评分38

资深开发者反驳先读懂代码再让 AI 动手的观点

The Brain Sandwich

AI 导读

一位资深软件开发者在 Hacker News 上反驳了在让 AI 动手前应先自己读懂代码的观点。他主张先让 AI 制定计划并探索代码库,自己同时处理其他对话,待计划就绪后再审查其系统设计是否合理,必要时追问 AI 以建立对系统的清晰理解。他指出,vibe coding 与高效 agentic 开发的区别在于开发者是否具备足够的专业判断力来确保软件构建得当。

正文

> Before you tell the agent to start building anything, you go there and read and understand it first.

The sentence is maybe ambiguous, but it sounds like it's saying to not use the AI at all until you understand what's happening in the area that needs to change.

I don't agree with this as you can spend quite a bit of time digging around to first find the correct place which needs to be updated and then more time reading the code (likely in multiple files or places) to build up a mental model of what's going on.

I typically have more than one AI conversation on the go at any given time, so I'll always start by asking it to make a plan to solve a problem and while it's busy exploring to make a plan I review some other AI conversation's work in the meantime, when the AI's plan is ready I review it.

If at this point there is anything that is unclear to me about its approach to implement the plan, or I don't already have familiarity with the part of the system it's proposing to update, I start questioning the AI on how the system works. I will scrutinize the AI's plan until I'm absolutely sure that it's going to implement something that is sound from a system design perspective and as a senior software developer with architecture level experience I am capable of making such judgments.

I'm not sure what it might be like for comparitively inexperienced developers, but I would expect that AI's capacity for infinite patience allows them to ask as many questions as they need to get a clear mental model of what's happening, so if I were mentoring such a person in this age of AI I would drill into them on how to interact with AIs to ensure they have this clarity before the AI starts implementing anything.

The difference between vibe coding and highly accelerated agentic development is having the expertise and judgment to ensure you're building properly sound software.

来源:Hacker News · 首页 · news.ycombinator.com