1411
Tests are code too (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Lifter@discuss.tchncs.de 3 points 1 year ago

That leads to focusing on the nitty gritty details first, building a library of thing you think you might need and you forget to think about the whole solution.

If you come up with another solution half way through, you will probably throw away half of the code you already built.

I see TDD as going depth first whereas I prefer to go breadth first. Try out a solution and skip the details (by mocking or assuming things). Once you have settled on the right solution you can fill in the details.

this post was submitted on 02 Nov 2023
1411 points (98.6% liked)

Programmer Humor

32706 readers
419 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS