Test-Driven Development: By Example
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
220 pages, 4 editions
English edition · First published 2002 by Addison-Wesley · ISBN 9780137585281
Readers also shelved
Big Little SpellsHazel Beck
Come Out, Come Out, Wherever You Are: An Erotic Horror StoryHarleigh Beck
Conjure: A Paranormal Erotic HorrorHarleigh Beck
DornJan Beck
Dragon Fires Everywhere (Witchlore, #4)Hazel Beck
Empire of LiesJ. L. Beck · 4Be the first to rate this book
Editions
4 editions
English
- Test-Driven Development: By Example · Addison-Wesley · 2003 · ISBN 9780137585281 This page
- Test-Driven Development: By Example · Addison-Wesley · 2003 · ISBN 9780321146533
- Test-Driven Development · Pearson India · 2002 · ISBN 9788131740835
Other (zh)
- Test-Driven Development: By Example(Chinese Edition) · Machinery Industry Press · 2013 · ISBN 9787111423867
Keep track of what you read
Book Nook is a free reading tracker with a 3D bookshelf, a reading timer, challenges with friends and a Reading Wrapped at the end of the year. Add Test-Driven Development: By Example to your shelf in one tap.