紀錄工作經驗、相關知識,解決技術相關問題。

資訊相關

TDD 是什麼

最近有人來訊問了”你知道TDD是什麼嗎?”,所以這邊就對 TDD 做一下簡單介紹以及個人了解,方便新手去簡單理解,如果有錯,歡迎告知指證。

TDD,全名為 Test-driven development,中文翻譯 “測試驅動開發”,維基百科官方解釋

測試驅動開發是戴兩頂帽子思考的開發方式:先戴上實現功能的帽子,在測試的輔助下,快速實現其功能;再戴上重構的帽子,在測試的保護下,通過去除冗餘的代碼,提高代碼品質。測試驅動著整個開發過程:首先,驅動代碼的設計和功能的實現;其後,驅動代碼的再設計和重構。

維基百科

TDD 簡單介紹

你可以常常在敏捷開發中一併聽到,我自己的理解,TDD 這段解釋,可以把產品開發的週期,切割為兩個區塊,分別為前期發佈期與後期完善期。

前期發佈期

前期目標訂在能用最快的方式將產品發佈到市場,所以主軸定在功能有對就行,透過大量測試,去看缺少那些功能並逐一完善,已達用最快速的方式將產品推向市場。

後期完善期

這裡雖然用完善期來描素,但其實…稱之為還債期個人覺得比較貼切。

在產品開發上,原先流程都是規劃到執行,但因為前者是測試到執行,自然在架構上、安全性、程式代碼等,都構築了不少的技術債

所以,這時會依據這些技術債與衍生問題,回頭梳理並重新規劃,使其重構後的產品能更加完善。

16 留言

  1. 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!

  2. 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!

  3. 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!

  4. 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.

  5. 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!

  6. Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  7. Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  8. Your article helped me a lot, is there any more related content? Thanks! https://accounts.binance.com/pl/register?ref=FIHEGIZ8

  9. sizde heets uygun fiyatlardan satin alabilirsiniz.

  10. sizde uygun fiyatlardan heets satin alin.

  11. sms onay hizmetine sitemizden göz atabilirsiniz.

  12. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://www.binance.com/zh-TC/register?ref=DB40ITMB

  13. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/id/register-person?ref=JHQQKNKN

  14. sizde hemen kuşadası escort bayan sayfasına göz atabilirsiniz.

  15. hızlıca tıkla ve sevgiyi gör

  16. kaliteli yerli escort bulmak için tıklaman yeterli olacaktır sadece

發表迴響