ColdFusion, AJAX and web...
<cftimer type="inline" label="Regular concentation">
<cfscript>
iNrTimesToLoop = url.nr;
sStringToConcat = "The quick brown fox jumped over the fence: ";
sString = "";
for (x=1; x LTE iNrTimesToLoop; x=x+1)
{
sString = sString & sStringToConcat & x;
}
</cfscript>
</cftimer>
ArrayAppend
<cftimer type="inline" label="ArrayAppend">
<cfscript>
iNrTimesToLoop = url.nr;
sStringToConcat = "The quick brown fox jumped over the fence: ";
aString = ArrayNew(1);
for (x=1; x LTE iNrTimesToLoop; x=x+1)
{
temp = ArrayAppend(aString, sStringToConcat & x);
}
// Convert back into a string
sString = ArrayToList(aString, "#chr(13)##chr(10)#");
</cfscript>
</cftimer>
Eight weeks ago, my wife gave birth to our beautiful baby girl Tahni. She came in at 9 pounds 4 oz, so she was a big one! It’s been a big learning curve, hence why I haven’t posted in quite some time.
I'll be doing some follow up posts to my concatenation post, and also some new stuff I've been doing in Java.