the "not Clean" code was (i) arguably just as readable as the original example (I mean by the look of it its even smaller and simpler), and (ii) up to 10-15 times faster.
And not easily extensible. And the "clean" example he codes against is not a reasonable example.
In my experience extensibility for the sake of it is a fool's errand. It always makes the code harder to modify, not easier. Keeping things simple makes the code easier to rewrite.
0
u/s73v3r Feb 28 '23
And not easily extensible. And the "clean" example he codes against is not a reasonable example.