Tech.pro sponsored a tutorial on method lookup in Ruby 2.0.0.
It’s an in-depth review of how exactly Ruby deals with method calls.

Tech.pro sponsored a tutorial on method lookup in Ruby 2.0.0.
It’s an in-depth review of how exactly Ruby deals with method calls.
There’s a Portugese translation by Rodrigo Martins if you prefer.
A quick summary of some of the new features of Ruby 2.0.0
I wanted to write a post about the many things that should be fixed with Rails.
Interestingly, Rails 3.1 fixes quite many of these.
In their Polite Programmer talk at Rubyconf, Jim Weirich and Chris Nelson pointed out that merely adding some behavior with method_missing wasn’t quite polite, as shown below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
In order for respond_to? to return true, one can specialize it
Is there a term like bugfield? You know, when everytime you get to take a couple of steps in a code base you encounter a different bug, which leads to another one, …, like a minefield of bugs?
Here was my last sequence in Ruby (MRI)…
Main goal: improve Matrix#determinant and #rank after a suggestion of Yu Ichino. The bulk of the work took me quite a while, as I had to check a bunch of things, understand the algorithm, do some performance testing, etc…
Apart from enjoying the summer, I’ve spent time hacking on MRI, especially since I’ve been accepted as a committer. The feature freeze for Ruby 1.9.2 was planned for yesterday and this has been pushed back a couple of days before. Rejoice!
Why?
I have not been actively looking for a job yet. Nevertheless, I was contacted by a startup and invited to spend a week in Silicon Valley / San Francisco, hacking around with them to see if I could become part of their team, which I found quite flattering. I learned lots of new things in California. A couple of new words too. I’m still unsure as to what exactly a hipster is, but “stickler” was easier to grasp: one who insists on exactness or completeness in the observance of something.
Quick quirky quiz (schizo version)
1 2 3 4 | |
Here’s how I got to checkout Ruby’s source and stumble upon that.
Last time I asked a simple (but quite hard) Ruby quiz:
1 2 3 4 | |
I just love hashes. So much so, I named my blog after them. I also like that the hash sign is used for comments, in Ruby, or the way hash resembles hatch, thus the messy graphic theme and all. But I really like hashes. They are like mini-objects (object hatchlings?) and I tend to use them to store all sorts of information or instead of many conditions with case x; when :a ...; when :b ....
So I was quite surprised to note that in Ruby, either it’s really easy and natural to create a hash (with the super nice {:key => value, ...} syntax) or