January 2020
Intermediate to advanced
532 pages
13h 31m
English
The idea of the factory method pattern is to provide a single interface to create different types of objects that conform to an interface while hiding the actual implementation from the client. This abstraction decouples the client from the underlying implementation of the feature provider.
For example, a program might need to format some numbers in the output. In Julia, we might want to use the Printf package to format numbers, as follows:

Perhaps we do not want to couple with the Printf package because we want to switch and use a different formatting package in the future. In order to make the application more ...
Read now
Unlock full access