Modern techniques for keeping your code dry
Björn will show modern C++ techniques enabling you to write your own zero-cost abstractions that help getting rid of the patterns that keep repeating in your code.
We have learned to avoid repeating ourselves in code, and yet we keep writing things like:
if (a > 0 && b > 0 && c > 0) …
In this session Björn will show techniques from modern C++ that help you construct abstractions for those micro repetitions. These will allow you to write:
if (all_of(a, b, c) > 0) …
Code like this expresses intent more clearly, and therefore makes it easier to follow the logic of the intended functionality instead of focussing on code details. This makes it easier to understand the functionality, and also makes it easier to spot mistakes. Better yet, these abstractions carry no run time cost.
After this session, you will be able to write your own zero-cost abstractions that help getting rid of the patterns that keep repeating in your code.