Yet Another Ringing Endorsement For VarScoper

Posted By : todd sharp Posted At : December 10, 2008 3:18 PM Posted In: ColdFusion

1

I noticed some seriously nasty problems while working on a multi upload utility for SlideSix. For some reason when processing a few imports simultaneously the resulting slideshows ended up getting fiercely mixed up with each other. Slides were everywhere but where they were supposed to be. I immediately suspected an unscoped var was the culprit and went off to grab varscoper to confirm. Boy was I surprised when I realized just how many unscoped vars were laying in wait for something nasty to happen (ok, it wasn't a TON, but more then I'd like to admit). Lesson learned, no harm done, but if you don't use varscoper you're seriously missing. It took all of 30 seconds to install and scan, and it'll make your code better.

Comments (1)

Justin's Gravatar I recently was adding to some legacy code and had some crazy errors that would randomly occur every few page loads. Running to the tool and finding the vars fixed the issue.

Here Here!