3 ms·
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. R
by brianwawok 11y ago
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.