3 ms·
I think step zero for this kinda thing should be writing a test suite using the current code as the reference implementation. Then you spike it out with a first
by Spivak 5y ago
I think step zero for this kinda thing should be writing a test suite using the current code as the reference implementation. Then you spike it out with a first pass and if your clean version can’t get 90%+ without lots of edge case handling or abstraction breaking then you keep what you have.
- dilyevsky 5y agoThat’s exactly my point - chasing that 10% remainder will make the new thing similarly hacks-ridden as the original