HN 精选

🚀 TDD, Where Did It All Go Wrong (Ian Cooper)

DevTernity Conference
11 人推荐 · 跨 11 个月 · 2018–2024
测试、调试与开发工具软件工程实践、开源与职业发展
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)

中文导读

Ian Cooper 在 DevTernity 上的破除迷思之作。他带大家重温 Kent Beck 的 TDD 初心,直指行业多年的误区:测试应该面向公共接口的行为契约,而非耦合内部实现细节,唯有这样测试才能成为重构的坚固后盾而非阻碍。

为什么 HN 推它

HN 程序员几乎人手一份的“测试救赎之作”;大量工程师直言正是这场演讲彻底重塑了他们对单元测试、Mock 与可重构架构的理解。

「这场神作彻底颠覆了我对写测试的认知,每个写测试的开发者都该立刻看一遍!」HN 网友原话:This excellent talk completely changed the way I approached testing. Every developer who writes tests needs to watch this now!
英文原摘要(HackerTube / Claude 整理)

Ian Cooper's DevTernity talk revisits Kent Beck's original TDD ideas and shows where misunderstandings crept in. It argues tests should target behaviors through public interfaces rather than implementation details, so suites support refactoring instead of resisting it.

HN repeatedly calls it the best talk on testing, and many say it changed how they approach tests, mocks and the meaning of a unit.

HN 上的提及

strong_rec macca321 · 2018-11 · HN 原文
please watch Ian Cooper's "TDD, Where Did It All Go Wrong
rec macca321 · 2018-11 · HN 原文
For those who want to know more about this approach: see Ian Cooper - TDD, Where Did It All Go Wrong
rec chriswarbo · 2019-05 · HN 原文
describes my own experiences with automated testing quite well.
rec benjiweber · 2019-05 · HN 原文
Recommend
strong_rec VHRanger · 2020-08 · HN 原文
The best talk on this topic, IMO is Ian Cooper: "TDD, Where did it all go wrong?

相关视频