October 2019
Intermediate to advanced
444 pages
10h 37m
English
In a previous recipe, we were using macros to generate almost arbitrary code, thereby reducing the amount of code to write. Let's dive deeper into this topic since this is a great way not only to reduce bugs but also to achieve consistent quality in code. One repetitive task that everyone should do is testing (especially if it's a public-facing API), and if we copy and paste those tests we expose ourselves to errors. Instead, let's see how we can generate boilerplate code with macros to stop repeating ourselves.
Read now
Unlock full access