Coming from a Ruby background, I'm used to writing all my code using classes with methods and such. I do know javascript quite well, but I'm new to jQuery and its best practices.
Obviously there are a million ways to simulate classes in javascript. But, what is the actual jQuery community REALLY using in the real world?
Specific examples would be ideal. Or links to real production code. Links to fictional ideal code would also be helpful.
Thanks!
Best Solution
This doesn't apply specifically to jQuery, but I like the object literal syntax for simulating classes in my own code.
http://ajaxian.com/archives/show-love-to-the-object-literal
I tend to often use something like this (simplified) framework:
Edit: More information on use of the 'this' keyword, noted above:
http://groups.google.com/group/jquery-en/browse_thread/thread/328d07f90467cccc?pli=1