I am sure others will jump in here, but as far as I can tell there are
only 2 reasons to use <CFSCRIPT>:

1) For some operations the syntax is cleaner, for example, if you need
to set 20 CF variables - the simple name=value; syntax is cleaner than
using lots of <CFSET> tags.

2) If you need to port code (maybe functions) between languages - maybe
CF and ActionScript or JavaScript, then the similarities make that task
easier (although <CFSCRIPT> is *not* syntactically the same as those
languages).

--- Ben



-----Original Message-----
From: Tony Weeg [mailto:tony@;navtrak.net] 
Sent: Tuesday, November 12, 2002 4:29 PM
To: CF-Talk
Subject: RE: cfscript performance (was cfscript book)


it certainly helps....thanks for the info....although
I am sure there will be a flood of opinions on this, so that's really
why I started the thread....

should any of us who don't already know, bother learning that way of
coding for cf?

.tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-----Original Message-----
From: Fitch, Tyler [mailto:tfitch@;isitedesign.com] 
Sent: Tuesday, November 12, 2002 4:21 PM
To: CF-Talk
Subject: cfscript performance (was cfscript book)


Tony,

Pre CFMX using a block of cfscript to set some variables or perform most
tasks would give you an increase in performance.  Now with MX if you
have a block of cfscript and set 10 variables compared to 10 <cfset>
tags the only difference would be the white space between the <cfset>
tags.

HTH,

t

**********************************************************************
Tyler M. Fitch
Certified Advanced ColdFusion 5 Developer http://isitedesign.com
**********************************************************************

-----Original Message-----
From: Tony Weeg [mailto:tony@;navtrak.net] 
Sent: Tuesday, November 12, 2002 12:57 PM
To: CF-Talk
Subject: RE: cfscript book


now I am asking all of these questions, is cfscript really that good to
use? or could I go all day long using cftags and never see much
performance difference....

tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to