Inaugural Habaricon

April 1, 2008 8:27am | 2 Comments | , , , , and

So I managed to secure a place to HabariCon '08. Not quite sure what to expect, but being able to meet other people in real life and talk about habari & related things all day will be quite cool.

Expect a round-up post of the 'con tonight!

BarCamp Manchester

March 1, 2008 11:34am | 14 Comments | , , , , , and

So I'm at BarCamp Manchester for the day. Its great meeting people I already know, and meeting new ones; most impressed by Peter's ruby shoes.. they glitter!

So heres a little list of links for the day:

Refactoring code logically

February 12, 2008 12:28pm | 2 Comments | , , , , , and

And now an example of how I write my ruby code and get it down to the bare, readable, minimum code needed. This is real life code taken from a website I'm building, but I've changed the objects to a blog post because more people will relate to that easier.

The show object has an id passed in using the params Hash, I want to check if that post exists in the database first. If it does, then render the page, and if it doesn't return a 404 error page.

So I start off by writing this in longhand ruby, I'm using the merb framework with DataMapper ORM by the way....

More...

Why do I love Ruby?

January 30, 2008 2:15pm | 17 Comments | , , , , and

So mother (who can't program) just posed me the question

Why is Ruby your favourite programming language?

Me being a show off jumped straight into TextMate and banged out some code in real time to show her. First up, a quick little one-liner of Ruby code to output a String:...

More...