The jQuery Divide:Understand where jQuery ends and JavaScript begins
1–10 of 78 posts
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#2Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#3I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#4So, how does one become a good, non-spaghetti-code javascript developer for the web? I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
[2] http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-fo...
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#5So, how does one become a good, non-spaghetti-code javascript developer for the web? I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#6So, how does one become a good, non-spaghetti-code javascript developer for the web? I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#7So, how does one become a good, non-spaghetti-code javascript developer for the web? I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
Like everything else: throw a lot of time at it, and have a desire to make awesome things. Other than explicit feedback on written code, there is no one thing I could tell you to help you write better JavaScript for web browsers.
Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#8Re: The jQuery Divide:Understand where jQuery ends and JavaScript begins
#9I'm not going to ask how to write good code, but I think this is a fair question: can someone point to a coding standard / style guideline for Javascript + jQuery?
E.g., when to choose a single-use named function over an anonymous function? When to bind jQuery results to variables vs. go crazy with chaining? Any advice on good selector practices? Good html naming conventions?
I'd love to see all that stuff documented in one place. It must be out there somewhere.