Var Scoping Tool

So, pre-MX my big thing was locking. Post MX (really, CF5) my big “let me get all anal” thing is var scoping. As you have heard me say time after time on this blog, if you forget to var scope, you will end up in big trouble. (That’s right, big trouble. Human sacrifice, dogs and cats living together - mass hysteria.)

Mike Schierberl has released a cool new tool to help solve that problem, the varScoper. This tool lets you examine your source code for potentially missing var statements. It will return a report of all the possible matches.

Whats cool about this tool is that it even found mistakes in my code. Not to say I’m perfect - but I know I definitely look out for it and I still missed things. There is an online demo which uses a copy of BlogCFC as one of it’s samples. It found a few false positives, but it found some real issues as well. (Fixed in the latest release!)

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments