Yeah... starting with writing tests last on existing code seems the most intuitive route to eventually learning TDD. I was curious as to whether most people who are experienced in TDD see it that way too.
You should be doing requirement analysis before you write any code or tests. And once you have your requirements, it doesn't matter if you write the code or the tests first.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But if you're doing requirement analysis before writing the code, isn't it better to start with the tests?
And as for the original question, yes, it's fine to start with writing them last on a code you're already familiar with.
Yeah... starting with writing tests last on existing code seems the most intuitive route to eventually learning TDD. I was curious as to whether most people who are experienced in TDD see it that way too.
You should be doing requirement analysis before you write any code or tests. And once you have your requirements, it doesn't matter if you write the code or the tests first.