News for hackers. Stuff that matters.
Re:Do you know Ruby’s ‘Chainsaw’ method? by jrockway on Wednesday October 06, 2010 @11:38PM (#1766749)
method_missing / AUTOLOAD is a great way to break any tools that rely on being able to introspect your classes.

For something as simple as this, just add the methods to the class in a loop. Then you class works just like every other class; no introspection is broken. It's also faster at runtime.

Re:Do you know Ruby’s ‘Chainsaw’ method? by tomafro on Thursday October 07, 2010 @01:44AM (#1766957)
I can see how method_missing can break introspection, but I don't see how the same is true for Autoload. Could you give an example?
Re:Do you know Ruby’s ‘Chainsaw’ method? by draegtun on Thursday October 07, 2010 @05:28AM (#1767294)
I believe jrockway is referring to AUTOLOAD in Perl (ie. its equivalent of Ruby's method_missing).

ref: http://perldoc.perl.org/perlsub.html#Autoloading