Ways of writing jQuery code
Is there any documented or some kind of standard way of writing jQuery code in any web application?

I am asking this more in the context of jQuery binding which is global and hence needs a slightly different way of writing than normal JS code.

Please let me know how do we decide the right approach. As a simple example, should we write code to check for an if (somevar) and then write $(someEle).mouseover() or should it be reverse.

Please suggest.
Ways of writing jQuery code
===

Is there any documented or some kind of standard way of writing jQuery code in any web application?

I am asking this more in the context of jQuery binding which is global and hence needs a slightly different way of writing than normal JS code.

Please let me know how do we decide the right approach. As a simple example, should we write code to check for an if (somevar) and then write $(someEle).mouseover() or should it be reverse.

Please suggest.