> Jon wrote:
> 
> Think about it for a second, if you had an array, and didn't have
> arraySort(), how would you sort it? I'd bet a C guy would know in a
> second.
The same way I sort things by hand. That probably wouldn't be very 
efficient, and /if/ I needed something faster I'd probably have to 
find a better way. But once I had the code written I'd encapsulate 
it in a function so I don't have to worry about it again.

> Sorting is probably just a small example, but the understanding of how
> sorting works on a lower level than CF, would probably tell an
> experienced coder right off that arraySort() would be the wrong
> solution in a particular case, and they might know a much more
> efficient sorting algorithm to implement.
I tend to trust that the programmer who wrote arraySort() already
used the most efficient algorithm available. If it's not the most
efficient, it still be may efficient enough for my needs. If it's
not efficient enough for my needs and it's a UDF, I'll change the
code in the UDF so that the next person to use the UDF (possibly
myself) won't have to go through all that trouble again.


Patrick
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to