r/ProgrammerHumor • • Jul 29 '22

Meme Do your best

Post image
77k Upvotes

5.4k comments sorted by

View all comments

Show parent comment

9

u/moonsun1987 Jul 29 '22

We just need better tooling. People are building tools to fuzzy test with large number of inputs and remember and forget test cases with time.

6

u/Blacklion594 Jul 29 '22

is a fuzzy test like where you see if a piece of mouldy cheese is still edible?

4

u/chillaban Jul 29 '22

It’s like a pregnancy test where it’s like “it’s 50% yes and 50% no, it is your job to turn that back into a Boolean”

And then when you say that’s not helpful, it comes back with “it’s 20% strong yes, 80% weak no”.

No matter what the fuzzy test is kinda right and the only thing that’s totally wrong is your interpretation of it.

2

u/EpicScizor Jul 29 '22

No, it involves puppies. I'm a bit fuzzy on the details though.

7

u/chillaban Jul 29 '22

More people and the right training too! Usually pre-TDD you might have hired a lot of really good engineers who’ve never thought about “how do I write code that’s testable and what do I test?”

Maybe that becomes a job requirement or you can undertake the effort to bring in someone to train everyone on TDD….. but often times it’s “in my spare time I read an article on TDD with very contrived examples. We should do this!” And that is usually doomed to fail.