Book Image

The Agile Developer's Handbook

By : Paul Flewelling
Book Image

The Agile Developer's Handbook

By: Paul Flewelling

Overview of this book

This book will help you overcome the common challenges you’ll face when transforming your working practices from waterfall to Agile. Each chapter builds on the last, starting with easy-to-grasp ways to get going with Agile. Next you’ll see how to choose the right Agile framework for your organization. Moving on, you’ll implement systematic product delivery and measure and report progress with visualization. Then you’ll learn how to create high performing teams, develop people in Agile, manage in Agile, and perform distributed Agile and collaborative governance. At the end of the book, you’ll discover how Agile will help your company progressively deliver software to customers, increase customer satisfaction, and improve the level of efficiency in software development teams.
Table of Contents (16 chapters)

Test-Driven Development

Test-Driven Development (TDD), is a software discipline in which we write an automated test case before we write any code. It is a principal practice of Extreme Programming.

The basic pattern is as follows:

The first step is to write an automated test case for the next piece of simple functionality we intend to implement. The test will fail because we haven't written any code to fulfill it yet.

The next step is to write the most straightforward code implementation to fulfill the test and make it pass.

The final step is to refactor the code so that it meets our coding and implementation standards.

When using refactoring with TDD, they make a powerful ally. The TDD test suite enables us to take the refactor step with the confidence that the behavior hasn't changed, as we make the code simpler and more in keeping with the system design.

So, if...