Test-driven Development: By Example

Front Cover
Addison-Wesley Professional, 2003 - Computers - 220 pages
34 Reviews
This book brings - write clean code that works with the help of this software method; Begin to write automated tests that allow people to 'test on the fly', and learn to optimize the practice of refactoring; Example-driven teaching; Kent Beck's step-by-step instruction will have people using TDD to further your projects. Quite simply, test-driven development is meant to eliminate fear in application development. While some fear is healthy (often viewed as a conscience that tells programmers to 'be careful'), the author believes that byproducts of fear include tentative, grumpy, and uncommunicative programmers who are unable to absorb constructive criticism. When programming teams buy into TDD, they immediately see positive results. They eliminate the fear involved in their jobs, and are better equipped to tackle the difficult challenges that face them. TDD eliminates tentative traits, it teaches programmers to communicate, and it encourages team members to seek out criticism However, even the author admits that grumpiness must be worked out individually. In short, the premise behind TDD is that code should be continually tested and refactored. Kent Beck teaches programmers by example, so they can painlessly and dramatically increase the quality of their work.
 

What people are saying - Write a review

User ratings

5 stars
16
4 stars
12
3 stars
3
2 stars
3
1 star
0

User Review - Flag as inappropriate

Very good book to start TDD.

User Review - Flag as inappropriate

Very introductory. If you've never heard of TDD before this would be a good book. If you understand TDD, Part I will be rudimentary. Part's II and III will be a good reference.

Selected pages

Contents

MultiCurrency Money
3
Degenerate Objects
11
Equality for All
15
Privacy
19
Francly Speaking
23
Equality for All Redux
27
Apples and Oranges
33
Makin Objects
35
Cleaning Up After
101
Counting
105
Dealing with Failure
109
How Suite It Is
113
xUnit Retrospective
119
Patterns for TestDriven Development
121
TestDriven Development Patterns
123
Red Bar Patterns
133

Times Were Livin In
39
Interesting Times
45
The Root of All Evil
51
Addition Finally
55
Make It
61
Change
67
Mixed Currencies
73
Abstraction Finally
77
Money Retrospective
81
The xUnit Example
89
First Steps to xUnit
91
Set the Table
97
Testing Patterns
143
Green Bar Patterns
151
xUnit Patterns
157
Design Patterns
165
Refactoring
181
Mastering TDD
193
Influence Diagrams
207
Fibonacci
211
Afterword
215
Index
217
Copyright

Common terms and phrases

Popular passages

Page x - Write a little test that doesn't work, and perhaps doesn't even compile at first. 2. Green — Make the test work quickly, committing whatever sins necessary in the process.
Page xv - Thanks to all of my many brutal and opinionated reviewers. 1 take full responsibility tor the contents, hut this book would have been much less readable and much less useful without their help.

References to this book

All Book Search results »

About the author (2003)

Kent Beck consistently challenges software engineering dogma, promoting ideas like patterns, test-driven development, and Extreme Programming. Currently affiliated with Three Rivers Institute and Agitar Software, he is the author of many Addison-Wesley titles.



Bibliographic information