Test-Driven Development: By Example (Paperback)

Kent Beck

買這商品的人也買了...

商品描述

Test-driven development (TDD) is a new approach to application development that is designed to eliminate the fear often associated with building software. Admittedly, some fear is healthy (often viewed as a conscience that tells programmers to “be careful!” ), but the author believes that programmers build better software when they have the freedom to be creative. By building tests before coding begins, programmers ensure the success of their application from the outset. Students are more likely to achieve positive results with TDD. The author's example-driven approach also teaches students to be better communicators, and encourages team members to seek out constructive criticism.

Table of Contents

Preface.
Acknowledgments.
Introduction.

I. THE MONEY EXAMPLE.

1. Multi-Currency Money.
2. Degenerate Objects.
3. Equality for All.
4. Privacy.
5. Franc-ly Speaking.
6. Equality for All, Redux.
7. Apples and Oranges.
8. Makin' Objects.
9. Times We're Livin' In.
10. Interesting Times.
11. The Root of All Evil.
12. Addition, Finally.
13. Make It.
14. Change.
15. Mixed Currencies.
16. Abstraction, Finally.
17. Money Retrospective.

II. The xUnit Example.

18. First Steps to xUnit.
19. Set the Table.
20. Cleaning Up After.
21. Counting.
22. Dealing with Failure.
23. How Suite It Is.
24. xUnit Retrospective.

III. Patterns for Test-Driven Development.

25. Test-Driven Development Patterns.
26. Red Bar Patterns.
27. Testing Patterns.
28. Green Bar Patterns.
29. xUnit Patterns.
30. Design Patterns.
31. Refactoring.
32. Mastering TDD.
Appendix I: Influence Diagrams.
Appendix II: Fibonacci.
Afterword.

商品描述(中文翻譯)

測試驅動開發(TDD)是一種新的應用程式開發方法,旨在消除常常與軟體建置相關的恐懼感。誠然,一些恐懼是健康的(通常被視為告訴程式設計師「要小心!」的良心),但作者認為當程式設計師有創造的自由時,他們能夠建構更好的軟體。通過在編碼之前建立測試,程式設計師確保了他們的應用程式從一開始就能成功。學生們更有可能在TDD中取得積極的成果。作者的以範例驅動的方法也教導學生成為更好的溝通者,並鼓勵團隊成員尋求建設性的批評。

目錄

前言
致謝
引言

第一部分:金錢範例
1. 多貨幣金錢
2. 退化物件
3. 全等性
4. 隱私
5. 說法不一的法郎
6. 全等性,重啟
7. 蘋果和橘子
8. 創造物件
9. 我們生活的時代
10. 有趣的時刻
11. 一切邪惡的根源
12. 最後的加法
13. 創造它
14. 變更
15. 混合貨幣
16. 最後的抽象
17. 金錢回顧

第二部分:xUnit範例
18. 走向xUnit的第一步
19. 準備好了
20. 清理
21. 計數
22. 處理失敗
23. 多好的套件
24. xUnit回顧

第三部分:測試驅動開發的模式
25. 測試驅動開發模式
26. 紅燈模式
27. 測試模式
28. 綠燈模式
29. xUnit模式
30. 設計模式
31. 重構
32. 精通TDD
附錄一:影響圖
附錄二:費波那契數列
後記