In this chapter, we have gone over the traditional object-oriented design patterns extensively. We started with the humble belief that the same patterns in object-oriented programming often need to be applied in Julia programming.
We started reviewing creational design patterns, which include the factory method, abstract factory, singleton, builder, and prototype patterns. These patterns involve various techniques for creating objects. When it comes to Julia, we can mostly solve these problems using abstract types, interfaces, and multiple dispatch.
We also spent a considerable amount of effort looking at behavioral design patterns. These patterns are made to handle collaboration and communication between components in an application. We looked at 11 patterns: chain of responsibility, mediator, memento, observer, state, strategy, template method, command, interpreter,...