A few weeks after Ruby Quiz 139 I found myself needing again to do a binary search in a big text file. So I converted the solution submitted to OOP and released it as a rubygem.
With this gem, you create first an index of the file you need to search and then do the searches. More info at http://binarysearch.rubyforge.org/
> A few weeks after Ruby Quiz 139 I found myself needing again to do a > binary search in a big text file. So I converted the solution > submitted to OOP and released it as a rubygem.
> With this gem, you create first an index of the file you need to > search and then do the searches. More info at > http://binarysearch.rubyforge.org/
> Bye,
Sorry but I guess the gem's name is somewhat inadequate. This is not a binary search library, but a text indexing and searching library which happens to employ a binary search algorithm. So you essentially reserve this gem name from some possible real binsearch library...
On 10/29/07, mortee <mortee.li...@kavemalna.hu> wrote:
> Sorry but I guess the gem's name is somewhat inadequate. This is not a > binary search library, but a text indexing and searching library which > happens to employ a binary search algorithm. So you essentially reserve > this gem name from some possible real binsearch library...
You're right. I never stop for a second thought about the gem's name. Maybe I choose some cryptic name where there is no chance of collision.
Luis Parravicini wrote: > On 10/29/07, mortee <mortee.li...@kavemalna.hu> wrote: >> Sorry but I guess the gem's name is somewhat inadequate. This is not a >> binary search library, but a text indexing and searching library which >> happens to employ a binary search algorithm. So you essentially reserve >> this gem name from some possible real binsearch library...
> You're right. I never stop for a second thought about the gem's name. > Maybe I choose some cryptic name where there is no chance of > collision.
I haven't intended to suggest a cryptic name - just something more specific to what your gem actually does.
a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama