操盘手年鉴The Operators’ Almanac
AI · IN · 284

原型代码即弃

Prototype Code Is Throwaway · prototype-code-is-throwaway--colin-matthews
AI 与新工作方式 洞察 AI 时代 2025-06 Colin Matthews ✓ 已核验出处
所属簇 原型驱动开发

解决什么问题

破除一个常见误解:"PM 用 AI 做的原型已经有代码了,工程拿去改改就能上线,开发会更快。"

核心内容

  • AI 原型工具生成的代码对工程团队基本无用:不遵循代码库的既有模式、不用相同的库、甚至可能不是同一种编程语言。原型的价值在沟通,不在代码。
  • 两个例外
    1. 组件库本身就是用公司真实代码构建的(Code 路线),代码可衔接;
    2. 记录精确交互——如果加载动画就要原型里那个效果,工程可以拿原型代码当实现起点。
  • 排期推论:不要因为"已有原型"而压缩工程估时——原型不影响开发时长,该 2-6 周还是 2-6 周。原型省的是"决定做什么、长什么样"的时间,不是"写生产代码"的时间。

适用边界

针对 v0/Bolt/Lovable/Magic Patterns 这类云端原型工具的产物;如果原型本来就在真实代码库里做(Cursor + mock API 入口),则不适用。

关键引述 · 原话

"It's important to remember that the code generated by AI prototyping tools is mostly useless to your engineering team (unless your components are built using your existing code)." — Colin Matthews

关联卡片

- `prototype-fidelity-pdlc-map--colin-matthews` 第 5 阶段的展开 - `component-library-three-methods--colin-matthews` 的 Code 方法是规避此问题的路径

被这些卡引用

出处Colin Matthews (Tech for Product, AI 原型课程讲师,前 PM) · 02-newsletters/how-to-get-your-entire-team-prototyping-with-ai.md
提炼自 Lenny Rachitsky 的 Lenny’s Newsletter & Podcast(2019–2026)。本站为个人学习用途的二次创作,与 Lenny’s Newsletter 无官方关联。
provenance · 已核验 · glm-5.2