You should download the latest version of Julia from the Julia Language website (https://julialang.org/).
The code samples are available on GitHub, as described in the Technical requirements section of each chapter. At the time of writing, the code has been tested with Julia version 1.3.0. To download the code samples, clone the project from GitHub as follows:
You are encouraged to run and experiment with the code samples accompanying this book. The code samples are typically stored in one of the following formats:
- Code snippets in a Julia source file. These snippets can be copied and pasted into the REPL.
- Code residing in a package directory. The package can be instantiated as follows:
For example, in Chapter 5, Reusability Patterns, the content is listed as follows:
To use the code for DelegationPattern, just start a Julia REPL in that folder with the --project=. command-line argument:
Then, go to the package mode and instantiate the package by entering the ] instantiate command:
After that, you can use the package as usual:
If there is a test directory, then you can read and run the test scripts provided.