高级第 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 节- 1Context Is The Whole Game35 分钟
- 2Pick The Right Brain, Pay The Right Price25 分钟
- 3Spec-Driven Development35 分钟
- 4Build Your Harness35 分钟
- 5Verification Loops: Make It Prove Itself40 分钟
- 6Reading Generated Code Like A Senior40 分钟
- 7Legacy Archaeology40 分钟
- 8Migrations At Scale40 分钟
- 9Debugging Code You Did Not Write40 分钟
- 10The Security Model Of An Agent40 分钟
- 11AI On A Team30 分钟
- 12Judgment: Knowing When Not To35 分钟
探索其他课程
Python
19 节 · 9.3小时
Go
20 节 · 12.3小时
React
17 节 · 10.2小时
Linux
17 节 · 8.5小时
Docker
13 节 · 6.6小时
Git
13 节 · 5.9小时
Kubernetes
14 节 · 8小时
Ansible
12 节 · 6.1小时
Bash
12 节 · 5.7小时
Helm
10 节 · 5.4小时
GitLab CI
11 节 · 5.8小时
Jenkins
11 节 · 5.3小时
PostgreSQL
14 节 · 7.6小时
MySQL
13 节 · 6.8小时
Web
14 节 · 5.9小时
TypeScript
18 节 · 7.7小时
Vibe Coding
12 节 · 5.8小时
Prompt Engineering
11 节 · 6.2小时
Vibe 编程:基础
12 节 · 4.5小时
Vibe 编程:从原型到生产
12 节 · 5.5小时
Vibe 编程:多智能体工程
12 节 · 5.3小时
