Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am a big fan of Peter Michaux's guide on how <a href="http://peter.michaux.ca/articles/how-i-write-javascript-widgets" rel="noreferrer">he writes javascript widgets</a></p> <p>Also useful are Christian Heilmann's <a href="http://www.wait-till-i.com/2008/05/23/script-configuration/" rel="noreferrer">script configuration</a> and the <a href="http://www.wait-till-i.com/2007/07/24/show-love-to-the-module-pattern/" rel="noreferrer">module pattern</a></p> <p>Those are generic javascript articles and aren't specific to a single library</p> <p>Other useful tricks are things like wrapping your code in an anonymous function to stop it interfering with other global libraries.</p> <pre><code>(function() { //Your code goes in here })(); </code></pre> <p>Regarding errors and best practice, John Resig has an interesting article on <a href="http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/" rel="noreferrer">javascript strict</a> that isn't in yet, but does have some handy information on the sort of things you should be avoiding.</p> <p>If you're still coming to terms with scoping within your objects, then you might find <a href="http://phrogz.net/js/Classes/OOPinJS.html" rel="noreferrer">this article</a> on private and public variables useful as well a a bit more technical definition by <a href="http://www.crockford.com/javascript/private.html" rel="noreferrer">Douglas Crockford</a></p> <p>Finally, remember to run your completed code through a <a href="http://www.jslint.com/" rel="noreferrer">code quality tool</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload