4 ms·
This is where the advice in the article is excellent. If you start with code that's easy to delete, it's often possible to alter your data representation or ot
by bunderbunder 2y ago
This is where the advice in the article is excellent.
If you start with code that's easy to delete, it's often possible to alter your data representation or otherwise transform the problem in a way that simply eliminates the edge cases. With the result being a design that is simpler by virtue of being more robust.
If you start with code that's hard to delete, usually by the time you discover your edge and corner cases it's already too late and you're stuck solving the problem by adding epicycles.