Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by nojvek

5 years ago

I like TDD when I’m mostly dealing with functional/library like code where I have a solid understanding of the interface/api.

Just put all the expected input/outputs in a big table test and iterate.

TDD is awful when you don’t have a clear idea about the interface and need to mock a whole bunch of internals that are likely to change.

0 comments

nojvek

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities