2 ms·
> Get a passing test first then optimize later if the code is a bottleneck. In that case, totally get that test passing and then maybe add few more tests aroun
by TeMPOraL 8y ago
> Get a passing test first then optimize later if the code is a bottleneck.
In that case, totally get that test passing and then maybe add few more tests around that solution - so that when I come to the project half a year later, and see the application consing like crazy because you used lists instead of arrays, and this now powers half of the business logic, I can tear this up and fix the data structure with confidence I won't break things badly.
(Totally not a real case I had.)