Quantcast
Channel: Kerry Buckley » Ruby
Viewing all articles
Browse latest Browse all 10

My (very!) small part in the Array#forty_two controversy

$
0
0

For those outside the Rails community who have no idea what I’m on about, some people got a bit upset about Rails 2.2 defining Array#second up to Array#tenth, so for example you can call foo.fifth instead of foo[4] (you can already call foo.first instead of foo[0]). One of the last changes to be committed before 2.2 was released was to slim the list down to just second, third, fourth and fifth, but adding Array#forty_two (the ultimate answer) instead.

dhh_tweet.png

commit_1.png

kerry_reply.png

dhh_reply.png

commit_2.png


Viewing all articles
Browse latest Browse all 10

Trending Articles