First page Back Continue Last page Overview Graphics

Analogy Patterns in Software Method Name (Prefix)

public void visitExpression(Node a){};

public void visitBlock(Node a){};

public void visitFile(Node a){};

Notes:

The visitor pattern uses the method name to identify the analogy. The strong associations between the method implementations means it make sense to chunk them together.

The examples here and the additional ones in the paper serve as an illustration how analogies are ubiquotous in our code. They are by no means a complete catalog. Each software language and application has it's own structures.