Archive for the ‘Uncategorized’ Category
Installing Ruby 1.8.6 using MacPorts
Do this:
sudo port install ruby186
Because this:
sudo port install ruby
… will install Ruby 1.8.7
And don’t forget:
sudo port install rb-rubygems
And if you’re trying to get Ruby with MySQL going read this.
I’ve moved to San Francisco
I moved here 2 weeks ago, on the 1st of November, to work for the awesome Pivotal Labs and it’s been a really good start.
I’ve found a nice apartment in SOMA with a really cool roommate. The apartment even has a view of sorts of the Bay Bridge and is about a 20 minute walk to work. This means I’m easily getting my 10000 steps a day.
My first week at Pivotal was spent in the Tracker team, the electronic backbone of Pivotal’s XP flavored methodology (you can also use Tracker for free).
The team has been really great – they’re all really strong developers, quietly confident but balanced, focused and pragmatic. This seems to consistent with everyone I’ve met at Pivotal. Everyone has been very warm and welcoming, and they all seem like well adjusted individuals – a good sign.
Good times.
Testing instance methods in a Module with Object.extend()
A common type of mixin I’ve encountered involves a Module with instance methods which is included into a Class.
Writing an orthogonal test for a target Class is easy enough, you simply mock/stub any methods the Module provides.
Testing the Module elegantly however is less obvious, atleast it wasn’t obvious to me.
One approach I’ve used is to create a fake class for the test, include the Module and finally instantiate this for the test. But there’s the issue of testing the Module’s interaction with the including Class. For this you could partially mock/stub the test class instance, but there’s a simpler approach that avoids the test class altogether: create an ordinary rSpec mock instance and extend it with the Module.
Use before reuse
Please.
Bored?
Enjoy watching a nerd talk about software. (Thanks for the link Mat K)
Hooked? The video not enough? Need more now? Why not join the coolest group on Facebook.
She’s finally home
675 => 3 > 4
’nuff said.
147
A perfect combination – a lot of skill and a little luck. Enjoy.
What he said
Embrace life, like a Mayfly
I love this ad, despite its obvious corniness. And hey, I even remembered that it was for Vodafone!
Aussies, you could skip this video since you’ve probably see this on TV already.
Wikipedia has a less flattering description of Mayflies but I’m not going to let this ruin the ad for me :)