Cpp

2026


2021


Keep the configuration out of the code

A C++ factory picked one of many Style subclasses through a growing if/else chain. The subclasses only returned fixed properties, so one JSON resource per configuration replaced the whole hierarchy.
·2 mins