2 ms·
> There is an unwavering belief that knowing the corner cases and weak points of your own code makes you somehow better at writing the tests. This is a very co
by kqr 6y ago
> There is an unwavering belief that knowing the corner cases and weak points of your own code makes you somehow better at writing the tests.
This is a very common -- but inevitable -- misunderstanding.
The real reason the same person should write tests and code is if you find a person who is competent enough in both technical domain and problem domain to write the tests -- you definitely want that person to write the code as well.
See how it's not "developers should write tests"? It's "domain experts should write the tests... and domain experts should write the implementation."
The two tasks happen to need overlapping skills.