August 19, 2008

video review

Video: Best Practices in Javascript Library Design

worth watching: yes

in a sentence:good for beginner and intermediate scriptwriters to consider.

stars: 2/4

info quality: 3/5- editorializing detracts from valuable content

audio quality: 4/5 - decent, but inaudible audience questions toward end

video quality: 2/5 - dark. presented text examples are difficult to read

comments:
jQuery developer John Resig examines the process of creating a javascript library. Not simply offering tips and code snips, he shares his experiences and opinions on topics like documentation, conventions, standards, and extensibility. Some good techniques are demonstrated in the video’s slide show based narrative format.

takeaways:

  1. avoid global vars
  2. avoid native object prototypes
  3. consistency is key: argument order, method names, api, docs
  4. use native methods when possible; eg: getElementsByClassName