DeepRead
Cover of Growing object-oriented software, guided by tests

Growing object-oriented software, guided by tests

Steve Freeman · 2010

Programming and computer science › Testing and legacy code

#756 most recommended

About the book

A practical guide to building object-oriented applications with test-driven development, taught through a larger worked example: an auction-bidding client that talks to an external auction service and is built up iteration by iteration. It covers the whole cycle from acceptance tests and unit tests to integrating with external systems and a user interface, and it assumes the reader already knows TDD basics. The central claim is that tests are a design tool as well as a safety net. When a test is hard to write, the difficulty usually points to a design problem, such as too many responsibilities or unclear dependencies, so the code should be shaped by listening to what the tests reveal. The authors argue for working from the outside in, starting with an end-to-end acceptance test that drives each feature, and using mock objects to discover the roles and interactions between objects rather than just classes and data. They also hold that a system grown incrementally, with a walking skeleton and continuous refactoring, ends up better than one designed entirely up front.

Written by Claude from what it knows of this book.

What Hacker News says 80% recommend · 4% critical

0102020102015202020262014 peak · 14
This bookAverage book in Testing and legacy code

In the commenters’ own words

What Open Library readers say 4.25 from 4 ratings

  1. 51
  2. 43
  3. 30
  4. 20
  5. 10
  • 24 want to read
  • 1 reading
  • 5 have read

Only 4 ratings: treat the average as a hint.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2010
ISBN
9780321503626
Editions known
2 at Open Library
Open Library
OL16955281W

Application software, developmentComputer softwareObject-oriented programming (Computer science)Testing

Explore in the mosaic

Read next: its neighbours on the mosaic