And now, an important message about cfcompile ...

sorry if i'm wandering too far afield here, but while i was on the topic, i
felt compelled to write a heads up about deploying with cfcompile in
response to Dave's query.

It *seems* you can easily introduce subtle bugs into your application if you
deploy a mix of compiled templates and cf source code to your production
server. I noticed this when playing a last minute round of "Is this what you
mean?" with a client that requested a change. Rather than compile each
incremental modification to show them online, i just uploaded the source and
let the server auto-compile it. After the client asked for the last change
and it was clear that it would be final, i compiled it and uploaded the
compiled templates to the server, overwriting the the cf source templates,
and started getting weird results and errors. After some head scratching, i
overwrote the whole application with my compiled version, which worked
perfectly here, and it still didn't work! (WTF!) I could tell from the error
that my final changes weren't being picked up.

I'm still not 100% sure why, but one suspicion is that the problem might
have been that the date-time stamp on the auto-compiled version was hours
different from the datetime stamp on my compiled version (because of a time
zone difference), even tho' my compiled version was actually the latest in
absolute terms. Either that or CF was preferencing it's own auto-compiled
version over mine. I filed a bug report just in case it was the latter
(which after thinking about it, seems like it might be the case, since i'm
east of the server).

Now, what does this have to do with CFC's, you may rightly ask? Well ... not
much, but i was modifying a set of CFC's when i ran across this. :)

*Disclaimer: I'm not a professional bug hunter - so count this as a
provisional observation.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Dave Merrill
Sent: Saturday, May 14, 2005 3:35 PM
To: [email protected]
Subject: RE: [CFCDev] CFC wish-list


I haven't explored mx7's cfcompile tool, but I'm wondering how much it
catches what would otherwise be runtime errors. Even if you didn't want to
deploy with it, just running it as another form of testing might be
beneficial. Certainly that's true in other languages.

Are people typically trying that? Comments?

Dave Merrill




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

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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






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

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to