New Julia programmers are often amazed by the conciseness of the language. Surprisingly, some of the very popular Julia packages are written with very little code. There are multiple reasons for that, but one major contributing factor is the ability to generate code dynamically in Julia.
In certain use cases, code generation can be extremely helpful. In this section, we will look into some code generation examples and try to explain how it can be done properly.