I've been looking for some jQuery coding conventions, but really found a comprehensive list.
For example, how should I name the id of my html tags, I like the first one because it confoms to my css convention, but would it give me inconvenience in some senarios?
<div id="comment-list"></div>
<div id="commentList"></div>
<div id="CommentList"></div>
And, is single or double quote more preferrable $('#obj') vs $("#obj")?
Also, say I use one global file, should I surroud all my code with the following to avoid $ sign conflict if I were to use other js libs?
(function ($) {
$(document).ready(function () {
...
});
})(jQuery);
Should I use more js files or put everything in one global file?
etc. What are some of your conventions by following that made your coding in jQuery on large project easier?