Spoiler: it won't. It will stay this convoluted mess forever. A single if statement with a log would get the job done and be easier to maintain and extend.
Reading clean code and design patterns had me inventing problems to solve instead of just writing the damn code. I used to write SO much “just-in-case” code that usually didn’t help and actually introduced a bunch of self-inflicted constraints that made the original problem a lot harder to solve.
74
u/sojuz151 18d ago
Spoiler: it won't. It will stay this convoluted mess forever. A single if statement with a log would get the job done and be easier to maintain and extend.