3 ms·
That's a really good way of putting it. TDD assume that you can write a test as the first step. Which sort of sounds reasonable if you don't think about it too
by IshKebab 4y ago
That's a really good way of putting it.
TDD assume that you can write a test as the first step. Which sort of sounds reasonable if you don't think about it too much. Sometimes it is reasonable (e.g. leetcode, improving existing code, well defined problems).
But a lot of the time that is sneakily missing out the enormous steps of prototyping, experimenting, trying solutions that didn't turn out to be a good idea, finding out that the problem wasn't a good idea, etc. etc.
All that can take longer than actually implementing a solution.
So, fine use TDD where it works well but don't pretend it is the only way to do things.