Prototype: constuctor
Object: __proto__
var Class = function() {}; console.log(Class.prototype.constructor === Class); var obj = new Class(); console.log(obj.__proto__ === Class.prototype); var newObj = {}; newObj.__proto__ = Class.prototype; console.log(newObj instanceof Class);
2. Scope:
local/Global/Closure
3. Closure: for anonymous function
4. Inherit: a.prototype = b.prototype
a.prototype = new b();
5. apply(context, arguments)
6. NodeJS
7. TDD: mocha
8. HTML5: section/header/footer
9. Sublime: (emmet/Alignment/JsFormat/Prefixr/JsHint)
10. jQuery/backbone lin: $ = function(){var klass = function(){}, return klass}
PPT Notes:
kiss: keep it simple stupid
dry: don't repeat yourself
Yagni: 也许不会发生
solid:simple, open, l:单一的 i: interface, d: detail
配对编程
场景
道:世界观
法:原则
茉莉-测试框架
测试
语法糖
橘子:模块
鸭子: 看起来像就行
小胖子:jQUery作者