I always cringe when I see "By" or "From" in a method name.

For me, it looks like it could be a duplication of code.

If you have some getProducts logic, you want to be careful not to duplicate that logic in multiple methods.

If your getProductsByCat and getProductsByFormat methods are both calling a common getProducts functionality in the background, however, you are probably OK.

Just my limited experience, YMMV.

Steve

At 11:06 AM 6/26/2006, Aaron Roberson wrote:
I discovered that my database needed to be redesigned and now it
requires two different methods anyways (getProductsByCat and
getProductsByFormat).

It's always fun being the server administrator, db designer and
administrator, web designer and developer, etc. etc. I often feel like
a "jack of all trades, and a master of none!"

Thanks again guys,
Aaron



----------------------------------------------------------
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