Skip to content

Comment on Too scared to write a line of code

Comments

This is why I love TDD: the only code I need to think about are the tests that implement my expectations. Writing the code itself is easy, I just have to write the dumbest thing that will make the tests pass.

Of course, this all assumes you've got the right architecture for the job.

You're to handle data structures? If you do it wrong, if each bookstore address is duplicated beside the book's entry, tests will pass but you will have migration nightmare very soon.

What you are forgetting here is the essential refactoring step in the loop.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.