DEV Community

Discussion on: Why TDD?

Collapse
 
quii profile image
Chris James • Edited

how you can explore first, then throw all the code away, and rewrite it following TDD

For sure, sometimes its hard to make a start with something small and you need to explore the problem space a bit. So long as you have the discipline to throw that code away its all good.

I like your maths example but I was just trying to keep it as simple as possible to show the relationship between factorisation and refactoring :thumbsup: