For me that's simplifying the code, I untangled and simplified one big function and now it turns out I'm slowly adding special cases into it back again. Ehh, it was a mess and it's slowly becoming a mess again.
No, it is never the answer. This is when you look at your index of design patterns, and figure out if one of them will handle these special cases. For example, strategy pattern or chain of command pattern.
3.1k
u/TerriblyCoded Sep 23 '22
Past me: “Hahaha! I’M A GENIUS!”
Present me: “OH NO!”