A Question of Speed

I have been doing some code review lately and am seeing quite a few cases that look something like this:

<cftransaction>
<cfloop from="1" to="#arrayLen(aData)#" index="i">
<cfquery ....>
<!--- insert query --->
</cfquery>
</cfloop>
<cftransaction>

You have a structure with some information in it and you are looping over the structure and adding the data from the structure into the database. No bid deal right?

Well you probably won't be surprised to find out that having a loop around the cfquery tag forces the Coldfusion server to execute that query N number of times, where N is the size of your array.

So what can you do?

[More]

TIOBE Reconsiders

After writing my post yesterday about Coldfusion being removed from the TIOBE Index I decided to send an email to TIOBE to question their decision and ask them how they justified their actions on clearly inaccurate information.

This morning I received an email from TIOBE inviting me to check out an addition to their FAQ.

# Q: Who is Richard Bremner? (Bonus question only for this month, especially for the ColdFusion community)

[More]