vibe-coding-cn/assets/documents/principles/philosophy/辩证法.md

29 lines
816 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 辩证法在 Vibe Coding 里的用法:正反合
把辩证法的“正反合”用到 Vibe Coding我把每次写代码都当一轮“三段论”。
## 正:当前状态(先跑通)
- 让模型按直觉快速给出“最顺的实现”
- 目标只有一个:尽快跑通主路径
## 反:审计与调优(再打脸)
- 立刻站在“挑刺者”视角反驳它
- 列出失败模式、边界条件、性能与安全隐患
- 用测试、类型、lint、基准把反驳落地
## 合:根据审核修正(再收敛)
- 把速度与约束合起来
- 重构接口、收敛依赖、补齐测试与文档
- 形成下一轮更稳定的起点
## 实践口诀
先顺写 → 再打脸 → 再收敛
## 一句话总结
Vibe 负责生成可能性,正反合负责把可能性变成工程确定性。