February 2016
Intermediate to advanced
382 pages
8h 1m
English
In this chapter, we learned about structural design patterns and specifically about the following: adapter, decorator, bridge, composite, facade, flyweight, and proxy. We went through the details of each of them and showed a class diagram as well as a code example for each. Because of the richness of Scala, sometimes there can be a better implementation using some of the nice features of Scala but sometimes the design pattern just looks the same as it would in a language such as Java.
In many cases, the structural design patterns seem quite similar. This, however, shouldn't confuse you as they still have different purposes. Some examples include:
Read now
Unlock full access