4 ms·
I disagree. I've never been in a conversation where using any of these terms led to a misunderstanding. Everyone understands that mocks, stubs, fakes are progra
by ternaryoperator 6y ago
I disagree. I've never been in a conversation where using any of these terms led to a misunderstanding. Everyone understands that mocks, stubs, fakes are programmer-written stand-ins for other objects.
In the vast majority of the cases no one cares whether it returns a preset value or only counts the number of hits or whatever else it might do. And if that level of implementation detail becomes important, then it's described that way, not by the use of Fowler's terminology.
The shame of it is that the title of this essay makes it appear like it's simply an introduction to a lexicon, whereas the word definitions are actually a small part of the essay and there are more important topics presented (and presented fairly well).
- jolux 6y ago>Everyone understands that mocks, stubs, fakes are programmer-written stand-ins for other objects. Sure, but that's only the starting point here. >The shame of it is that the title of this essay makes it appear like it's simply an introduction to a lexicon, whereas the word definitions are actually a small part of the essay and there are more important topics presented (and presented fairly well). Yeah, but if you can't use the words to talk about these topics, it's going to be a lot harder to do so without getting verbose.