script.js file (sound familiar?) or scattered across many different files which take long to load and are hard to keep track of.
- Stick to jQuery. We could change to YUI, Dojo, or Prototype, all of which have good structure, but we’ve already invested lots of time in jQuery, which we’ve found to be easy to use and able to produce good results quickly.
- Use scripts to clean and lint our code, like JSLint.
- Use an MVC folder structure.