Through open source, co workers and other just asking for help I get to see a lot of other peoples code. I believe it is a great learning tool that every developer should utilize. I know that if someone were to look at my code they could easily critique so please do not take this article the wrong way. One thing I see over and over is looping over an array to search for a specific value. I think that converting this array to a list provides a clear path to search the list using the listFind() method. Here is what I see a lot of and curious why you would search an array this way.
view plain print about
1<cfset states = ["Ohio","Michigan","California","Indiana","Florida"]>
2    
3    <cfloop from="1" to="#arrayLen(states)#" index="x">
4        <cfif states[x] EQ "Ohio">
5            Ohio Found!<br>
6        <cfelse>
7            <cfoutput>#states[x]#</cfoutput><br>
8        </cfif>
9    </cfloop>

The code above will run fine when executed I just do not see it as a clear solution. While this example is not the best it does provide some code. Also the example uses Scorpio Implicit array creation so dont let that throw you off.
view plain print about
1<cfset states = ["Ohio","Michigan","California","Indiana","Florida"]>
2    
3    <cfif listFind(arrayToList(states),"Ohio")>
4        Ohio Found!
5    </cfif>
I am curious to find out others thoughts on this. This is how I have always searched an array and found it cleaner that looping an array.