Insignificant whitespace for correctness, completeness, fun, and profit (or; why your code formatting tools are garbage)

Jørgen Kvalsvik

Lightning talk - in English

Code formatting tools are all the rage, because they eliminate style guidelines discussions.


However, opportunities for clarity and emphasis are lost in the battlefield of black and clang-format. Code is no longer written for humans to read, but for machines to re-format, and focus is lost in the quest for a debate free, lowest-common-denominator grail.


Flame bait aside, it turns out human beings are really good with patterns and shapes. I will demonstrate a few examples where this can be used for great benefit in terms of code clarity, where it helps verify completeness, and correctness, at the cost of a few whitespace.