Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Before I write a single line of code, I. Parent comment
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.
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.