Writing Maintainable Javascript Guidelines

April 3, 2009

We've been doing a lot of Javascript development lately, while writing an Ajax-based web application. Up until recently, my team's Javascript experience consisted mainly of the occasional disable-that-checkbox function inside an .aspx web-form. Nothing wrong with that, I guess, but it doesn't really count. If you're going to write a lot of Javascript, you have to do so in an organized and clean way, or you'll have a maintenance nightmare on your hands. This is not because Javascript is a bad language. It can be quite beautiful actually. But it does allow to work in ways that are...