Rails世界:Rails框架走向何方(四)
由Gudao Luo在2011-05-28 at 10:40发表的

- 道喜评论
- 在浏览器上看到所显示的代码都是JavaScript+HTML,但是与你在服务器端应用程序所使用的语言(Ruby.Java,PHP等)无关;
- 没有HTML也可以使用Rails框架;
- 可以这样使用Rails框架:Rails MC <= JSON => JS MCV 也是是一种趋势;
- Rails MC = Rails Model + Controller
- JS MCV = JavaScript Backbone + (Mustache/Icanhazjs/Handlebars);
- 使用JSON作为客户端与服务器之间的数据传送格式;
- 这种使用Rails框架趋势有发展前途吗?
- 说明
- Mustache是视图模板的JavaScript库;
- Mustache是无逻辑视图代码库;
- 从2010起,Mustache是Twitter网站程序的一部分[ 1 ];
- 借助于Mustache,可以将视图层分成为两个子视图层,无逻辑视图与逻辑视图[ 2 ];
- 重要参考资料
- Rails框架+Mustache.js
- 参考资料
- https://github.com/elado/isotope
- http://www.v2ex.com/t/8713
- https://github.com/defunkt/mustache
- http://icanhazjs.com/
- http://handlebars.strobeapp.com/
- http://www.json.org/
- http://code.google.com/p/google-ctemplate/
- http://www.michaelharrison.ws/weblog/?p=324
- http://blogger.forgottenskies.com/?p=585
- http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-using-the-mustache-template-library/
- http://couchapp.org/page/index
- http://sammyjs.org/intro
Rails世界:Rails框架走向何方(三)
由Gudao Luo在2011-05-24 at 15:05发表的

- 说明
- SproutCore是基于MVC的HTML5应用程序框架;
- SproutCore使用JavaScript语言;
- SproutCore目的构建桌面式Web应用程序(Fast Rich Cloud Applications、Rich Internet Applications、Dry Rich Client Applications等);
- SproutCore的优势在于MVC到View部分;
- SproutCore源自曾经在Apple工作程序员开发的;
- SproutCore是十分重要和有价值的项目;
- SproutCore是一款完全独立的框架;
- 道喜评论
- Rails框架ActiveView从开始到现在一直没有太大改进。 今年2011RailsConf DHH报告 重点也是说明MVC到View部分。
- 我们知道,Rails和SproutCore都是独立的框架。但是有一种开发思路:Rails框架作为后台程序,而SproutCore框架作为前台程序;
- 这种思路正在向前推进:"Bulk Rails API":https://github.com/drogus/bulk_api 是这两个框架的粘合剂;
- 今年2011RailsConf也有报告: SproutCore with Rails
- 未来Rails框架是否会是:Rails Model <=> Rails Controller <=> SproutCore Model <=> SproutCore Controller <=> SproutCore View
- 重要参考资料
- http://www.onrails.org/2011/05/19/railsconf-day-3
- http://www.sproutcore.com/
- http://demo.sproutcore.com/sample_controls/
- http://demo.sproutcore.com/
- http://gmoeck.github.com/2011/03/10/sproutcore-mvc-vs-rails-mvc.html
- http://thechangelog.com/post/2155333557/episode-0-4-2-rails-3-1-and-sproutcore-with-yehuda-katz
- http://wiki.sproutcore.com/w/page/27949835/Todos+06-Building+with+Rails+3
- http://cappuccino.org/
- SPROUTCOREWITHRAILS
- http://blog.coals2newcastle.com/2008/06/ruby-on-rails-rails-sproutcore.html
- 参考资料
- http://news.ycombinator.com/item?id=1849271
- http://en.oreilly.com/rails2011/public/schedule/detail/18047
- http://en.oreilly.com/rails2011/public/schedule/detail/19412
- http://blogupstairs.com/framework/sproutcore-an-html5-application-framework-for-building-fast-rich-cloud-applications/
- http://blogupstairs.com/framework/qooxdoo-innovative-framework-for-creating-ria-apps/
- http://narwhaljs.org/
- http://angularjs.org
- http://matthiasschuetz.com/angular-erweiterte-javascript-apps-mit-mvc
- http://matthiasschuetz.com/javascript-mvc-kompakt-mit-spine
- http://sammyjs.org/
- http://mrb.github.com/2010/03/23/sammy-on-rails.html
- http://addyosmani.com/blog/building-spas-jquerys-best-friends/
- http://news.ycombinator.com/item?id=1834605
Rails世界:Rails框架走向何方(二)
由Gudao Luo在2011-05-23 at 00:55发表的

