Pattern Template

The patterns are laid out using the following format, with some exceptions. For example, a pattern that doesn’t have any other common name would not have the Also Known As subsection, and the Functional Replacement subsections only apply to the patterns in Chapter 3, Replacing Object-Oriented Patterns.

Intent

The Intent subsection provides a quick explanation of the intent of this pattern and the problem it solves.

Overview

Here is where you’ll find a deeper motivation for the pattern and an explanation of how it works.

Also Known As

This subsection lists other common names for the pattern.

Functional Replacement

Here you’ll find how to replace this pattern with functional programming techniques—sometimes object-oriented patterns can be replaced with basic functional language features and sometimes with simpler patterns.

Example Code

This subsection contains samples of the pattern—for object-oriented patterns, we first show a sketch of the object-oriented solution using either class diagrams or a sketch of the Java code before showing how to replace them in Clojure and Scala. Functional patterns will be shown in Clojure and Scala only.

Discussion

This area provides a summary and discussion of interesting points about the pattern.

For Further Reading

Look here for a list of references for further information on the pattern.

Related Patterns

This provides a list of other patterns in this book that are related to the current one.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.20.231