发现错误是好事
(转载请注明来源于金庆的专栏)
It's better to catch a bug at design time than at coding/compile time.
It's better to catch a bug at coding/compile time than during unit testing.
It's better to catch a bug during unit testing than during debug system testing.
It's better to catch a bug during debug system than in prerelease/beta system testing.
It's better to catch a bug during prerelease/beta system testing than have your customer catch one.
It's better to have your customer catch a bug than to have no customers.
--Matthew Wilson, Imperfect C++
在设计时发现错误总比在编码编译时发现好。
在编码编译时发现错误总比在单元测试中发现好。
在单元测试中发现错误总比在调试中发现好。
在调试中发现错误总比在系统测试中发现好。
在系统测试中发现错误总比让用户发现好。
让用户发现错误总比没有用户好。