Traditional Object-Oriented Patterns

By now, we have already learned about the many design patterns that we need to know in order to be an effective Julia programmer. The cases presented in the previous chapters included various problems that we can solve by writing idiomatic Julia code. Some might ask, after all these years, I have learned and adapted to the object-oriented programming (OOP) paradigm; how do I apply the same concepts in Julia? The general answer is, you won't solve the problem the same way. The solution written in Julia will look different, reflecting a different programming paradigm. Nevertheless, it is still an interesting exercise to think about how to adopt some of the OOP techniques in Julia.

In this chapter, we will cover all 23 design patterns from the classic Gang of Four (GoFDesign Patterns book. We will keep the tradition and organize the topics in the following sections:

  • Creational patterns
  • Behavioral patterns
  • Structural patterns

By the end of this chapter, you will have an idea of how each of these patterns may be applied in Julia, as compared to an OOP approach.

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

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