Search Images Maps Play YouTube News Gmail Drive More »
My library | Help | Advanced Book Search | Web History | Sign in

Books

Test Driven Development:

By Example
Front Cover
65 Reviews
Addison-Wesley Professional, 2003 - Computers - 220 pages

Clean code that works--now. This is the seeming contradiction that lies behind much of the pain of programming. Test-driven development replies to this contradiction with a paradox--test the program before you write it.

A new idea? Not at all. Since the dawn of computing, programmers have been specifying the inputs and outputs before programming precisely. Test-driven development takes this age-old idea, mixes it with modern languages and programming environments, and cooks up a tasty stew guaranteed to satisfy your appetite for clean code that works--now.

Developers face complex programming challenges every day, yet they are not always readily prepared to determine the best solution. More often than not, such difficult projects generate a great deal of stress and bad code. To garner the strength and courage needed to surmount seemingly Herculean tasks, programmers should look to test-driven development (TDD), a proven set of techniques that encourage simple designs and test suites that inspire confidence.

By driving development with automated tests and then eliminating duplication, any developer can write reliable, bug-free code no matter what its level of complexity. Moreover, TDD encourages programmers to learn quickly, communicate more clearly, and seek out constructive feedback.

Readers will learn to:

  • Solve complicated tasks, beginning with the simple and proceeding to the more complex.
  • Write automated tests before coding.
  • Grow a design organically by refactoring to add design decisions one at a time.
  • Create tests for more complicated logic, including reflection and exceptions.
  • Use patterns to decide what tests to write.
  • Create tests using xUnit, the architecture at the heart of many programmer-oriented testing tools.

This book follows two TDD projects from start to finish, illustrating techniques programmers can use to easily and dramatically increase the quality of their work. The examples are followed by references to the featured TDD patterns and refactorings. With its emphasis on agile methods and fast development strategies, Test-Driven Development is sure to inspire readers to embrace these under-utilized but powerful techniques.



0321146530B10172002
  

What people are saying - Write a review

User ratings

5 stars
28
4 stars
20
3 stars
13
2 stars
4
1 star
0

Review: Test Driven Development: By Example

User Review  - Amp Tanawat - Goodreads

Its greatness is even one who never do TDD before can start with it and end with clear understanding. Read full review

Review: Test Driven Development: By Example

User Review  - Brian - Goodreads

This canonical introductory book gives the reader the basis for a lot of modern TDD principles, although Beck does get sidetracked at times (read: skip the chapter on design patterns--they're better learned elsewhere). Read full review

All 34 reviews »

Related books

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

Other editions - View all

Common terms and phrases

References to this book

From other books

Human Aspects of Software Engineering
Unit Testing in Java: How Tests Drive the Code
All Book Search results »

From Google Scholar

Assessing Test-Driven Development at IBM
E Michael Maximilien, Laurie Williams
On the Effectiveness of the Test-First Approach to Programming
2005 - IEEE TRANSACTIONS ON SOFTWARE ENGINEERING
Test-Driven Development as a Defect-Reduction Practice
Laurie Williams, E Michael Maximilien, Mladen Vouk - Proceedings of the 14th International Symposium on Software Reliability Engineering (ISSRE’03)
All Scholar search results »

References from web pages

Pearson - Test Driven Development: By Example
Test Driven Development: By Example, Kent Beck. ISBN-10: 0321146530 ISBN-13: 9780321146533. Publisher: Addison-Wesley Professional Copyright: 2003 ...
www.pearsonhighered.com/ educator/ academic/ product/ 0,3110,0321146530,00.html

O'Reilly - Safari Books Online - 0321146530 - Test-Driven ...
0321146530 - Test-Driven Development By Example - Clean code that works--now. This is the seeming contradiction that lies behind much of the pain of ...
safari.oreilly.com/ 0321146530?suggested=top

Software Development :: Vancouver - Toronto, Canada
Title, Test-Driven Development: By Example. Author, Kent Beck. Published, Nov 2002 by Addison-Wesley (www.aw.com). ISBN, 0-321-14653-0 ...
www.softwaredevelopment.ca/ review/ 0321146530

"Test-Driven Development - A Practical Guide" by David Astels and ...
"Test-Driven Development - A Practical Guide" by David Astels and "Test-Driven Development By Example" by Kent Beck. June 14, 2006 ...
www.rossenstoyanchev.org/ write/ books/ tddbooks.html

Test-Driven Development by Example - Wikipedia, the free encyclopedia
Test Driven Development: By Example is a book about a software development technique by Kent Beck. Beck's concept of test-driven development centers on two ...
en.wikipedia.org/ wiki/ Test-Driven_Development_by_Example

Test Driven Development
Test Driven Development: By Example. Purchase this Book · Purchase this Book. Source. Pages: 176. Medium: Paperback. Year of Publication: 2002 ...
portal.acm.org/ citation.cfm?id=579193

IBM Press - 0321146530 - Test-Driven Development By Example
0321146530 - Test-Driven Development By Example - Clean code that works--now. This is the seeming contradiction that lies behind much of the pain of ...
safari.ibmpressbooks.com/ 0321146530/ copyrightpg

Journal of spur (4197)
Book review: "Test driven development by example", Kent Beck. [ #29009 ]. Kent Beck is one of the most known proponents and "spreaders" of extreme ...
use.perl.org/ ~spur/ journal/ 29009

Test-driven development : by example by Kent Beck | librarything
All about Test-driven development : by example by Kent Beck. librarything is a cataloging and social networking site for booklovers.
www.librarything.com/ work/ 4004

Introducing Test-Driven Software Development
Test-Driven Development: By Example by. Kent Beck, Addison-Wesley, 2003, ISBN 0-. 321-14653-0, 220 pp., US$29.99. T. here are really two things to review ...
csdl.computer.org/ comp/ mags/ so/ 2004/ 06/ s6100.pdf

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