by bashtoni · 5mo ago · 0 comments
None of these were Theo's take. He was pushing the idea that unit tests in general were a waste of time because you could be shipping new features instead.
https://www.youtube.com/watch?v=pvBHyip4peo for an example of this. The nicest possible interpretation on this is that he's deliberately saying something he knows is wrong to attract attention.
1: get bug
2: write tests that should work, but don’t because of bug
3: fix bug
4: confirm fix by running tests
Makes things a LOT easier for people checking the PR, they can just confirm the tests are correct pretty much.
As a bonus the same bug can’t surface again.
I think the value is much lower (maybe even negative) when you're still trying to work out what shape the code will take, in an initial implementation.
Of course, as others have pointed out, nuanced opinion doesn't get clicks or YouTube views.