Introduction
Why Patterns?
“If builders built houses the way programmers wrote code, the first woodpecker that came along would destroy civilization.”
If you wanted to build a house, how would you do it?
Well, you could do what some people do to build a treehouse:
Find a sturdy tree.
Get a bunch of wood, a hammer, and some nails.
Apply the products from step 2 to step 1.
Hope for the best.
Of course, anyone who has tried this approach knows the results can be disappointing—in some cases, leading to the loss of the tree along with the treehouse. A better plan would be to find an architect and get his or her help in developing blueprints.
But how does the architect, the expert in building houses, make decisions? How is it possible to take the lessons from ...
Get Applied Java™ Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.