Here is an interesting article about writing javascript code. From what I’ve seen of Matt Crawford’s code it seems like we are already doing what this guy is talking about, but I thought I would share the link
AJAX developers continue migrating to unobtrusive JavaScript


