I feel like each time I start a new Javascript-heavy application, I begin to bumble around more and more as additional client-side code is written. The code structure of a Rails app is pretty well dictated by the framework, but developers usually invent their own structure for their Javascript and AJAX interactions.
I'm looking for web application examples that use easily identifiable patterns and best practices. They should:
- be either Open Source or have unpacked/unobfuscated Javascript for ease of reading
- use OO Javascript or otherwise clearly modular
- ideally be a Rails backend using JSON for AJAX calls
- ideally be using jQuery (though not totally necessary) so I can see how everything gets initialized