[BioRuby] Code style question

Naohisa Goto ngoto at gen-info.osaka-u.ac.jp
Sun Aug 16 12:57:10 UTC 2009


Hi,

> The Readme for developers mentions that
> 
>   if __FILE__ == $0
> 
> is deprecated for testing.
> 
> In lib/bio/db/fasta.rb , there's a __FILE__ == $0 that isn't used for
> testing, but for demonstrating what the module's supposed to do. Is
> this kind of coding non-deprecated?
> 
> Andrew

Yes, deprecated for new codes. 

Old codes before the style have been deprecated may be existed.
We gradually move and rewrite them to unit tests and/or sample codes.

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





More information about the BioRuby mailing list