Bryan F. Hogan wrote:

Raymond Camden wrote:

We can probably argue this back and forth, but you cannot deny that it is
fact that you need not initialize a variable in the same form as you plan on
using it. Therefore, it is not necessary to define X with queryNew() if you
plan on using it as a query later on.


Agreed

Why do you feel this makes code easier to maintain?


Glancing, code to be written against to create documentation, verification reports, etc.

I admitted that I overstated the performance penalty, and I'm not one of
those folks who write hard to read code to shave off 0.001% MS from their
total load time, but I still feel that this is a waste.


It is not needed for a functioning CFC however "waste" is not a word I would have chosen, it may not be useful for you, but it is some and therefor would not be a waste.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Hold your horse fella's! I never mind this to become like the discussion I've followed recent on CF-Talk about "The Best IDE" or "Macs V. PCs". That's become more subjective vs. objective options.

Although, both arguments regarding "to QueryNew() or NOT to QueryNew()" - that is the question....couldn't help myself to that overused saying. Anyways, I'm glad to hear that there isn't "one way" to do something here.

As to my personal preference - formed today mind you...would be just to leave var'ed as a string and let any exceptions handled by the calling template. I don't know - why create a query object and then run a query and replace the whole thing again. I doubt it's a performance thing and who really can tell exactly in all circumstances. I dunno, why do something when it's efforts are going to duplicated again...just seems like a "waste" ;-) jib for jab...sorry, couldnt' resist.

Thanks everyone...I originally thought I would post a link...as a minder of things to var in CFCs - hey it's easy to forget things sometimes.

.Peter J. Farrell
maestro publishing

Thanks all for your insight
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

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

Reply via email to