- 道喜评论
- JavaScript语言项目是越来越多和越来越细分,其发展趋势也是越来越快。
- 通用框架JavaScript有Prototype和JQuery等;
- 基于MVC的JavaScript框架有 BackBone 和 Spine 等;下面说明之。
- 桌面式Web软件框架或者说RIA框架有 SproutCore 、 ExtJS 和 qooxdoo 等,相关详细内容在后面博客介绍。
- 组件式和功能性的JavaScript软件或者框架有: 分配包库(asset packaging library) 、 表格组件库(grid/spreadsheet component) 、 函数编程库(functional programming) 、 视频组件框架(The HTML5 Video Framework) 、 JavaScript变体语言 等;
- 是否需要类似于gem一样的JavaScript软件包管理框架?
- 如何实现JavaScript软件、框架或者软件包代码是可测试、可规范和无重复(DRY)?
- Rails框架与很多其它框架一样,JavaScript代码有待改进。
- BackBone说明
- BackBone 是 MVC JavaScript框架;
- BackBone为我们提供了MVC的组织方式;
- BackBone能够很好地与Rails集成 [ 1 ] [ 2 ]。何时能够成为Rails框架的默认框架?是否还有更好的框架? [ 3 ] [ 4 ] [ 5 ]
- 在BackBone+Rails应用程序中,Rails框架控制器代码转移到了BackBone控制器代码中。
- BackBone能否与Coffeescript集成?[ 6 ]
- 重要参考资料
- http://www.jamesyu.org/2011/01/27/cloudedit-a-backbone-js-tutorial-by-example/
- http://www.jamesyu.org/2011/02/09/backbone.js-tutorial-with-rails-part-2/
- http://www.protectedmethod.com/blog/4d49b82942ba7864ce00000d/knockout_vs_javascriptmvc_vs_backbone
- http://maccman.github.com/spine/
- http://addyosmani.com/blog/building-apps-spinejs/
- https://github.com/codebrew/rails3-backbone-coffeescript
- http://mzhou.me/?p=95230
- http://www.limboy.com/2010/12/19/module-and-compiler-for-common-js/
- https://github.com/dexteryy/OzJS
- http://documentcloud.github.com/backbone/
- https://github.com/documentcloud/jammit/
- http://www.documentcloud.org/opensource
- 参考资料
- 10 Most Popular JavaScript Frameworks http://www.articlediary.com/print-563.html
- 16款最流行的JavaScript框架 http://developer.51cto.com/art/201103/249949.htm
- 推荐19个很有用的JavaScript库 http://sd.csdn.net/a/20110516/297878.html
- http://www.quora.com/Backbone-js-1/How-well-does-backbone-js-work-with-rails
- http://en.oreilly.com/rails2011/public/schedule/detail/19360
- https://gist.github.com/719080
- http://stackoverflow.com/questions/4773733/rails-mass-assignment-and-backbone-js
- http://news.ycombinator.com/item?id=1849271
- http://andrewgertig.com/2011/05/rails-backbone-js-example-screencast/
- http://rtomayko.github.com/rocco/
- http://blog.terrywh.net/develop/961/
- http://www.lainuo.info/2011/05/18/backbone-js-in-action
- https://github.com/winfield/traces
- https://github.com/codebrew/backbone-rails
- https://github.com/markbates/coffeebeans