[BioRuby] [GSoC][NeXML and RDF API] Code Review.

Naohisa GOTO ngoto at gen-info.osaka-u.ac.jp
Fri Jul 2 00:49:08 EDT 2010


Hi,

I find good examples of alternatives for method_missing in the book
"Refactoring: Ruby Edition" section 6.18 and 6.19.
(http://www.amazon.com/Refactoring-Ruby-Jay-Fields/dp/0321603508 )

Naohisa Goto
ngoto at gen-info.osaka-u.ac.jp / ng at bioruby.org

On Mon, 28 Jun 2010 19:52:37 +0530
Anurag Priyam <anurag08priyam at gmail.com> wrote:

> > Please never use method_missing. It breaks error reporting and
> > makes very hard to debug and maintain both library codes and
> > user scripts.
> >
> 
> Hmm, I have experienced that. But the way I have used it affects only the
> Bio::NeXML::Writer class, so is it not safe in this case? Anyways I will
> change it as it does not offer much improvement to the code readability in
> my case. I just find it exciting :).
> 
> -- 
> Anurag Priyam,
> 2nd Year Undergraduate,
> Department of Mechanical Engineering,
> IIT Kharagpur.
> +91-9775550642



More information about the BioRuby mailing list