3 ms·
One of the things that programmers do that I find most frustrating is proclaim that the definition of words that they use is the objectively correct definition,
by tatterdemalion 10y ago
One of the things that programmers do that I find most frustrating is proclaim that the definition of words that they use is the objectively correct definition, and frame their entire discussion as an argument that other people aren't using words correctly. Pick any term and the kind of argument comes to mind - "type," "object," "metaprogramming," "dependency injection," "design pattern," etc.
This article has a lot of good content about testing strategies, as well as an introduction to some of the jargon used in a certain testing discourse, but the argument is framed as telling you that mocks aren't stubs, and you, the reader, have been using these words incorrectly. But the reader has only been using these words differently.
This is a very common pattern of behavior among programmers and I think it is worthwhile to push back against it, separately from acknowledging the useful information in this article. (And the grandparent comment you replied to also did some of this as well, of course!)
- gary_bernhardt 10y agoI agree with you in general. In this case there's only one coherent taxonomy in widespread use so I think it's reasonable to say "just use it". It's unfortunate that people who aren't already experts on a topic can't tell whether that kind of decree represents consensus or someone's idiosyncratic opinion (and there's plenty of both in general). Framing is a different thing, though, and I can't comment there since I haven't re-read the whole article recently.