Re:How Going Back to Coding After 10 Years Almost Crushed Me
by kqr on Wednesday April 07, 2021 @01:58AM
(#26721020)
> 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."
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.