Thursday, June 1st, 2006
It’s official, at least according to James McParlane: June 6 is “Array” and “Object.prototype” Awareness Day.
He proposes the following ground rules for happy co-existence – see his article for the details on each of these.
- Don’t use Object.prototype to extend the base ‘Object’.
- Don’t use ‘Array’ for an Associative Array
- There are two types of Library ‘Primary’ or ‘Secondary’. James sees Dojo, Prototype, et al becoming “primary” libraries on which other, more specialized libraries, build.
- Port code that uses ‘Array’ for Associative Arrays. (Use objects and not Arrays for associative array behavior.)
Posted by Michael Mahemoff at 10:59 am