Piers Cawley

Warnings are the new test failures


~3 years ago by Piers Cawley on Just A Summary :.
Have you ever tried to run Rails, Rspec, Rake or, for that matter almost any Ruby library or application that you’ve ever heard of with the -w flag? How...

Maybe time to look at shoulda


~3 years ago by Piers Cawley on Just A Summary :.
So, because I’m sure that there’s a better way of drying up my rails apps, I’ve been porting Magritte to Ruby (given a good metadescription of your...

Javascript heresy


over 3 years ago by Piers Cawley on Just A Summary :.
So, remind me, what’s the rationale for always using the optional ; when you’re writing Javascript? The only reasons I can think of, off the top of...

I think I'm in love with an Axe


over 3 years ago by Piers Cawley on Just A Summary :.
We’ve just spent the weekend on one of Robin Wood’s spoon carving workshops, which was my 41st birthday present from Gill. It was great fun, if a...

Just a thought


over 3 years ago by Piers Cawley on Just A Summary :.
There’s a refactoring principle that states that, when you start doing the same thing for the third time, you should refactor to remove the duplication...

And if there were, what then?


over 3 years ago by Piers Cawley on Just A Summary :.
The Alpha Course people have been running a bunch of poster ads built around the slogan “If God did exist, what would you ask?”. The posters are filled...

Arguments you wouldn't make in Alabama


over 3 years ago by Piers Cawley on Just A Summary :.
I spent the weekend at the UK Sacred Harp Convention, singing blood curdling hymns to the glory of god, very loudly with a hundred or so others. Great fun...

If you're going to add a hook, make it a big one


over 3 years ago by Piers Cawley on Just A Summary :.
Jay Fields responds to on Ola Bini’s Evil Hook Methods? about the common ruby idiom that lets us write: class Fruit include DataMapper::Resource ...

Oh. Bugger


over 3 years ago by Piers Cawley on Just A Summary :.
If you asked me to name my favourite radio and TV comedy, the odds are very good that Geoffrey Perkins had a hand in most of them. When I found his obituary...

Get sophisticated


over 3 years ago by Piers Cawley on Just A Summary :.
Ruby’s primitives (Strings, Hashes, Arrays, Numbers – anything that has a literal syntax) are fine things. But that doesn’t mean you should use them...