Upgrade to Pro — share decks privately, control downloads, hide ads and more …

跟乐高学模块设计

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for Max Max
February 06, 2013

 跟乐高学模块设计

跟乐高学模块设计

Avatar for Max

Max

February 06, 2013
Tweet

More Decks by Max

Other Decks in Programming

Transcript

  1. 简单易⽤用是如何征服世界 口径 空枪重 初速 市场占有率 M16 5.56毫米  2.7  kg 975

     m/s   AK-­‐‑47 7.62毫米 4.3千克 710  m/s 无可争议的 No.1 体积 性能结果 市场占有率 jQuery  1.4.1 23.82KB 48  ms 74.7% Mootools  1.22 20.47KB 47  ms 13.1% Prototype  1.6 29.85KB 36  ms 12.4% Dojo  1.5 30.38KB 19  ms 0.4% 想了解更多框架的性能比较请看:hGp://dante.dojotoolkit.org/taskspeed
  2. 有损的BigPipe •  Facebook的BigPipe由前后端共同完成,模式难以复制。 而国内使用BigPipe的主要有两种方式 o  服务器配置 combo o  纯前端BigPipe • 

    纯前端BigPipe有这样一个问题:连接数增加。带来的问 题是服务器CPU占用高,容易出现队列堵塞。
  3. 参考⽂文档 •  http://hax.github.com/2011/js_api_design/ 关于JavaScript库和框架的 API设计的思考两三例 •  http://blog.sina.com.cn/s/blog_482611850100xpb1.html 从微博的改版 谈网页重构——bigpipe中的页面构建优化 • 

    http://www.qianduan.net/particles-with-in-js-management-load- your-javascript-module.html用In.js颗粒化管理、加载你的Javascript模块 •  http://ued.taobao.com/blog/2011/05/13/2011-taobao-lottery-index- dev/ 2011彩票首页开发实践 •  http://www.infoq.com/cn/presentations/hjp-infoq-salon哪儿网的 JavaScript模块化之路 •  http://javascript.blogcn.com/articles/%E4%BB%8E%E4%B9%90%E9%AB %98%E4%B8%8A%E6%88%91%E4%BB%AC%E5%8F%AF%E4%BB %A5%E5%AD%A6%E5%88%B0%E4%BB%80%E4%B9%88%EF%BC%9F.html 从乐高上我们可以学到什么?