發現錯誤是好事
(轉載請注明來源于金慶的專欄)
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++
在設計時發現錯誤總比在編碼編譯時發現好。
在編碼編譯時發現錯誤總比在單元測試中發現好。
在單元測試中發現錯誤總比在調試中發現好。
在調試中發現錯誤總比在系統測試中發現好。
在系統測試中發現錯誤總比讓用戶發現好。
讓用戶發現錯誤總比沒有用戶好。