Posts Tagged ‘bdd’

Words don’t come easy: MoSCoW and BDD

Wednesday, November 26th, 2008

I had a interesting conversation with Kevlin Henney at Øredev regarding the word ’should’ and its usage in Behaviour Driven Development. Kevlin does not like ’should’ as he feels it is too vague in many circumstances. And I have to agree with Kevlin.

Sometime you are speccing something like “the title of the index page should be ‘blabbr.com – the worlds largest social network’”, which might be something that we will change in the future. ‘Should’ is a good choice of words here.

Another time the spec says ‘when the nuclear reactor overheats it should shut down.’. ‘Should’ is not a good choice of word here. I’d much rather say that the nuclear reactor must shutdown, as to really say that we have no other option.

So, let’s use both. Use ’should’ when describing a something might change, and ‘must’ when describing something carved in rock.

This might also help using the specs as an executable requirement. At the moment all specs are valued the same, every fail breaks the build. Perhaps there is a value in saying that certain specs are really important and should never fail. We could have different colors for different types of failure.

Perhaps there is a use for the rest of MoSCoW?

Thoughts?

WPS Makes the Best URL’s

Thursday, May 22nd, 2008

You can count on Websphere Portal Server to create the longest URL’s ever known to man:

[http://www.hb.se/wps/portal/!ut/p/c1/hY 3RCoIwGEafKP5_myy7nDm3gU4kXOaN7CJikBoUPn- ToLvs-y4PhwM9xE9-CTf_CvPk79BBzwdZ6faQEYG1 cAVSloojawTDjER-4YOtaVskhpCUS4KU6yQrnUGVsz _2ee1t-yvHHxP44d8CymYfC0o5W5q8UnyTc4Vg9Txe 4fRc4DF2GMxOvAEeRL3J/dl2/d1/L2dPQSEvUU93Q2dB ISEvWUJweGx4dHcvNl9FTUhVOUIxQTBPQVZGMDIzOEF DM1FBMzgxMS82X0VNSFU5QjFBME9BVkYwMjM4QUMzU UEzOEgzLzZfRU1IVTlCMUEwT0FWRjAyMzhBQzNRQTM 4SDQ!/](http://www.hb.se/wps/portal/!ut/p/c1/hc3LCsIwEIXhR5rJhViXiW2TQC8UaazdlCxEIrYVlD 6_Ke4E68zy4-dAD_Env4Srf4V58nfooBdDVpp2r4hEzJodUqa1qwqbllpEP4uhqmmbc0tIIjKCVBiuCmdRp-xPfVr3tvvV8cdJ_PjGwpYL_d3X0uXRE3lgjWSoCFRmHi9wfC7wGDsM9sbf3kPaxA!!/dl2/d1/L2dJQSEvUUt3QS9ZQnB3LzZfRU1IVTlCMUEwMEVRNzAyM0dHVk5MSUQ2RzA!/)

Try sending that via Twitter.

Things I Have Actually Used

Monday, March 31st, 2008

Robby Russell is a constant source of information on Ruby and Rails, I have used his instruction on how to set up Rails and PostgreSQL on Mac a number of times. It is therefore fun to see that I have actually used 3 out of the 5 things he wants to know more about::

RSpec User Stories

We were very early adopters of this one, we started using it the same day it hit trunk in a useable form. Everyone should start using it today – I cannot speak highly enough of it. The only thing I miss is a Fit-style table approach to rules, but I have my own thoughts about that one.

Using Selenium with RSpec

We have used the now outdated spec/ui library at WeMind. Today we use RSpec Stories almost exclusively for acceptance testing. My position is to use Selenium only where you really need it, for example to test Javascript functionality.

JQuery

I have used it for the dynamic hiding of speaker info for Agila Sverige. Not at all enough to judge a library by, but it feels a lot sweeter than Prototype/RJS.

JSSpec (BDD for Javascript)

Yeah, I wanna know more about this as well.

Using the Google Charts API with Rails

Same here.

Other than that I would love to try out:

  • Seaside – I have dabbled with it but nothing worth mentioning.
  • CouchDB