News for hackers. Stuff that matters.
Re:Ask HN: Before I write a single line of code, I by brianwawok on Thursday August 06, 2015 @11:22AM (#10017065)
There is a big difference between "untested code" and "tdd code"

There are two different ways to test code.

1) Do the TDD thing. Write 1 test. Code to pass. Repeat.

2) Write code that works. Iterate on it. Refactor, clean it up. Then write some tests that test the final product.

You can have tested code in both cases, but I claim the code from #2 will look cleaner than the code from #1.

There are no comments on this comment yet.