Book Image

Test-Driven Java Development

Book Image

Test-Driven Java Development

Overview of this book

Table of Contents (17 chapters)
Test-Driven Java Development
About the Authors
About the Reviewers
Refactoring Legacy Code – Making it Young Again

Chapter 5. Design – If It's Not Testable, It's Not Designed Well


"Simplicity is the ultimate sophistication."

 --Leonardo da Vinci

In the past, the software industry was focused on developing software at high speed, with nothing in mind but cost and time. Quality was a secondary goal, with the fake feeling that customers were not interested in it.

Nowadays, with the increasing connectivity of all kinds of platforms and devices, quality becomes a first-class citizen in customers' requirements. Good applications offer a good service with a reasonable response-time, without being affected by a multitude of concurrent requests from many users.

Good applications in terms of quality are those that have been well designed. A good design means scalability, security, maintainability, and many other desired attributes.

In this chapter, we will explore how TDD leads developers to good design and best practices by implementing the same application using both the traditional and TDD approaches.

The following...