I'm glad I read this comment straight after I read the article because you've convinced me not to eliminate special cases in this particular manner.
I'm sure special case elimination is useful and sometimes necessary for clarity, but only if not done at the expensive of said clarity.
I would be open to seeing some examples that make clearer sense, though. A video I found much more convincing was Embracing Algorithms[1] from Apple's WWDC 2018. I just watched it last week, and I found the ways it broke down and deobfuscated rather simple problems into easier solutions that describe the problem and solution more concisely to be superior to what was in the article.
I'm sure special case elimination is useful and sometimes necessary for clarity, but only if not done at the expensive of said clarity.
I would be open to seeing some examples that make clearer sense, though. A video I found much more convincing was Embracing Algorithms[1] from Apple's WWDC 2018. I just watched it last week, and I found the ways it broke down and deobfuscated rather simple problems into easier solutions that describe the problem and solution more concisely to be superior to what was in the article.
[1]: https://developer.apple.com/videos/play/wwdc2018/223/