什麼叫做"Code Complete"?
"Done" Is So Fuzzy
http://blog.abakas.com/2008/05/done-is-so-fuzzy.html
每次有engineers說他已經code complete了, 我都會很困惑. 因為甚麼是code complete, 你我之間的定義是很不一致的. Code complete是一個很模糊的的term, 因此常常就是出現意想不到的結果.
這裡是作者整理出, 他所知的code complete的可能狀況:
1. Feature Complete.
2. Feature Complete With Tests.
3. Feature Complete With Passing Tests.
4. Demo-able.
5. Release-able.
6. Perfect.
作者提到, 重點不在於有這麼多不同的定義, 而是在於你們是否有一致定義. 如果沒有, 那才是大問題
在公司內部, 我還有聽到另一種做法
Step 1. Feature Complete --> 達到50% code complete
Step 2. Feature Complete with Code Review --> 達到80% code complete
Step 3. Feature Complete with Code Review and Tests --> 達到100% code complete
之後QA便可以開始用這個build去做測試.
這裡可能只到前面2和3 之間的標準, 但是它定這個標準是要, 檢查是否code已經可以ready給QA做測試. 再加上它有用一些方法(code review and tests), 先做一些事先的檢查, 這樣會讓受測軟體的quality有基本的水準.
不知各位看倌, 你們的定義是什麼?
"Done" Is So Fuzzy
http://blog.abakas.com/2008/05/done-is-so-fuzzy.html
每次有engineers說他已經code complete了, 我都會很困惑. 因為甚麼是code complete, 你我之間的定義是很不一致的. Code complete是一個很模糊的的term, 因此常常就是出現意想不到的結果.
這裡是作者整理出, 他所知的code complete的可能狀況:
1. Feature Complete.
2. Feature Complete With Tests.
3. Feature Complete With Passing Tests.
4. Demo-able.
5. Release-able.
6. Perfect.
作者提到, 重點不在於有這麼多不同的定義, 而是在於你們是否有一致定義. 如果沒有, 那才是大問題
在公司內部, 我還有聽到另一種做法
Step 1. Feature Complete --> 達到50% code complete
Step 2. Feature Complete with Code Review --> 達到80% code complete
Step 3. Feature Complete with Code Review and Tests --> 達到100% code complete
之後QA便可以開始用這個build去做測試.
這裡可能只到前面2和3 之間的標準, 但是它定這個標準是要, 檢查是否code已經可以ready給QA做測試. 再加上它有用一些方法(code review and tests), 先做一些事先的檢查, 這樣會讓受測軟體的quality有基本的水準.
不知各位看倌, 你們的定義是什麼?
全站熱搜
留言列表