Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sethammons
· 7y ago · 0 comments
You don't always write a test first. A bug? Sure, write a test that shows the bug, fix it, make it green. A very well defined something? Sure, TDD. Many times, you will write code (or come across pre-existing code) and tests come last.
Comments
[–]
TravelAndFood
7y ago
Yep, TDD is quite hard when requirements are vague/changing... the reqs changed? OK now I have to rewrite my test AND the code that passes it.
Vague/changing reqs is of course a separate problem.