This chapter will cover a few miscellaneous design patterns that are quite useful in building larger applications. These patterns provide additional tools that we can leverage apart of the major patterns that we have seen so far from previous chapters. In a nutshell, we will explore three patterns, as follows:
- The singleton type dispatch pattern
- The stubbing/mocking pattern
- The functional pipes pattern
The singleton type dispatch pattern leverages Julia's multiple dispatch feature, which allows you to add new functionalities without having to modify existing code.
The stubbing/mocking pattern can be utilized to test software components in isolation. It's also possible to test external dependencies without actually using them. It makes automated testing a lot easier.
The functional pipes pattern makes use of the pipe operator to...