- ok AIC was a bit to depressing moving on to... youtube.com/watch?v=rCVQoG… 20 hours ago
- my sample lol while working on the #cheezburger content card.. i<3 @github http://t.co/03Bc0hEW 20 hours ago
- little AIC jar of flies & hacking on some less styles while sipping a fine brew from Olympia Coffee Roasting Company #goodmorning #cheezlife 21 hours ago
- hey @marthakelly have you met @garannm? she is also a big javascript fan... 1 day ago
- woot looks like i get to spend a week working with the Know Your Meme team haxoring on some ruby in the near future. 1 day ago
I Am Not Myself
Bills.Pay(Developer.Skills).ShouldBeTrue()
Getting Gilded Rose Under Test
Posted by on December 22, 2011
While I was attending the Software Craftsmanship North America conference this year, Ian Davis post a video of himself performing the Gilded Rose Kata. I really enjoyed watching it and wanted to take a stab at it myself. I had a couple hours to kill sitting at O’Hair waiting on my flight so I fired up my environment and took a stab at it.
This video is the result of that session. The video consists of me getting the system under test. I did attempt a refactoring a couple times but kept driving to Ian’s solution because it was to fresh in my head. So I trimmed the solution out of my video and left only the testing. Go watch Ian’s video for a elegant solution to the problem. Do note that there is a signifigant amount of play and experimentation in this video, I am just dorking around.
It took me a while to post this because I originally recorded the session using Camtasia:Mac, which is a horribly broken piece of software. I had to wait until I could get a license for ScreenFlow before acutally producing the video. If you are in the market for software to do this kind of video, go with ScreenFlow.
If you are interested, I am using the Giles auto test runner, Nunit and several Resharper macros in the video. You can find my source on github.
Be sure to watch in HD it makes the text much more readable.
Nicely done. Good ideas I picked up:
- nest test fixtures in classes (like nesting descriptions and contexts in RSpec)
- extension method to improve readability
- use Giles (like autotest/guard in ruby)
One thing I missed is performing the kata TDD fashion. Write test – RED – write code – GREEN – refactor test/code – rince and repeat.
All in all, I enjoyed this video, thanks.