Comments by "Brent Jacobs" (@br3nto) on "Why Would Anyone Hate TDD? | Prime Reacts" video.
-
2
-
4:27 and 16:22 I think Primeagen is not understanding Dave’s approach. Dave’s TDD is much more atomic than testing an entire complete function, edge cases and all. In the first TDD iteration for writing a function, a function will have 0 edge cases, in the next, a new test added, to test an edge case which will fail at first, then the function is updated to meet the new expected behaviour of the two tests, rinse and repeat. You don’t write the entirety of the behaviour of the function up front, you build it up piece by piece. So a buggy test isn’t really likely because it is so atomic. Now you might argue that the tests are then too fine grained and brittle, however, they test the functionality that is expected of the program and the stakeholders, so if a requirement changes, you remove the no longer applicable tests and one by one add new ones with the new requirements.
1
-
1
-
1
-
1
-
1