13 ms·
> You see a lot of people arguing against this but I'm going to be honest, they churn out a lot of stuff that doesn't actually work. My anecdata cancels out yo
by gurkendoktor 9y ago
> You see a lot of people arguing against this but I'm going to be honest, they churn out a lot of stuff that doesn't actually work.
My anecdata cancels out your anecdata. The TDD practitioners that I've met have, without exception, written code that worked fine for only the one case that they've tested. Example: They'd test a method for sending a message with the string "hello". Turns out the method didn't URL-encode the message before POST-ing it, and sending anything with a space was broken. They were confident and pushed the change.
Not saying you're wrong, just that TDD doesn't seem to work for everybody, and can even be a distraction.
- cjsuk 9y agoThat will be because you worked with dumbasses. If you only test the expected outcome you are a dumbass.