January 2020
Intermediate to advanced
532 pages
13h 31m
English
Let me explain how the bridge, decorator, and facade patterns work. At this point, we will not provide any more code samples for these patterns, only because they are relatively easy to implement, as you are already equipped with many ideas from prior design pattern sections. Perhaps not too surprisingly, the same tricks that you have learned so far—delegation, singleton type, multiple dispatch, first-class functions, abstract types, and interfaces—are the same ones that you can use to tackle any type of problem.
The bridge pattern is used to decouple an abstraction from its implementation so that it can evolve independently. In Julia, we can build a hierarchy of abstract types for which implementers ...
Read now
Unlock full access