Object by The Cure
Don’t let an object fool you, especially a js object. It’s just an object. A backbone model? Just an object. Array? Just an object with some list-like properties and traversal methods. Function? A callable object… Objects are here to serve you. Don’t ever be afraid to pull their strings.
Prototype by Outkast
On the flip:
Object.prototype, I hope that you’re the one- If not, you are the prototype.
Object.prototype lives at the top of Mt. JS, that sweet, sweet Juno. She’s something special, and every other object lacks her celestial beauty. All newly instantiated js objects are decendents of mother prototype and are endowed with her paradigmatic qualities. But she is a benevolent matron keen on object self-determination, so her children are allowed to foster their own idiosyncrasies and to override her gifts on a whim.
Methods by Charisma & Peanut Butter Wolf
Styles deep even when we fall asleep. Nothing is more clean cut and suave than a well structured js ‘class’ (or prototypical object in class clothing, rather) with concise and utile methods. An object without methods is one-dimentional, a data-structure who has no way of connecting or interacting with other data-structures in its programatic realm. A good programmer is not one who is reluctant to say, “I got methods.”
Flux = Rad by Pavement
Code of The Streets by Gang Starr
Brendan #1 by Fugazi
In the mid-1990’s, a guy named Brendan Eich was working for Netscape Communications Corporation. Eich wanted to implement Scheme, a household dialect of Lisp, in the browser. But this was the mid-nineties and Sun Microsystem’s Java was the hot new object-oriented language to trump C++ in professional programming usage. Netscape was keen on creating something new: an interpreted, dynamically typed language to compliment the bytecode compiled and statically typed Java, to create something that could be used by both hobbyist programmers and seasoned devs. So Brendan Eich hunkered down and wrote the first version, christened Mocha by Eich’s then-boss Marc Andreessen, in 10 days to meet a browser release deadline. And here we are…