Chris,

I would be wary of using cfscript just for supposed performance gains
over tags.  My understanding is that those gains were eliminated (or
reduced to the point of insignificance) in CF 6.x and 7.x.  Here are
what I see as the pros and cons of cfscript.  These points are largely
a matter of preference:

Pros of cfscript
-- more readable
-- less typing
-- more like other languages (Java, JavaScript) - sometimes can copy
Java snippets and they function with little modification in cfscript

Cons
-- many pieces of cf functionality do not exist in cfscript (e.g.
throw, dump, abort) or are awkward (looping over queries) - we have a
CFScript.cfm include with functions like Throw(), Dump(), Abort() to
get around this, but for cfquery we always use tags
-- might be inconsistent with other code written in tags; I like to
see consistency throughout an application

Jon


> I was told by some members of my local CFUG that
> writing code within CFScript tags whenever possible is faster (performance
> wise), so I'm giving it a go.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264247
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to