5

Behavioral Design Patterns

In the previous chapter, we covered structural patterns and object-oriented programming (OOP) patterns that help us create clean, maintainable, and scalable code. The next category of design patterns is behavioral design patterns. Behavioral patterns deal with object interconnection and algorithms.

In this chapter, we’re going to cover the following main topics:

  • The Chain of Responsibility pattern
  • The Command pattern
  • The Observer pattern
  • The State pattern
  • The Interpreter pattern
  • The Strategy pattern
  • The Memento pattern
  • The Iterator pattern
  • The Template pattern
  • Other behavioral design patterns

At the end of this chapter, you will know how to improve your software project designs using behavioral patterns.

Technical ...

Get Mastering Python Design Patterns - Third Edition 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.