Search the web
Sign In
New User? Sign Up
extremeprogramming · Extreme Programming
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Behaviour Driven Development   Message List  
Reply | Forward Message #113260 of 152354 |
Re: [XP] Behaviour Driven Development

From: "Ravi Mohan" <magesmail.at.yahoo.com@...>
To: "extremeprogramming@yahoogroups.com"
<extremeprogramming.at.yahoogroups.com@...>
Sent: Sunday, October 02, 2005 9:25 PM
Subject: Re: [XP] Behaviour Driven Development


>
> Joe,
>
>> The essence of BDD is to take TDD and change the testing terms to
>> specification terms. The goal is to see how we as programmers behave
>> differently thinking about specifications than tests.
>
>
> No argument there. I was asking about any experiential evidence that
> such a change causes a real difference.
>
>> The section on the Sapir-Whorf hypothesis is -- not just in my opinion,
>> but from what I can tell from Dave -- the whole point. The rest is just
>> syntax.
>
> And which version of the Sapir-Whorf hypothesis do you think is being
> used here? The strong version? the weak version? As the wikipedia
> entry (that DAve quotes in his paper -
> http://en.wikipedia.org/wiki/Sapir-Whorf_Hypothesis) illustrates,
> there is quite a bit of dispute amongst linguists on its validity.

Remainder snipped.

You're quite right. The reason that the Sapir-Whorf hypothesis is
strongly disputed among linguisists is not that it's totally wrong, it's
that it's a drastic oversimplification (and consequently very
dangerous distortion) of what many modern linguists
think the actual situation is all about. It would be long dead and
forgotten if it wasn't being used as a justification for a number of
things by several political groups.

The modern viewpoint is that of a mindset, viewpoint or mental
framework; a completely different way of looking at the same
things. In one of his books, George Lakoff does an exposition
of the difference between "conflict" and "cooperation" as mindsets.
It's highly recommended to get the basic idea (and I may read
it myself one of these days [grin]).

So when we say that using the word "test" brings up a complete
mental framework that includes a completed artifact before
testing, and all the rest of the stuff in Dave Astell's article, it's
actually something that many mainline linguists would agree
with.

Where they would disagree is that just changing "test" to
"should" will make a difference. Sapir-Whorf would say that
it would. Many modern linguists would say that it would
_if_ and that needs to be emphasized _if_ the person already
has an alternative mental framework to be invoked.

If he doesn't, then it's just going to cause confusion and,
in some cases, frustration. Take the radical part of the women's
movement of a couple of decades ago: they tried to "fix" the
sexual bias in English, and failed utterly. What they managed
to do was pitiful in comparison to what they wanted: the
abbreviation Ms., elimination of the -ess ending in most
(but not all) cases, and shifting a lot of words from the
Germanic -boy, -girl, -man, and -woman endings to
equivalent words with the French -er ending. Most people
didn't know what they were talking about, and still don't.

So the critical point here is the alternative framework, not
the words that one uses, although different words will be
helpful.

On a more experiential note, I tried using "should", and
I'm going to continue. It's very easy in the Python version
of xUnit: unittest. You get to specify the prefix that means
"test case method" on a class by class basis. It kind of
works, but there are still difficulties.

For example:

def shouldDeleteMailIfSpam(mail):
mail.mustDeleteIfSpam(True)

For people who don't know Python, "mail" is
actually the instance. It's usually spelled "self".
This implies that the class initializer has to
perform the same function as the setUp() method,
which eliminates the need for a setUp() method.
The TearDown() method is still needed, since
Python's destructor is woefully insufficient.

And that in turn means that specification classes
probably subclass.

John Roth

> regards,
> Ravi




Mon Oct 3, 2005 3:25 pm

jhrothjr
Offline Offline
Send Email Send Email

Forward
Message #113260 of 152354 |
Expand Messages Author Sort by Date

Hi, I'm afraid for my late response... BTW, Yes, your response and all the following ones from other members of the list helps me a lot to understand what BDD...
Renzo Borgatti
renzo_borgatti
Offline Send Email
Oct 6, 2005
8:32 am

From: "Ravi Mohan" <magesmail.at.yahoo.com@...> To: "extremeprogramming@yahoogroups.com" ...
yahoogroups@...
jhrothjr
Offline Send Email
Oct 3, 2005
3:25 pm

John, <nice comments on teh SW Hypothesis snipped> ... Agreed. ... This is *exactly* the point I was trying to make.And it certainy looked like this was being...
Ravi Mohan
magesmail
Offline Send Email
Oct 3, 2005
3:56 pm

From: "Ravi Mohan" <magesmail.at.yahoo.com@...> To: "extremeprogramming@yahoogroups.com" ...
yahoogroups@...
jhrothjr
Offline Send Email
Oct 3, 2005
5:32 pm

John, ... I will ceratinly look him up.This is ineteresting. ... I know this is getting soteric.but a)how do we know that these two alternative frameworks...
Ravi Mohan
magesmail
Offline Send Email
Oct 3, 2005
6:52 pm

... Sorry if I'm missing some context, but I just wanted to clarify one thing - rspec does not require "should" as a marker. It doesn't really know the concept...
David Chelimsky
dchelimsky
Offline Send Email
Oct 3, 2005
6:58 pm

