diff --git a/_posts/2023-10-02-dependency-whac-a-mole.html b/_posts/2023-10-02-dependency-whac-a-mole.html index d04d2524..3f78b67d 100644 --- a/_posts/2023-10-02-dependency-whac-a-mole.html +++ b/_posts/2023-10-02-dependency-whac-a-mole.html @@ -171,4 +171,53 @@
+ Callum, I was expecting someone to comment on including Gherkin on the list. +
++ I don't consider all my examples as universally problematic. Rather, they often pop up in contexts where people seem to be struggling with a concept or a piece of technology with no apparent benefit. +
++ I'm sure that when Dan North came up with the idea of BDD and Gherkin, he actually used it. When used in the way it was originally intended, I can see it providing value. +
++ Apart from Dan himself, however, I'm not aware that I've ever met anyone who has used BDD and Gherkin in that way. On the contrary, I've had more than one discussion that went like this: +
++ Interlocutor: "We use BDD and Gherkin. It's great! You should try it." +
++ Me: "Why?" +
++ Interlocutor: "It enables us to organise our tests." +
++ Me: "Can't you do that with the AAA pattern?" +
++ Interlocutor: "..." +
++ Me: "Do any non-programmers ever look at your tests?" +
++ Interlocutor: "No..." +
++ If only programmers look at the test code, then why impose an artificial constraint? Given-when-then is just arrange-act-assert with different names, but free of Gherkin and the tooling that typically comes with it, you're free to write test code that follows normal good coding practices. +
++ (As an aside, yes: Sometimes constraints liberate, but what I've seen of Gherkin-based test code, this doesn't seem to be one of those cases.) +
++ Finally, to be quite clear, although I may be repeating myself: If you're using Gherkin to interact with non-programmers on a regular basis, it may be beneficial. I've just never been in that situation, or met anyone other than Dan North who have. +
+