返回首页

对比阅读

对比阅读:Prompts Aren't the Problem—Your Coding Workflow Is 与 Prompt 学了一堆,写代码还是只会'帮我实现':问题在工作流

AEN
JuejinPrompt EngineeringCode Review·

Prompts Aren't the Problem—Your Coding Workflow Is

A widely-read article on Juejin (nearly 100,000 views) surfaces a neglected fact: no matter how many prompts you've learned, most people still just throw "implement this for me" at the AI when writing code. What blocks people was never the difficulty of prompts—it's the lack of a stable workflow.

The three workflows (requirement breakdown, debugging, code review) share a common logic: AI is responsible for expanding the analysis scope, while developers confirm facts, make decisions, and complete acceptance. This is the key shift taking AI coding from "toy demo" to "team-usable."

What This Is

The article breaks a usable workflow into three parts: input context, phased collaboration, and output verification. The three specific workflows are:

Requirement Breakdown: When product throws only one sentence, first have AI list ambiguities, risks, and items to confirm, then break it down into a development task list with complete prompts attached.

Debugging: For production errors, don't just paste the error message. Provide expected results, actual results, key logs, and recent changes. Have AI rank root-cause hypotheses by likelihood, with minimal verification steps for each hypothesis.

Code Review: Don't just ask "is there a problem" with AI-generated code. Instead, check in layers—"functional correctness → permission/security → performance/concurrency → test coverage"—and output graded by "blocking / important / suggestion."

All three workflows share three principles: don't write code first; mark uncertain content as "to be confirmed"; any conclusion must come with evidence and a verification method.

Industry View

Supportive view: Workflow-driven approaches solve "AI coding always fails" better than prompt optimization, especially in team scenarios.

Counterarguments worth noting: First, all three workflows assume models reliably follow requirements, but in real enterprise deployment, models often skip clarification steps and jump straight to answers. Second, for teams of five or fewer, these workflows may be slower than direct communication. Third, long-term reliance on AI to think through problems weakens developers' own requirements-analysis capabilities.

Our judgment: The methods themselves are worth borrowing, but "which workflow fits which task" is the real threshold—something the article doesn't fully address.

Impact on Regular People

For enterprise IT: These three workflows can serve as the seed for internal AI usage standards. We recommend piloting in 1–2 projects first, then consolidating into SOPs (Standard Operating Procedures).

For individual professionals: Even for non-programmers, the mindset of "clarify first, then act; require evidence before concluding" applies to all AI collaboration scenarios.

For the consumer market: AI coding tools (Cursor, Trae, CodeGeeX, etc.) are shifting from "code completion" to "workflow embedding." Future tool selection will depend less on raw intelligence and more on workflow fit.

来源: juejin.cn
BZH
掘金Prompt工程代码审查·

Prompt 学了一堆,写代码还是只会'帮我实现':问题在工作流

掘金一篇近 10 万阅读的高赞文,道出了一个被忽略的事实:Prompt 学得再多,写代码时大多数人还是只会丢一句"帮我实现"——卡住大家的从来不是 Prompt 难度,而是缺一套稳定的工作流。

三个流程(需求拆解、故障排查、代码审查)的共同底层逻辑是:AI 负责扩展分析范围,开发者负责确认事实、做出决策并完成验收。这也是当前 AI 编程从"玩具演示"走向"团队可用"的关键变化。

这是什么

文章把一个可用工作流拆成三件事:输入上下文、分阶段协作、验证输出。三套具体流程是:

需求拆解:产品只丢一句话时,先让 AI 列出歧义、风险和待确认问题,再拆成开发任务清单,附完整 Prompt。

故障排查:线上报错不要只贴错误信息。要提供预期结果、实际结果、关键日志、最近变更,让 AI 按可能性排序根因假设,每个假设配最小验证步骤。

代码审查:AI 生成的代码不要直接问"有没有问题",而是按"功能正确性→权限安全→性能并发→测试覆盖"分层检查,按"阻断/重要/建议"分级输出。

三套流程共享三句话:先不要写代码;不确定的内容标记为待确认;给结论必须同时给证据和验证方法。

行业怎么看

支持声音:流程化比 Prompt 优化更能解决"AI 写代码总翻车"的问题,尤其在团队场景里。

反对意见值得留意:第一,三套流程都假设模型能稳定按要求输出,但企业实际部署中,模型经常跳过澄清步骤直接给答案;第二,对 5 人以下小团队,这套流程可能比直接沟通更慢;第三,长期让 AI 帮自己想问题,开发者自身的需求分析能力会被削弱。

我们的判断:方法本身值得抄,但"什么任务用哪个工作流"才是真门槛——这是文章没充分回答的地方。

对普通人的影响

对企业 IT:这三套流程可作为内部 AI 使用规范的雏形,建议先在 1-2 个项目试点,再总结成 SOP(标准操作流程)。

对个人职场:即使不是程序员,"先澄清再动手、要证据才下结论"的思路也适用于所有 AI 协作场景。

对消费市场:AI 编程工具(CURSOR、Trae、CodeGeeX 等)正在从"代码补全"走向"流程嵌入",未来选工具看的不再只是智能程度,而是流程契合度。

来源: juejin.cn