| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: What databases have taught me
On 2006-07-02 19:42:08 -0500, "Marshall" <marshall.spight_at_gmail.com> said:
> 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.
My general rule of thumb is that if two identical lines of code change identically over time, then they should be a single line of code in a function that's called twice.
-- 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 Jul 04 2006 - 18:04:08 CDT
![]() |
![]() |