Posts Tagged ‘FileUploader’

JavaScript: Private Variables are Evil

Tuesday, April 6th, 2010

One of the more exciting discoveries in JavaScript programming was in 2001 when Douglas Crockford found the ability to create private variables in JavaScript. Granted, this was exciting, and as with any new toy, everybody started using them. Since then, you can’t find a book, tutorial or blog that doesn’t have some kind of “How to!!” showing how to do it. But, despite the excitement, private variables should be used in moderation at best.

(more…)