Creative code (where creative = bad) - Part 1
posted under category: ColdFusion on September 16, 2008 at 1:00 am by Nathan
I've got a few of these types of entries lined up. If you have a blog, post your own!.
<cflock name="#createUUID()#" type="exclusive" timeout="30">
This code creates a uniquely named exclusive lock - that's an oxymoron. If the name of the lock is unique every time this code runs, the cflock will never lock anything until somehow, magically, createUUID() returns the same value twice, within 30 seconds (right, not very likely).