- Shopping Bag ( 0 items )
From Barnes & NobleThe Barnes & Noble Review
Every developer wants to write clean code that works -- but somehow, forces always seem to conspire to prevent that. Kent Beck has spent a career on the problem of improving software development: you probably know him best for inventing Extreme Programming (XP).
XP relies heavily on incremental testing. But this often slips up implementers, for whom constant testing represents a radical change. In Test-Driven Development, Beck brings testing to life, showing exactly how to use it to close the gap between decisions and feedback.
“TDD” has only two rules. No. 1: Write new code only if you first have a failing automated test. No. 2: Refactor constantly to eliminate duplication. But these rules have complex and subtle implications. You must “design organically,” making decisions based on whether your code passes its test. You must organize your development environment so this is possible. You must write your own tests: you can’t wait for specialists. And your designs must consist of highly cohesive, loosely coupled components: otherwise, micro-scale testing is simply impossible.
If this still sounds difficult at best, Beck demonstrates TDD through a book-length case study. Its “in-practice” workings will surprise you -- and, we think, convince you. Bill Camarda
Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.