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: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)

Re: The wisdom of the object mentors (Was: Searching OO Associations with RDBMS Persistence Models)

From: Robert Martin <unclebob_at_objectmentor.com>
Date: Tue, 20 Jun 2006 14:34:21 -0400
Message-ID: <2006062014342110672-unclebob@objectmentorcom>


On 2006-06-01 08:47:40 -0400, frebe73_at_gmail.com said:

> So, what is the gain in separating the SQL statements if the they can
> be regarded as constants?

The same gain we have in separating constants. We can name them. We can make subtle changes to them without changing the names. We can eliminate duplication.

Moreover, many of those constants have variable parts. We can hide the syntax of the constants by creating functions that manipulate them and insert the variable parts.

-- 
Robert C. Martin (Uncle Bob)  | email: unclebob_at_objectmentor.com
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |
Received on Tue Jun 20 2006 - 13:34:21 CDT

Original text of this message

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