最近有人來訊問了”你知道TDD是什麼嗎?”,所以這邊就對 TDD 做一下簡單介紹以及個人了解,方便新手去簡單理解,如果有錯,歡迎告知指證。
TDD,全名為 Test-driven development,中文翻譯 “測試驅動開發”,維基百科官方解釋
測試驅動開發是戴兩頂帽子思考的開發方式:先戴上實現功能的帽子,在測試的輔助下,快速實現其功能;再戴上重構的帽子,在測試的保護下,通過去除冗餘的代碼,提高代碼品質。測試驅動著整個開發過程:首先,驅動代碼的設計和功能的實現;其後,驅動代碼的再設計和重構。
維基百科
TDD 簡單介紹
你可以常常在敏捷開發中一併聽到,我自己的理解,TDD 這段解釋,可以把產品開發的週期,切割為兩個區塊,分別為前期發佈期與後期完善期。
前期發佈期
前期目標訂在能用最快的方式將產品發佈到市場,所以主軸定在功能有對就行,透過大量測試,去看缺少那些功能並逐一完善,已達用最快速的方式將產品推向市場。
後期完善期
這裡雖然用完善期來描素,但其實…稱之為還債期個人覺得比較貼切。
在產品開發上,原先流程都是規劃到執行,但因為前者是測試到執行,自然在架構上、安全性、程式代碼等,都構築了不少的技術債。
所以,這時會依據這些技術債與衍生問題,回頭梳理並重新規劃,使其重構後的產品能更加完善。
Binance - rejestracja
Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/pl/register?ref=FIHEGIZ8
Binance
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
binance earn
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Descuento en tarifas comerciales en gate.io
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
Đăng ký gate.io
Reading your article helped me a lot and I agree with you. But I still have some doubts, can you clarify for me? I’ll keep an eye out for your answers.
kripto para fiyat listesi
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
rebase nedir
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
bütün coinler
Very nice post. I just stumbled upon your blog and wanted to say that I’ve really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!