[BioRuby] [GSoC][NeXML and RDF API] Code Review.
Naohisa GOTO
ngoto at gen-info.osaka-u.ac.jp
Mon Jun 28 12:54:09 UTC 2010
Dear Anurag,
Do not add methods in other classes and modules outside Bio.
Modifying other classes and modules outside Bio namespace is
prohibited in BioRuby library because such kind of code could
make conflicts with user scrpits or other libraries when each
code defines a method with the same name with different behavior
or when the original class is refactored by the original authors.
It is BioRuby's policy to respect user's freedom. For example,
if we defined Array#has?, a user who want to define Array#has?
with different meanings could not use BioRuby. So, to keep
user's right, it is our policy not to change outside Bio as
far as possible.
PS. You may find some exceptinal codes in Bio::Shell and in
sample scripts, because they are separate applications.
Naohisa Goto
ngoto at gen-info.osaka-u.ac.jp / ng at bioruby.org
On Mon, 28 Jun 2010 15:26:52 +0530
Anurag Priyam <anurag08priyam at gmail.com> wrote:
> > ..... Also, when parsing this type of XML some Ruby reflection
> > may come in handy - I did some of that in my BioRuby GEO parser, which
> > lives in my GEO branch on github.
>
>
> I picked up the method_missing trick for the serializer.
>
> http://github.com/yeban/bioruby/blob/writer/lib/bio/db/nexml/writer.rb
>
>
> > You should look at each class and
> > see if you can refactor it down to a single solution. Just make sure
> > it is not at the expense of readability and understanding.
> >
> > Post us some ideas here, before you start hacking code.
> >
> > Pj.
> >
> >
> I will.
>
> --
> Anurag Priyam,
> 2nd Year Undergraduate,
> Department of Mechanical Engineering,
> IIT Kharagpur.
> +91-9775550642
> _______________________________________________
> BioRuby Project - http://www.bioruby.org/
> BioRuby mailing list
> BioRuby at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioruby
More information about the BioRuby
mailing list