Thursday, April 30, 2009

Ruby's object.methods reflection in Scala

Update: Just found out the Scala REPL in trunk has tab completion, which does pretty much exactly this with a lot less fuss. Cool.

If you're coming from the Ruby world to learn Scala you'll learn quickly how much you miss Ruby's elegant reflection. On day 5 of my Scala adventure I took a crack at using Java's reflection APIs to do the job. I think it worked out pretty well. I'd love to hear what you think about it.

get the code here

//names of all methods, including super classes

//signatures of all methods, excluding super classes

Wednesday, April 29, 2009

Tuesday, April 21, 2009

.:format feature breaks URL compliance (rfc1738) in Rails

I put in a lighthouse ticket in Rails which you can read here. +1 me if you agree.