Hi all!
Just a short one for now, I’ll update this with a few more usage samples in the near future.
You can download the bdd framework I used in most of the presentations. Its a mix of things inspired from a couple different sources (nSpec, jpboodhoo, dan north and couple others) . It really is syntax sugar over whats already available - nUnit and rhino mocks.
In the download, I’ve included a test from the nUnit samples on MoneyBag using nUnit natively, and the same thing done using sugar. There’s also a sample on setting the expectations for the mocked objects.
From a Test first approach, BDD does provide a more fluent transition into thinking about the design of your objects, and how they collaborate with each other.
Hope this helps! (incase you missed it : you can download it from here )
Zak
Hey !!
The last in the soliD series. Dependency Inversion Principle - DIP, will be held on the 18th November 2009 - 25th November 2009 . Due to popular demand it was decided to postpone this as many could not make it. It should be at the same place (Dimension data-Isle of man) and for around the same time - start at 6:30pm. This will also be a good time to discuss the plans for the new year and finalize the curry night, so if you can make - great!!
So, back to DIP.
High-level modules should not depend on low-level modules. Both should depend on abstractions.
Abstractions should not depend upon details. Details should depend upon abstractions.
Zak
Hi all!
Ok, another of the principles done. Just one more D = Dependency Inversion Principal. Again, everyone was happy for me to do the next one. The proposed dates are … November 18th 2009 or November 25th 2009. Please let me know your which is prefered.
We covered the theory behind the principle, then looked at and discussed some examples. We discovered how follow the SRP makes this one much easier to adhere to. Another “principle” YAGNI (you aint gonna need it yet) also plays a part in adhering to the ISP.
Put this principle into high gear when designing frameworks, avoid fat interfaces and apply SRP.
We also decided that in december, we’d still meet, but it would be for a supper, so your suggestions are welcome. We can also use it as a time to plan stuff for the new year, so bring along some ideas on what you’d like to see.
Oh! If anyone wants the slides, code etc - let me know
Thanks!
Zak
“Clients should not be forced to depend upon interfaces that they do not use.” — Robert Martin
DevG / Isle of Man software developers group monthly meetings
I’m trying to schedule the next one of the S.O.L.I.D principles - the Interface segregation principle - for the 21st October 2009. It should be at the same place (Dimension data-Isle of man) and for around the same time - start at 6:30pm
The actual presentation shouldn’t be too long, although based on the previous ones, the actual discussions could go on.
Hope that’s ok..
Thanks
Zak
DevG / Isle of Man software developers group monthly meetings
I’m trying to schedule the next one of the S.O.L.I.D principles - the Liskov substitution principle (LSP) - for the 23rd September 2009. It should be at the same place (Dimension data-Isle of man) and for around the same time - start at 6:30pm
The actual presentation shouldn’t be too long, although based on the previous ones, the actual discussions could go on.
If there’s anything from previous presentations, my BDD testing style (or anything else) that you’d like to discuss, please let me know.
Hope that’s ok..
Thanks
Zak