O'Reilly logo

Implementation Patterns by Kent Beck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Behavior

John Von Neumann contributed one of the primary metaphors of computing—a sequence of instructions that are executed one by one. This metaphor permeates most programming languages, Java included. The topic of this chapter is how to express the behavior of a program. The patterns are:

Control FlowExpress computations as a sequence of steps.

Main FlowClearly express the main flow of control.

MessageExpress control flow by sending a message.

Choosing MessageVary the implementors of a message to express choices.

Double DispatchVary the implementors of messages along two axes to express cascading choices.

Decomposing MessageBreak complicated calculations into cohesive chunks.

Reversing MessageMake control flows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required