Dave, ... all ... I never meant anything else. I was thinking of Junit not of RSpec. I haven't looked at the RSpec code(I will).For now please think "junit"...
Ravi Mohan
magesmail
Offline Send Email
Oct 3, 2005
8:38 pm

From: "Ravi Mohan" <magesmail.at.yahoo.com@...> To: "extremeprogramming@yahoogroups.com" ...
yahoogroups@...
jhrothjr
Offline Send Email
Oct 3, 2005
10:09 pm

Hi John, Ravi, ... I do the same thing in Java and Ruby. I figure out what I want to name the test, and start with that name. I then stick "test" onto the...
Dale Emery
dalehemery
Offline Send Email
Oct 4, 2005
6:50 am

Dale,John ... that is not quite the point I was trying to make. And I don't think you really understood Dale's method of naming. ... That was *exactly* what I...
Ravi Mohan
magesmail
Offline Send Email
Oct 4, 2005
8:31 am

Hello, I have noticed too that TDD is often misunderstood and not used effectively. The same is true for XP as a whole. I suppose that if BDD and associated...
Dominic Williams
xpdoka
Offline Send Email
Oct 4, 2005
9:47 am

On 04/10/05, Dominic Williams < ... Unit tests are about testing. Automated tests are about testing. Test Driven Development is about specifying. At least...
Tim Haughton
haughtontim
Offline Send Email
Oct 4, 2005
10:12 am

... wrote: some snippets from your post... ... All bang on. Well said, Tim! Dave Astels...
Dave
astelsd
Online Now Send Email
Oct 4, 2005
9:51 pm

Hi all, Reading the latest posts, it seems that good TDDers understand that the word "test" is developer-speak for something a little more complex. "Test", in...
Elizabeth Keogh
deathbypeaches
Offline Send Email
Oct 4, 2005
10:50 am

Liz, ... uses ... And here I disagree. Imho a test in TDD is specification *and* regression, one is not a by-product of the other. They are just two facets (or...
Ravi Mohan
magesmail
Offline Send Email
Oct 4, 2005
11:57 am

... I'd advise caution in your thinking here. Elizabeth and others are using expert /observations/ to describe what they see happening. We might be deceiving...
Ron Jeffries
RonaldEJeffries
Offline Send Email
Oct 4, 2005
12:55 pm

Ravi, I think you look at this from the point of view of a great TDDer, with very few of the problems that newbies to TDD encounter. Before I came across TDD,...
Elizabeth Keogh
deathbypeaches
Offline Send Email
Oct 4, 2005
1:39 pm

... to do ... This is not unlike agile in general. As many have pointed out, iterative approaches have been around for a long time. They just didn't have a ...
David Chelimsky
dchelimsky
Offline Send Email
Oct 4, 2005
2:23 pm

David, ... iterative ... value ... And this still doesn't answer the core question. what is teh evidence that any of these "changes" actually occur? I don't...
Ravi Mohan
magesmail
Offline Send Email
Oct 4, 2005
3:38 pm

Liz, ... This is simply not true(me being a great TDDer). Now again if the point is that it helps newbies (and has marginal benefits to people who "get" TDD),...
Ravi Mohan
magesmail
Offline Send Email
Oct 4, 2005
4:46 pm

... As I said, this was before I came across TDD. Even so, past experiences have flavoured the way I think of tests. I was taught TDD very well at ...
Elizabeth Keogh
deathbypeaches
Offline Send Email
Oct 4, 2005
5:28 pm

Liz, ... Really ? :-) So be it then! ... number of people who are using BDD have to say about their experiences with it; mine aren't enough to ... You are...
Ravi Mohan
magesmail
Offline Send Email
Oct 4, 2005
5:56 pm

... Nunit uses both. It will pick up test in the prefix even if the [test] attribute is not present. It gives you flexibility of choosing which method you are ...
Block Glenn
glenn_block
Offline Send Email
Oct 5, 2005
2:47 pm

From: "Dale Emery" <dale.at.dhemery.com@...> To: "extremeprogramming@yahoogroups.com" ...
yahoogroups@...
jhrothjr
Offline Send Email
Oct 4, 2005
1:50 pm

Hi John, ... Good point. I'll try that for a while and see what happens. Dale -- Dale Emery, Consultant Inspiring Leadership for Software People Web:...
Dale Emery
dalehemery
Offline Send Email
Oct 7, 2005
4:41 am

... Nunit uses both. It will pick up test in the prefix even if the [test] attribute is not present. It gives you flexibility of choosing which method you are ...
Block Glenn
glenn_block
Offline Send Email
Oct 5, 2005
3:02 pm

... I may be wrong, but I think it only uses the prefix for backwards compatibility - not due to intent to provide two mechanisms for the same thing....
David Chelimsky
dchelimsky
Offline Send Email
Oct 5, 2005
3:06 pm

... That's my impression also. This backwards compatibility bit me once a couple of months ago, though very briefly. I factored out a helper method for one of...
Craig Demyanovich
demmer12
Offline Send Email
Oct 7, 2005
11:20 pm
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help