Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: What databases have taught me

Re: What databases have taught me

From: Marshall <marshall.spight_at_gmail.com>
Date: 2 Jul 2006 17:42:08 -0700
Message-ID: <1151887328.909068.267610@p79g2000cwp.googlegroups.com>


Robert Martin wrote:

>

> I think you'd need this code anyway if the above query was issued from
> more than one place. I doubt you'd want to duplicate the string.

It depends. If we imagine the same query existing in two places in the code, and imagine what could make us want to change it in the future, do we imagine that we'd necessarily change *both* together or might we just want to change one?

There is also the question of how little code can there be such that we still call it a coherent abstraction? My general claim is that one line of code is typically *not*a coherent abstraction. Because once we abstract it as a method, what do we need to do to invoke that method? One line of code. So we didn't gain anything. (Of course, not all lines of code are of equal complexity, so this is not a precise measure.)

Marshall Received on Sun Jul 02 2006 - 19:42:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US