EasyEnv
Vibe 编程:高级工程
高级第 3 / 12 节35 分钟 · 实操

Spec-Driven Development

Vibe 编程:高级工程 课程的一部分

想最快地从模型那里拿到正确的代码,办法是别再描述你想要什么,改成把它定义下来。一句提示词是一个愿望,一份规格说明 (spec) 是一份契约,而契约是可以核对的。本课要做的,就是把你平常只放在脑子里的那些东西,变成一份模型必须满足、而你一条命令就能验证的产物。

看看一个说得不够清楚的请求会招来什么。“给我写一个健壮的时长解析器”确实能产出点东西。它能处理 "5m",多半也能处理 "1h30m"。但它拿 "30m1h"、"1h1h"、"-5m"、"" 或者整数 90 怎么办,你不知道,更要命的是模型也不知道,于是它自己挑一个。它可能返回 None,可能返回 0,也可能从正则表达式深处抛出一个 TypeError。不管它挑了哪一种,单看都挺像回事,而你会在生产环境里才发现这个选择。 ...

想在真实环境里学习 Vibe 编程:高级工程 Spec-Driven Development 吗?

点击下方,立即获得一台预装 Vibe 编程:高级工程 的 Linux 主机,跟懂你代码的 AI 导师一起完成 Spec-Driven Development 的实操练习。

开始这节课Spec-Driven Development

你将学到什么

  • Writing the acceptance criteria before the prompt
  • Executable specs as the contract with the model
  • Specifying error behavior and boundaries, not just the happy path
  • Plan before code, and reviewing the plan instead of the diff

用你的语言阅读本课

本课程的所有课时

12 节
  1. 1Context Is The Whole Game35 分钟
  2. 2Pick The Right Brain, Pay The Right Price25 分钟
  3. 3Spec-Driven Development35 分钟
  4. 4Build Your Harness35 分钟
  5. 5Verification Loops: Make It Prove Itself40 分钟
  6. 6Reading Generated Code Like A Senior40 分钟
  7. 7Legacy Archaeology40 分钟
  8. 8Migrations At Scale40 分钟
  9. 9Debugging Code You Did Not Write40 分钟
  10. 10The Security Model Of An Agent40 分钟
  11. 11AI On A Team30 分钟
  12. 12Judgment: Knowing When Not To35 分钟

探索其他课程

Spec-Driven Development - Vibe 编程:高级工程 (Chinese) | Engineering Courses