Should I ever inherit an #ifdef mess again, I intend to replace #ifdefs with Strategy patterns.
#1 figure out all the known defs in actual use
#2 rerun the preprocessor with each variant (combo)
#3 capture the output(s)
#4 aggressively apply the Strategy pattern, refactor code
Last time, I removed dead code piecemeal manually. It sucked.
Should I ever inherit an #ifdef mess again, I intend to replace #ifdefs with Strategy patterns.
#1 figure out all the known defs in actual use
#2 rerun the preprocessor with each variant (combo)
#3 capture the output(s)
#4 aggressively apply the Strategy pattern, refactor code
Last time, I removed dead code piecemeal manually. It sucked.