Site Archives:
Red, green, refactor. Red, green, refactor
Posted by
Tom | November 23, 2006 comments One Response

That title is pinched blatantly from the excellent Test Driven Development course by fellow Skills Matter instructor and agile programming luminary Craig Larman. Can you still say red/green when you run your tests on the command line? [grin] (Correction: when you run them from Emacs — a very big thanks to this chap).

Yes it’s test-driven-development week here at Hobo central (the above banner, btw, is the tranquil view from Hobo HQ).

continue reading
All You Need is CRUD?
Posted by
Tom | November 17, 2006 comments No Responses

DHH, as you probably heard, has learnt to stop worrying and love the CRUD. I’m very much in agreement. The idea of replacing the actions add_member and remove_member (or would that be join_group and leave_group?) with Membership#create and Membership#destroy was the final light switch that got me to a place I’d been striving for.

The generic controller. A standard implementation of the CRUD actions that can be used out-of-the-box in a large majority of cases.

continue reading
DRYML, meet ActiveRecord
Posted by
Tom | November 11, 2006 comments 13 Responses

DRYML has a nifty little feature called implicit context. Despite the title of this post, this feature has got nothing directly to do with ActiveRecord. Implicit context makes it a lot easier to populate your pages with data, and in Rails that means ActiveRecord models. So this post is about getting your models into your views.

continue reading
A Quick Guide to DRYML
Posted by
Tom | November 10, 2006 comments 19 Responses

continue reading