Javascript (node.js) http://nodejs.org/ review:
http://www.w3schools.com/js/js_howto.asp
http://www.w3schools.com/xml/xml_whatis.asp
http://www.w3schools.com/dom/dom_intro.asp
NODE
- downside, requires libssl-dev (fixed with -no-ssl)
- install with “git clone https://github.com/joyent/node” (ryan is now joyent)
Use Prototype Programming, Delegation.
prototype based programming -http://coweb.cc.gatech.edu/cs2340/4288
// Example of true prototypal inheritance style in JavaScript.Don’t bother with Normal OOP. tho you can :
// "ex nihilo" object creation employing the literal object notation {}.
var foo = {one: 1, two: 2};
// Another "ex nihilo" object.
var bar = {three: 3};
// Gecko and Webkit JavaScript engines can directly
// manipulate the internal prototype link.
// For the sake of simplicity, let's just pretend
// that the following line works regardless of the
// engine used:
bar.__proto__ = foo; // foo is now the parent of bar.
// If we try to access foo's properties from bar
// from now on, we'll succeed.
bar.one // Resolves to 1.
// The child object's properties are also accessible.
bar.three // Resolves to 3.
- http://msdn.microsoft.com/en-us/magazine/cc163419.aspx
- http://en.wikipedia.org/wiki/Prototype_based_programming
- delegation http://en.wikipedia.org/wiki/Delegation_%28programming%29
- http://www.w3schools.com/JS/js_intro.asp (javascript)
- http://nodejs.org/docs/v0.4.1/api/all.html#__filename (node api)
http://www.mozilla.org/js/language/js20-2000-07/libraries/operator-overloading.html
https://developer.mozilla.org/en/Introduction_to_Object-Oriented_JavaScript
node examples:
http://blog.osbutler.com/categories/node-by-example/?page=3
https://github.com/nodejitsu/nexpect/blob/master/demo.js (uses spawned procs)
“DOn’t bother with OOP, just learn the DOM”
http://en.wikipedia.org/wiki/Document_Object_Model
look at the GOOG custom search API, it’s in JSON:
http://code.google.com/apis/customsearch/v1/overview.html
http://www.w3schools.com/ajax/default.asp
No comments:
Post a Comment