Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #517

Re: Searching for ranges

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.databases
Subject Re: Searching for ranges
Date 2012-01-19 09:32 -0800
Organization Canadian Mind Products
Message-ID <gjkgh7hfeepgr7huaj254a0uf0tii4vvar@4ax.com> (permalink)
References <nqukc7ta1mrd128h8tqbabo9k9e76eq7ak@4ax.com> <50f287a6-be60-4185-a5ba-2aed287e91e2@z8g2000pbe.googlegroups.com>

Show all headers | View raw


On Tue, 17 Jan 2012 11:59:58 -0800 (PST), David Lee Lambert
<davidl@lmert.com> wrote, quoted or indirectly quoted someone who said
:

>
>> deciding which rule to use for inserting dashes in a ISBN depending on
>> is [?] band.
>
>The rules for this fit on a single page of human-readable text,  I
>don't see how anything involving SQL parsing and a database lookup
>could possibly be more efficient than just implementing them in a
>procedural language.

I was not suggesting that you would use SQL for such code.  I have
implemented in it Java.  See http://mindprod.com/products1.html#ISBN

I was just pointing out that slicing up a range into a number of
abutting bands of variable width is a pattern than shows up in many
different problems where you want to rapidly identify the band.  I was
suggesting there ought to be canned classes or language features in
Java/SQL etc . for dealing with it that hide the housekeeping.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
One of the most useful comments you can put in a program is 
"If you change this, remember to change ?XXX? too".
 

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Find similar


Thread

Searching for ranges Roedy Green <see_website@mindprod.com.invalid> - 2011-11-21 08:56 -0800
  Re: Searching for ranges Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-21 21:18 +0000
  Re: Searching for ranges David Lee Lambert <davidl@lmert.com> - 2012-01-17 11:59 -0800
    Re: Searching for ranges Roedy Green <see_website@mindprod.com.invalid> - 2012-01-19 09:32 -0800

csiph-web