The blog of Rahoul Baruah from 3hv Ltd

What's going on?

My name is Rahoul Baruah (aka Baz) and I'm a software developer in Leeds (England).

This is a log of things I've discovered while writing software in Ruby on Rails. In other words, geek stuff.

However, I've decided to put this blog on ice - I would ask you to check out my business blog here (or subscribe here).

16 August, 2007

unless versus if !

Why should you use unless when it is little more than if !?

Because unless let's you write code like this:


dave.punch george unless george.is_hard?


Isn't that what code should look like!

No comments:

eXTReMe Tracker