Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 979 Bytes

64277166693.markdown

File metadata and controls

22 lines (20 loc) · 979 Bytes
created_at tags
2013-10-17 05:28:31 +0000
ruby
rubyonrails
programming

And we can even add weird things like Array#forty_two. You cannot read the comment here, but it says, ‘Equal to self[41]. Also known as accessing “the reddit”.’ This sort of came out of a thread on reddit where somebody was complaining so loudly – why we would care to add second and third and fourth to Array. 'This is redundant! There’s already a mathematical approach to doing the same thing!’ It doesn’t make sense to them. It was weird. Like, why would somebody care about this level of aesthetics? And just to spite them, I added forty_two.

David Heinemeier Hansson, creator of Ruby on Rails, on why it monkey-patches the Ruby Array class to provide a forty_two method