Mousetrap 2.0
Introducing Functor
I was supposed be to working on our rewrite of the request lambda mapping code in Waves. Somehow instead, I ended up with functor. It actually started because I was thinking it would be cool to have a Resource class with overloaded methods for get, put, et al.
Introducing Autocode 0.9.9
Autocode is an open source class / module loader for Ruby. We’ve just updated it with some bug fixes and initialization hooks.
module_eval Versus instance_eval
Recently, doing some work on autocode (a new version of which is imminent), as well as some cool new features for Waves (more on this soon on the Waves blog), we found ourselves trying to grok the difference between module_eval and instance_eval. There didn’t seem to be a whole lot of definitive information available on the ‘net, I thought I’d take a stab at it here.
Threading In Ruby
Threads were cool for awhile, but now they’re evil. In the Ruby community, some of the cool kids are really serious about thread support and some of them aren’t. At the same time, Ruby itself is in a major transition when it comes to threading, which just adds to the confusion.
Facets Versus Extensions Versus ...
One of the great things about Ruby is that it’s so easy to extend the core libraries. Just re-open a class and start defining methods! In fact, it’s so easy, that it’s led to at least two gems whose sole purpose is to collect useful extensions.