The first technique we’ll look at in this series is something so basic it may not even seem worth spelling out. But sometimes old-school techniques are overlooked in the excitement of a young language.
Let’s use as our example a hypothetical communications protocol, Flying Monkey Transport Protocol (FMTP). Flying Monkey Transport Protocol is a packet-based […]
Monday, February 25, 2008
The one objection I haven’t heard yet to my monkey patching rant is: you’re a hypocrite!
Gasp, yes, I have written code that exploits Ruby’s open classes. It even extends Object, the core-est of the core! And then shamelessly contributed it to a publicly available gem!
As anyone who read past the title of my […]
Saturday, February 23, 2008
(The title of this post is intended to be deliberately provocative, as well as being a nod to Steven Colbert’s “The People Destroying America” segments. It’s provocative because I want to get people talking about this issue. I don’t actually think that monkey patching is “destroying” Ruby, but I do think the proliferation of the […]