Chapter 8. Behavioral Design Patterns – Part 1

Our journey through the Scala design patterns has arrived at the family of behavioral design patterns. This group has more members than the others we already went through, so we will split it into two separate parts. In this chapter, we will focus on the following behavioral design patterns:

  • Value object
  • Null object
  • Strategy
  • Command
  • Chain of responsibility
  • Interpreter

This and the next chapter will give some clarity about what behavioral design patterns are, where they are useful, and how to implement them in Scala. We will be following a path similar to the previous chapters where we presented the patterns, showed a class diagram and a code example, and finally, gave a few hints about what to watch out ...

Get Scala Design 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.