Skip navigation

Monthly Archives: June 2007

Nitro update

Nitro is seeing some action again recently, which is mighty good, obviously. Nitro is a free software framework (under the liberal BSD licence) for building wep applications quickly, utilizing the lightweight Ruby language.
The 0.42 release is very outdated compared to the repo version, so we’re all preparing for a dazzling 0.50.
The team has […]

The Nitro documentation buzz

I’m finding myself slowly emerged in the Nitro community. Nitro is a ruby framework for the rapid development of web applications. Another such framework, Ruby on Rails, has gotten a lot of press. The alternatives are less known :

Camping
IOWA
Ramaze
Nitro

Nitro has a clean, flexible and extensible design. But there are as I see it two big […]

Equality in Ruby

Just so you know:

== a.k.a. value equality
eql? a.k.a. value and type equality
equal? a.k.a. object identity
=== a.k.a. case equality

Object identity should never be overridden. It compares object ids, always.

When overriding, start with value equality. If you’re not doing type conversions then you can simply add “alias :eql? :==”. I was surprised to […]