|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cfscript book
Author: Tony Weeg
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95595
does anyone have a good cfscript book to recommend?
thanks!
...tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
Author: samcfug
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95633
http://www.fusionscript.com
=====================================
Douglas White
group Manager
mailto:doug@samcfug.org
http://www.samcfug.org
=====================================
| does anyone have a good cfscript book to recommend?
|
| thanks!
|
| ..tony
|
| Tony Weeg
| Senior Web Developer
| Information System Design
| Navtrak, Inc.
| Fleet Management Solutions
| www.navtrak.net
| 410.548.2337
|
|
Author: Michael Dinowitz
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95658
http://www.houseoffusion.com/docs/cfscript.htm
----- Excess quoted text cut - see Original Post for more -----
Author: Michael Dinowitz
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95659
http://www.houseoffusion.com/docs/cfscript.htm
----- Excess quoted text cut - see Original Post for more -----
Author: Chris Kief
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95662
I believe Tony was referring to part of the ColdFusion language
(cfscript).
As far as a good book goes, about the only thing I've read lately with
decent cfscript coverage is Ben Forta's advanced CFMX app. dev. book.
The book touches on the use of variables, functions, if-else,
switch-case, loops, continue/break, etc.
chris kief
http://www.fusionscript.com
=====================================
Douglas White
group Manager
mailto:doug@samcfug.org
http://www.samcfug.org
=====================================
| does anyone have a good cfscript book to recommend?
|
| thanks!
|
| ..tony
|
| Tony Weeg
| Senior Web Developer
| Information System Design
| Navtrak, Inc.
| Fleet Management Solutions
| www.navtrak.net
| 410.548.2337
|
|
Author: Tony Weeg
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95670
chris....
nail.....right on the head!
that's what I was looking for, a book that really
goes in depth with syntax, real world examples, etc...
that I could take and expound upon....im not really
that good with writing ecma-type scripts, however I can
read/interpret them well, and now I want to be able
to really write them, from scratch....from what I see
on this list, most of what I would deem as the "best coders"
on here, seem to always submit the code that they
use, and suggest for help to others, in cfscript blocks vs. cfml
code.....
so, the question remains, is there one that really goes in depth
with cfscript?
thanks.
...tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
I believe Tony was referring to part of the ColdFusion language
(cfscript).
As far as a good book goes, about the only thing I've read lately with
decent cfscript coverage is Ben Forta's advanced CFMX app. dev. book.
The book touches on the use of variables, functions, if-else,
switch-case, loops, continue/break, etc.
chris kief
http://www.fusionscript.com
=====================================
Douglas White
group Manager
mailto:doug@samcfug.org
http://www.samcfug.org
=====================================
| does anyone have a good cfscript book to recommend?
|
| thanks!
|
| ..tony
|
| Tony Weeg
| Senior Web Developer
| Information System Design
| Navtrak, Inc.
| Fleet Management Solutions
| www.navtrak.net
| 410.548.2337
|
|
Author: Jeffry Houser
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95681
What does Fusionscript have to do with cfscript? As near as I can tell
there are no relation.
I doubt you'll find a book dedicated to cfscript.
I'd recommend my CF5 Beginner's book. The chapter on CFScript covers all
you need to know, and you won't be able to beat the price with some of the
more comprehensive
books. <http://www.amazon.com/exec/obidos/ASIN/0072191090/instantcoldfu-20>
At 11:15 AM 11/12/2002 -0600, you wrote:
----- Excess quoted text cut - see Original Post for more -----
Author: Massimo, Tiziana e Federica
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95691
"Tony Weeg" <tony@navtrak.net> wrote in message
news:002e01c28a80$f2816b10$ba0b0a0a@navtrak267...
> so, the question remains, is there one that really goes in depth
> with cfscript?
Nothing that goes up to the level I would love to see :-(
A few advanced books on CF MX still have to hit the shelves, so maybe there
is still hope, but I always felt cfscript was somewhat neglected in books...
I know a guy who would love to read a dedicated book on the subject, but I
guess he is busy frying other fishes right now
----------------------------
Massimo Foti
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/go/team
----------------------------
Author: Ben Forta
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95695
I hate to put it this bluntly, but there really is not that much to say
about <CFSCRIPT>. And aside from UDFs (added in CF5 and surpassed by the
tag interface in CFMX) and basic try/catch (added in CFMX but less
powerful than the equivalent tags) <CFSCRIPT> has really not changed
much since it was introduced in CF4. The reason you have not seen
dedicated books on the subject is that it would be hard to fill a book
just on <CFSCRIPT> - you'd need to use tags anyway sooner or later.
--- Ben
"Tony Weeg" <tony@navtrak.net> wrote in message
news:002e01c28a80$f2816b10$ba0b0a0a@navtrak267...
> so, the question remains, is there one that really goes in depth with
> cfscript?
Nothing that goes up to the level I would love to see :-(
A few advanced books on CF MX still have to hit the shelves, so maybe
there is still hope, but I always felt cfscript was somewhat neglected
in books...
I know a guy who would love to read a dedicated book on the subject, but
I guess he is busy frying other fishes right now
----------------------------
Massimo Foti
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/go/team
----------------------------
Author: Tony Weeg
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95701
that makes sense....thank you.
...tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
I hate to put it this bluntly, but there really is not that much to say
about <CFSCRIPT>. And aside from UDFs (added in CF5 and surpassed by the
tag interface in CFMX) and basic try/catch (added in CFMX but less
powerful than the equivalent tags) <CFSCRIPT> has really not changed
much since it was introduced in CF4. The reason you have not seen
dedicated books on the subject is that it would be hard to fill a book
just on <CFSCRIPT> - you'd need to use tags anyway sooner or later.
--- Ben
"Tony Weeg" <tony@navtrak.net> wrote in message
news:002e01c28a80$f2816b10$ba0b0a0a@navtrak267...
> so, the question remains, is there one that really goes in depth with
> cfscript?
Nothing that goes up to the level I would love to see :-(
A few advanced books on CF MX still have to hit the shelves, so maybe
there is still hope, but I always felt cfscript was somewhat neglected
in books...
I know a guy who would love to read a dedicated book on the subject, but
I guess he is busy frying other fishes right now
----------------------------
Massimo Foti
Team Macromedia Volunteer for Dreamweaver
http://www.macromedia.com/go/team
----------------------------
Author: S. Isaac Dealey
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95709
----- Excess quoted text cut - see Original Post for more -----
Yea, FusionScript is mostly an API for using ColdFusion syntax to generate
client side javascript. Really neat API ...
I have some issues with implementing it -- mostly that it requires being
either in the custom tags directory or in the same local directory it's
being called fro... Since my apps generally use multiple sub-directories and
are designed with the intent of making them compatible with shared hosting,
there's not a good way for me to implement the current version of the API...
Plus, it's still really young and going through a lot of debugging and such,
so I'm waiting for it to mature a bit before integrating it into my apps,
but it looks very promising. Particularly the ActiveServer component which
allows you to pass data to and from the CF Server without a page reload.
This can also be done with Flash (and I suspect in some cases in future
versions of the API may be done with Flash in FusionScript), but the API
abstracts all this so that you don't need to know Flash to use this
functionality.
But it has little to do with cfscript. ;P
S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
Author: charlie griefer
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95714
Ben Forta writes:
----- Excess quoted text cut - see Original Post for more -----
point taken...but still, even one of those '10 minute pocket reference' type
of books would be nice. the cf docs really are lacking when it comes to
cfscript. a few code samples, a few sample apps, etc...
*i'd* shell out $9.95 for the cfscript pocket reference :)
charlie
----- Excess quoted text cut - see Original Post for more -----
Author: Michael Dinowitz
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95718
Email me off list with what you want added to this doc and you'll have your 10
minute reference.
http://www.houseoffusion.com/docs/cfscript.htm
I know I need to put in the UDF portion (separate file now) and update it to
CFMX. What else would you like? Email me at mdinowit@houseoffusion.com with the
answer to that.
----- Excess quoted text cut - see Original Post for more -----
Author: Marlon Moyer
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95720
Print out the link Michael D. gave you in a very very small font :)
Make that $9.95 check out to Marlon Moyer
charlie griefer wrote:
----- Excess quoted text cut - see Original Post for more -----
Author: Rob Rohan
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95721
Speaking of the cfdocs lacking, the next time cf has a quick reference - how
about showing return values from a function?
For example my CFML quick ref says:
ArraySort(array, sort_type, [,sort_order])
helpful, but does it return a new sorted array or a yes/no?
String ArraySort(array, sort_type, [,sort_order])
would be much more helpful and clear in the "quick" reference.
:)
rob
Ben Forta writes:
----- Excess quoted text cut - see Original Post for more -----
point taken...but still, even one of those '10 minute pocket reference' type
of books would be nice. the cf docs really are lacking when it comes to
cfscript. a few code samples, a few sample apps, etc...
*i'd* shell out $9.95 for the cfscript pocket reference :)
charlie
----- Excess quoted text cut - see Original Post for more -----
Author: Tony Weeg
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95724
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
Email me off list with what you want added to this doc and you'll have
your 10
minute reference.
http://www.houseoffusion.com/docs/cfscript.htm
I know I need to put in the UDF portion (separate file now) and update
it to
CFMX. What else would you like? Email me at mdinowit@houseoffusion.com
with the
answer to that.
>
> point taken...but still, even one of those '10 minute pocket
reference' type
> of books would be nice. the cf docs really are lacking when it comes
to
----- Excess quoted text cut - see Original Post for more -----
with
----- Excess quoted text cut - see Original Post for more -----
maybe
> > there is still hope, but I always felt cfscript was somewhat
neglected
> > in books...
> >
> > I know a guy who would love to read a dedicated book on the subject,
but
----- Excess quoted text cut - see Original Post for more -----
Author: Larry Juncker
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95726
Very Nice Michael,
I also have been looking for something like this.
Larry Juncker
Senior Cold fusion Developer
Heartland Communications Group, Inc.
larry@heartlandinternet.com
(515) 574-2122
CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed. This e-mail may contain
information that is privileged, confidential and/or personal. If the reader
of this message is not the intended recipient (or the employee or agent
responsible to deliver it to the intended recipient), you are hereby
notified that any dissemination, distribution, or copying of this
communication is prohibited.
If you have received this communication in error, please notify us at the
e-mail listed above.
Email me off list with what you want added to this doc and you'll have your
10
minute reference.
http://www.houseoffusion.com/docs/cfscript.htm
I know I need to put in the UDF portion (separate file now) and update it to
CFMX. What else would you like? Email me at mdinowit@houseoffusion.com with
the
answer to that.
>
> point taken...but still, even one of those '10 minute pocket reference'
type
----- Excess quoted text cut - see Original Post for more -----
Author: todd
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95728
LOL... :)
----- Excess quoted text cut - see Original Post for more -----
Author: Raymond Camden
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95729
This isn't a bad idea. I added an enhancement request for it. (Which
doesn't mean it will actually get done - but the doc peeps will consider
it.)
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire
Email : ray@camdenfamily.com
WWW : www.camdenfamily.com/morpheus
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
----- Excess quoted text cut - see Original Post for more -----
Author: charlie griefer
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95732
There is also this that I found:
http://www.rapidcf.com/tools/reference.cfm
disclaimer: i make no guarantees as to the quality and/or accuracy of the
content above. i'm not associated with 'em...just a link that i thought
might be handy for some.
gonna go check out Michael's stuff more in-depth. I did glance at it this
morning when the link was first posted...but had not yet had my coffee, so
very little of it 'stuck' :)
charlie
Marlon Moyer writes:
----- Excess quoted text cut - see Original Post for more -----
Author: Rick Faircloth
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95733
Haven't heard of FusionScript before today, but it looks impressive.
Please show me where the differences are, but it sure looks like
FusionScript is a viable replacement in many ways for Flash Remoting
without the need to purchase an expensive app, climb that extensive
learning curve (espeically for those of us who know no Javascript),
or bother with creating special graphics.
What I've been considering Flash MX for is creating one-page applications,
that update "onChange" and FusionScript seems a relatively simple way
to achieve that. The tutorials seem simple enough.
What am I missing?
Rick
Rick Faircloth,
Prism Productions
----- Excess quoted text cut - see Original Post for more -----
Yea, FusionScript is mostly an API for using ColdFusion syntax to generate
client side javascript. Really neat API ...
I have some issues with implementing it -- mostly that it requires being
either in the custom tags directory or in the same local directory it's
being called fro... Since my apps generally use multiple sub-directories and
are designed with the intent of making them compatible with shared hosting,
there's not a good way for me to implement the current version of the API...
Plus, it's still really young and going through a lot of debugging and such,
so I'm waiting for it to mature a bit before integrating it into my apps,
but it looks very promising. Particularly the ActiveServer component which
allows you to pass data to and from the CF Server without a page reload.
This can also be done with Flash (and I suspect in some cases in future
versions of the API may be done with Flash in FusionScript), but the API
abstracts all this so that you don't need to know Flash to use this
functionality.
But it has little to do with cfscript. ;P
S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
Author: Jeffry Houser
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95737
As a general note, this is the 'hand-out' from a presentation that Chris
Graves ( of RapidCF ) gave at a Connecticut CFUG meeting. back when
Connecticut still had CFUGs. The presentation was on, of course, CFScript.
Chris knows his stuff, but last I heard he was off doing Java-oriented
stuff these days.
At 02:12 PM 11/12/2002 -0700, you wrote:
----- Excess quoted text cut - see Original Post for more -----
Author: Ben Forta
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95741
If the reason you are looking at <CFSCRIPT> is performance then don't
bother. Sure you may find subtle differences, but honestly, in the grand
scheme of things it has little impact. Here is some test code I just
wrote, copy and paste it in CFMX and try it - it just does a bunch of
loops and sets in both CFML and <CFSCRIPT> and graphs the results (it
repeats the tests to account for inconsistent highs and lows). You
should see that the difference is really not significant anymore (in
CFMX).
--- Ben
<!--- Set vars --->
<CFSET tests=20>
<CFSET loops=10000>
<!--- Create query to save results --->
<CFSET q=QueryNew("cfml,cfscript")>
<!--- Loop through tests --->
<CFLOOP INDEX="t" FROM="1" TO="#tests#">
<!--- Time CFML loop and sets --->
<CFSET l=GetTickCount()>
<CFLOOP INDEX="i" FROM="1" TO="#loops#">
<CFSET x=i>
</CFLOOP>
<CFSET l1=GetTickCount()-l>
<!--- Time CFSCRIPT loop and sets --->
<CFSET l=GetTickCount()>
<CFSCRIPT>
for (i=1; i LTE loops; i = i +1)
{
x=i;
}
</CFSCRIPT>
<CFSET l2=GetTickCount()-l>
<!--- Add this test to the query --->
<CFSET QueryAddRow(q)>
<CFSET QuerySetCell(q, "cfml", l1)>
<CFSET QuerySetCell(q, "cfscript", l2)>
</CFLOOP>
<!--- Now graph the results --->
<CFCHART CHARTHEIGHT="200" CHARTWIDTH="500" SHOWLEGEND="yes">
<CFCHARTSERIES TYPE="line" SERIESLABEL="CFML">
<CFOUTPUT QUERY="q">
<CFCHARTDATA ITEM="#CurrentRow#" VALUE="#cfml#">
</CFOUTPUT>
</CFCHARTSERIES>
<CFCHARTSERIES TYPE="line" SERIESLABEL="CFSCRIPT">
<CFOUTPUT QUERY="q">
<CFCHARTDATA ITEM="#CurrentRow#" VALUE="#cfscript#">
</CFOUTPUT>
</CFCHARTSERIES>
</CFCHART>
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
Email me off list with what you want added to this doc and you'll have
your 10 minute reference. http://www.houseoffusion.com/docs/cfscript.htm
I know I need to put in the UDF portion (separate file now) and update
it to CFMX. What else would you like? Email me at
mdinowit@houseoffusion.com with the answer to that.
>
> point taken...but still, even one of those '10 minute pocket
reference' type
> of books would be nice. the cf docs really are lacking when it comes
to
----- Excess quoted text cut - see Original Post for more -----
with
----- Excess quoted text cut - see Original Post for more -----
maybe
> > there is still hope, but I always felt cfscript was somewhat
neglected
> > in books...
> >
> > I know a guy who would love to read a dedicated book on the subject,
but
----- Excess quoted text cut - see Original Post for more -----
Author: Matthew Walker
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95751
> 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....
The only reason I sometimes use cfscript is that in certain situations
it is a lot easier to read IMO. Those situations are where a lot of
processing or calculations are occurring without anything being output.
Although we can now use cf tags in functions, I would still use cfscript
where possible as it's easier to scan. To take a basic example, I find
<cfscript>
RS = Chr(30); // Record separator
CR = Chr(13); // Carriage return
LF = Chr(10); // Line feed
HT = Chr(9); // Horizontal tab
SUB = Chr(26); // Substitute
CRLF = CR & LF;
</cfscript>
easier to read than:
<cfset RS = Chr(30)> <!--- Record separator --->
<cfset CR = Chr(13)> <!--- Carriage return --->
<cfset LF = Chr(10)> <!--- Line feed --->
<cfset HT = Chr(9)> <!--- Horizontal tab --->
<cfset SUB = Chr(26)> <!--- Substitute --->
<cfset CRLF = CR & LF>
Author: S. Isaac Dealey
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95767
This is probably something you could achieve with FusionScript faster /
easier / cheaper ... from the sound of it anyway. The guy who invented FS
put up a chat room done in about 15 minutes with it at one point -- it was
really impressive: all html, but without "click" any "click" page "click"
refreshing "click" ... What flash gives you that FS doesn't really is
animation. Which is awesome, but the Flash API is overkill if all you need
to do is set a persistent variable on the server.
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
----- Excess quoted text cut - see Original Post for more -----
Author: Pete Ruckelshaus
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95847
Personally, I prefer using CFScript over "regular" CF when I can use it.
First, it's much easier to set a bunch of variables inside a CFScript block
(IMO). Second, I find it easier to "read" CFScript logic blocks. Finally,
it IS faster when you do something beyond very basic stuff, and (again, IMO)
it makes for a more compact page of code. Add to that a bunch of _GREAT_
UDF's in CFLIB (http://www.cflib.org/) and you CAN actually mimic the
functionality of a good number of regular CF tags.
Pete
> 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
>
Author: todd
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95851
Just becareful with mimicing cfinclude. I would hestitate to say that
cfscript block would bring you any performance gains under CFMX due to the
compiling.
Do your own speed test:
test.cfm:
<cfset begin = getTickCount()>
<cfset finalIndx = 0>
<cfloop index="indx" from="1" to="100" step="1">
<cfset finalIndx = incrementValue(finalIndx)>
</cfloop>
<cfset end = getTickCount()>
<cfset total = end - begin>
<cfoutput>#end# - #begin# = #total#</cfoutput>
test1.cfm:
<cfscript>
begin = getTickCount();
finalIndx = 0;
for(indx=1;indx LTE 100; indx=indx+1){
finalIndx = incrementValue(finalIndx);
}
end = getTickCount();
total = end - begin;
writeoutput(end & "-" & begin & "=" & end);
</cfscript>
test.cfm results: 2107909460 - 2107909460 = 0
test1.cfm results: 2107965773-2107965773=0
Not that this is an accurate test, but ... where's the gain in cfscript?
In the above case, you'll see that the regular <tags> were somewhat faster
than the cfscript block.
~Todd
----- Excess quoted text cut - see Original Post for more -----
--
============================================================
Todd Rafferty (todd@web-rat.com) - http://www.web-rat.com/ |
Team Macromedia Volunteer for ColdFusion |
http://www.macromedia.com/support/forums/team_macromedia/ |
http://www.devmx.com/ - Todd (Moderator / CoFounder) |
http://www.flashCFM.com/ - webRat (Moderator) |
Speakeasy DSL - http://www.speakeasy.net/refer/18280 |
============================================================
Author: Mark A. Kruger - CFG
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#95861
Todd,
Would it be safe to say that the underlying code generated by a CFSCRIPT
block on CFMX would be virutally the same as code compiled using tag syntax?
-mk
Just becareful with mimicing cfinclude. I would hestitate to say that
cfscript block would bring you any performance gains under CFMX due to the
compiling.
Do your own speed test:
test.cfm:
<cfset begin = getTickCount()>
<cfset finalIndx = 0>
<cfloop index="indx" from="1" to="100" step="1">
<cfset finalIndx = incrementValue(finalIndx)>
</cfloop>
<cfset end = getTickCount()>
<cfset total = end - begin>
<cfoutput>#end# - #begin# = #total#</cfoutput>
test1.cfm:
<cfscript>
begin = getTickCount();
finalIndx = 0;
for(indx=1;indx LTE 100; indx=indx+1){
finalIndx = incrementValue(finalIndx);
}
end = getTickCount();
total = end - begin;
writeoutput(end & "-" & begin & "=" & end);
</cfscript>
test.cfm results: 2107909460 - 2107909460 = 0
test1.cfm results: 2107965773-2107965773=0
Not that this is an accurate test, but ... where's the gain in cfscript?
In the above case, you'll see that the regular <tags> were somewhat faster
than the cfscript block.
~Todd
> Personally, I prefer using CFScript over "regular" CF when I can use it.
> First, it's much easier to set a bunch of variables inside a CFScript
block
> (IMO). Second, I find it easier to "read" CFScript logic blocks.
Finally,
> it IS faster when you do something beyond very basic stuff, and (again,
IMO)
----- Excess quoted text cut - see Original Post for more -----
--
============================================================
Todd Rafferty (todd@web-rat.com) - http://www.web-rat.com/ |
Team Macromedia Volunteer for ColdFusion |
http://www.macromedia.com/support/forums/team_macromedia/ |
http://www.devmx.com/ - Todd (Moderator / CoFounder) |
http://www.flashCFM.com/ - webRat (Moderator) |
Speakeasy DSL - http://www.speakeasy.net/refer/18280 |
============================================================
Author: Kola Oyedeji
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:18789#96071
Isaac,
Are there any browser/platform compatibility issues with fusionscript?
>> > What does Fusionscript have to do with cfscript? As near as I
can
----- Excess quoted text cut - see Original Post for more -----
covers
>> > all
>> > you need to know, and you won't be able to beat the price with some
of
----- Excess quoted text cut - see Original Post for more -----
<http://www.amazon.com/exec/obidos/ASIN/0072191090/instantcoldfu-20>
----- Excess quoted text cut - see Original Post for more -----
being
>> either in the custom tags directory or in the same local directory
it's
>> being called fro... Since my apps generally use multiple
sub-directories
----- Excess quoted text cut - see Original Post for more -----
and
>> such,
>> so I'm waiting for it to mature a bit before integrating it into my
apps,
>> but it looks very promising. Particularly the ActiveServer component
>> which
>> allows you to pass data to and from the CF Server without a page
reload.
>> This can also be done with Flash (and I suspect in some cases in
future
>> versions of the API may be done with Flash in FusionScript), but the
API
----- Excess quoted text cut - see Original Post for more -----
|
May 18, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||