>-----Original Message-----
>Clearly that is not a good approach, but looking at typical OO 
>code with reams of similar code repeated across potentially 
>hundreds of entities, that does not seem a good approach either. 
>In my previous program, if I wanted to change how a record was 
>saved across all business entities, I went to one script, changed 
>the clearly commented, simply parameterized SQL and was done.


I don't think it's fair to characterize OO code as "typically" having
any more duplicated blocks than other, non-OO code. In any coding style,
copy and paste is the source of many problems. As i mentioned, you could
use inheritance or cfinclude to extract similar code into it's own
component and or file, and then you'd only have to make the change in
one place.

/t


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to