Keep the configuration out of the codeA 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.27 October 2021·2 mins