2 ms·
I look at it from a pure time perspective. I generally spend something like a 10:1 ratio of writing code vs tests. That is, it takes me 1/10th the time to wr
by cogman10 5y ago
I look at it from a pure time perspective. I generally spend something like a 10:1 ratio of writing code vs tests. That is, it takes me 1/10th the time to write testing stuff vs the actual code.
With that perspective, it's beyond silly to prefer the tests. You are saying "Should I throw away 90% of the work or 10% of the work?"
Said another way, you are asking "Should I save the chapter headings of my book or the content?". I can make new chapter headings, but writing the actual chapters is where I spent all my time.