JavaScript世界:学习CoffeeScript语言(五)
由Gudao Luo在2011-06-23 at 23:50发表的
JavaScript世界:学习CoffeeScript语言(四)
由Gudao Luo在2011-06-20 at 07:19发表的
JavaScript世界:学习CoffeeScript语言(三)
由Gudao Luo在2011-06-19 at 00:43发表的
JavaScript世界:学习CoffeeScript语言(二)
由Gudao Luo在2011-06-17 at 00:19发表的
- 道喜评论
- 关键词class/constructor/this之前的空格不能多,也不能少。
- 关键词constructor之前是一个(或者两个)空格或者Tab键;关键词this之前是两个(或者四个)空格或者Tab键;
- 参考资料
- http://jashkenas.github.com/coffee-script/
- Javascript继承机制的设计思想 http://www.ruanyifeng.com/blog/2011/06/designing_ideas_of_inheritance_mechanism_in_javascript.html
JavaScript世界:学习CoffeeScript语言(一)
由Gudao Luo在2011-06-16 at 00:36发表的
- 参考资料
- http://jashkenas.github.com/coffee-script/
- Javascript继承机制的设计思想 http://www.ruanyifeng.com/blog/2011/06/designing_ideas_of_inheritance_mechanism_in_javascript.html
Ruby世界:如何使得Ruby版本与Rails版本绑定Rails应用程序
由Gudao Luo在2011-06-11 at 16:10发表的
Rails世界:学习Rails3入门教材
由Gudao Luo在2011-06-08 at 05:47发表的

- Rails3系统入门教材
- Rails 3 in a Nutshell http://rails-nutshell.labs.oreilly.com
- Learn Rails by Example http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
- 免费系统入门视频学习资料
- http://www.buildingwebapps.com/learningrails
- Rails for Zombies http://www.codeschool.com/courses/rails-for-zombies (1)需要注册;(2)该网站其它视频是收费的;
- 免费视频学习资料
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-22 at 00:45发表的

- Rails框架走向何方(一)
- Rails 3.1将会使用Coffeescript语言,目的是改进简化JavaScript语言;
- Rails 3.1将会使用Sass,目的是改进简化CSS;
- Rails 3.1把 JQuery 作为JavaScript默认框架,目的是采用更好的和更广泛应用的JavaScript框架;
- 说明 CoffeeScript
- CoffeeScript是一门新的语言;
- CoffeeScript语言编译器采用了CoffeeScript语言写成的;
- CoffeeScript语言目的是把CoffeeScript代码可以编译为JavaScript代码;
- 引入CoffeeScript语言,以达到简化JavaScript代码的目的;
- 说明 Sass
- Sass是一门新的动态CSS语言;
- Sass具有如下的动态功能:变量(variables), 混入(mixins), 操作运算(operations) 和函数(functions)等;
- 引入Sass语言,以达到简化CSS重复代码的目的;
- 类似的软件有: less ;
- 道喜评论
- JavaScript和CSS代码一直是Web应用程序开发的死角;
- 对于Rails框架而言,使用Coffeescript和Sass仅仅是这方面改进的一个良好开端;
- 项目 Boilerplate 会给Rails框架未来带来什么影响;
- 如何解决HTML+JavaScript+CSS集成可能是Rails框架未来需要面对的课题;
- 参考资料
- http://tinyurl.com/3rf7dls
- http://tinyurl.com/3m2wkdq
- http://github.com/jnicklas/bistro_car
- http://rubysource.com/using-coffeescript-in-rails/
- http://tinyurl.com/654vke2
- http://tinyurl.com/yah8g5q
- http://tinyurl.com/3tsxly4
- http://coffeescript-seattlejs.heroku.com/#1
- http://island205.com/2011/03/17/coffeescript%E8%AF%AD%E6%B3%95%E5%9B%BE/
- http://www.infoq.com/cn/news/2010/12/languages-on-javascript-vms
- "":
- http://aya.idv.tw/post/1635479495/coffeescript
- http://news.ycombinator.com/item?id=1834605
Rails世界:自动生成Rails程序模板文件网站
由Gudao Luo在2011-01-16 at 12:37发表的
Ruby世界:2010年Ruby语言十大软件新闻
由Gudao Luo在2010-12-27 at 19:39发表的

- 2010年Ruby语言十大软件新闻
- Ruby进入1.9时代 – Ruby 1.9.2 正式版发布
- Rails进入3.0时代 – Rails 3正式版发布
- 最具创意Rails入门教程 Rails For Zombies
- Rails软件服务器部置系统 Phusion Passenger 3 正式版发布,它是Rails网络服务器必备的软件;
- 基于Ruby1.8.7和1.9.2的一键Ruby安装软件 RubyInstaller 是Windows系统最快捷安装工具;
- 项目跟踪管理工具 Redmine 1.0正式版发布,它是软件项目开发最好的助手;
- Ruby语言虚拟机 Rubinius 1.0正式版发布;
- Ruby语言函数重写技术 refine 可以简化代码;
- Ruby语言版本管理系统 rvm 成为Ruby语言开发环境必备工具;
- Ruby软件包管理系统 Bundler 越来越普及;
Rails世界:学习Rails3框架
由Gudao Luo在2010-12-06 at 00:17发表的
Rails3框架实例:基于HTML的PDF文件生成工具PDFKit
由Gudao Luo在2010-08-02 at 14:05发表的

- 参考资料
- PDFKit项目首页 http://github.com/jdpace/PDFKit
- Generating PDFs from HTML using PDFKit视频. http://asciicasts.com/episodes/220-pdfkit
- Generating PDFs from HTML using PDFKit文章 http://railscasts.com/episodes/220-pdfkit
- Rethinking PDF Creation in Ruby http://goo.gl/OMd3
- 使用 wkhtmltopdf 生成 pdf http://goo.gl/Y3nh
- How to generate PDF using Ruby? http://goo.gl/xGJl
Rails框架:Rails 3正式版本上市!
由Gudao Luo在2010-07-27 at 22:46发表的

- 评论
- Rails3框架是一个全新的Ruby网络应用框架,它完全不同于Rails2框架。
- Rails3框架更加结构化、更加模块化、更加独立化和更加层次化。
- Rails 3.0.0.rc是发行Beta版本最多的一个版本。
- 简单使用说明
- 需要什么Ruby版本?
- >= 1.8.7
- 如何安装Rails3?
- sudo gem install rails —pre
- 如何创建一个Rails3项目?
- rails new 项目名称
- 如何启动一个Rails3项目?下面几种方法任何一个都可以:
- rails server
- thin start
- unicorn -p3000
- 需要什么Ruby版本?
- 参考资料
- Rails 3.0: Release candidate! http://goo.gl/yYjQ
- Ruby on Rails 3.0 Release Notes http://goo.gl/gHGi
- Rails3 info http://rails3info.com/
- Ruby on Rails Tutorial http://goo.gl/hvSx 最新Rails技术免费图书!
- 8 Reasons I love Ruby http://goo.gl/ZxgE
- The Reasons I Like Ruby http://goo.gl/yYom
- Why I Like Ruby, Part 2: Blocks
- The Ruby/Rails Life – My Rails 3 Stack – Part 1 http://goo.gl/gF6u
- The Ruby/Rails Life – My Rails 3 Stack – Part 2 http://goo.gl/65g1
Rails世界:Rails2 与 Rails3 代码比较
由Gudao Luo在2010-04-03 at 22:29发表的
Rails 3 Beautiful Code
View more presentations from GreggPollack.
Rails3世界:使用抽象持久层Arel(六)
由Gudao Luo在2010-02-18 at 23:22发表的

- 说明
- Arel是框架的框架。
- Arelk可以创建自己的持久层框架。
- Arel是Rails3框架的基础。
- 参考资料
- http://github.com/rails/arel http://github.com/rails/arel
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:使用新的命令rails(五)
由Gudao Luo在2010-02-17 at 11:14发表的

- rails命令说明
- rails命令与Rails2版本有比较大的变化。
- rails命令现在不仅仅是创建Rails程序,而且在$RAILS_ROOT目录下使用rails命令相当于Rails2版本"./script/"。源代码请看下面参考资料的链接(1)。
- Rails3pre的说明存在错误。请看下面参考资料的链接(2)。
- 使用命令rails(Rails3pre)
- 参考资料
- http://tinyurl.com/yblbgy8 http://tinyurl.com/yblbgy8
- Wrong examples for plugin installation and generators in usage documentation http://tinyurl.com/yc76bdj
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:使用另外的网络服务器Unicorn(四)
由Gudao Luo在2010-02-13 at 23:54发表的

- 说明
- Unicorn网站写到: “… Process management: Unicorn will reap and restart workers that die from broken apps.”
- 最重要的是因为存在$RAILS_ROOT/config.ru文件。
- 同样适用于Rails3类似于Unicorn的网络服务器 rainbows http://github.com/darkhelmet/rainbows
- 使用命令
- 参考资料
- http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html
- http://unicorn.bogomips.org/
- http://unicorn.bogomips.org/Unicorn.html
- http://adventuresincoding.com/2010/02/riding-ruby-on-rails-3-bundler/
- Everything You Need to Know About Unicorn
- https://github.com/defunkt/unicorn
- https://github.com/blog/517-unicorn
- http://sirupsen.com/setting-up-unicorn-with-nginx/
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:使用软件包管理工具Bundler(三)
由Gudao Luo在2010-02-10 at 09:22发表的
Rails3框架新的结构
Rails3框架传统结构- 前提条件
- Ruby 1.8.7 + Rails 3.0pre
- 传统结构操作过程
- 新的结构操作过程
- 说明
- Ruby系统gem + config.rb = Rails2程序gem软件包。
- Ruby系统gem + Gemfile = Rails3程序gem软件包。
- 通过Bundler工具,Rails3以应用层面解决软件包依赖关系。
- Rails3程序的gem软件包,完全可以与Ruby运行环境分开来。
- bundle命令是针对Rails程序,而gem命令是针对于Ruby运行环境。
- gem软件包直接可以作为Rails程序的插件。
- 与之相关的最重要文件是$RAILS_ROOT/Gemfile。
- 参考资料
- http://lindsaar.net/2010/2/6/bundle_me_some_rails http://lindsaar.net/2010/2/6/bundle_me_some_rails
- http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/ http://yehudakatz.com/2010/02/09/using-bundler-in-real-life/
- http://gembundler.com/ http://gembundler.com/
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:安装Ruby1.8.7(一甲)
由Gudao Luo在2010-02-07 at 06:32发表的

- 使用说明
- 前提Mac OSX 10.5.8 + Ruby 1.8.6。
- Rails 3.0版本起将使用Ruby 1.8.7 或者 1.9.1。
- 安装Ruby 1.9.1,请看这里 使用Rails3的第一步安装Ruby1.9.1 http://tinyurl.com/y9r44gc。
- 推荐产品运行环境使用Ruby 1.8.7。
- 推荐学习运行环境使用Ruby 1.9.2。
- 摘要:“。。。 and Rails 3 will require Ruby 1.8.7 and prefer Ruby 1.9.2. ”
- 操作说明
- 参考资料
- How to Install RVM and Rails 3 on Snow Leopard http://tinyurl.com/ycdzfom
- Getting Rails 3 Beta Setup http://tinyurl.com/yeehgvc
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails3世界:安装Ruby1.9.1(一乙)
由Gudao Luo在2010-02-06 at 08:41发表的

- 使用说明
- 前提Mac OSX 10.5.8 + Ruby 1.8.6。
- Rails 3.0版本起将使用Ruby 1.8.7 或者 1.9.1。Rails 3.0 Beta版本问题比较多!
- 安装Ruby 1.8.7,请看这里, 使用Rails3的第一步安装Ruby1.8.7 http://tinyurl.com/ydc32vb。
- 推荐产品运行环境使用Ruby 1.8.7。
- 推荐学习运行环境使用Ruby 1.9.2。
- 摘要:“。。。 and Rails 3 will require Ruby 1.8.7 and prefer Ruby 1.9.2. ”
- 操作说明
- 参考资料
- http://rvm.beginrescueend.com http://rvm.beginrescueend.com
- 系列全部内容
- Rails3世界:安装Ruby1.8.7(一甲) http://www.lycom.de/past/2010/2/7/2010-02-07-rvm-ruby187/
- Rails3世界:安装Ruby1.9.1(一乙) http://www.lycom.de/past/2010/2/6/2010-02-07-rvm-ruby191/
- Rails3世界:安装Rails3.0pre版本(二) http://www.lycom.de/past/2010/2/8/2010-02-07-rails3-pre/
- Rails3世界:使用软件包管理工具Bundler(三) http://www.lycom.de/past/2010/2/10/2010-02-10-bundler/
- Rails3世界:使用另外的网络服务器Unicorn(四) http://www.lycom.de/past/2010/2/13/2010-02-14-unicorn/
- Rails3世界:使用新的命令rails(五) http://www.lycom.de/past/2010/2/17/2010-02-17-rails-command/
- Rails3世界:使用抽象持久层Arel(六) http://www.lycom.de/past/2010/2/18/2010-02-18-arel/
Rails框架:Ruby1.9+Rails3.0时代即将来到
由Gudao Luo在2009-12-12 at 14:50发表的

David Heinemeier Hansson (37signals), “Rails 3 …and the real secret to high productivity”
- 第一步:创建安装目录命令
- 第二步:针对Mac OSX 10.5的安装Readline(可选)命令
- 第三步:针对Mac OSX 10.5的安装Ruby1.9.1命令
- 第四步:在现有系统上增加切换到Ruby1.9.1方法
- 如果想要使用ruby1.9.1版本,那么每一次打开终端都需要使用命令ruby19ify,才能够切换到ruby1.9.1上面去。默认系统ruby还是当前所使用的版本。
- 第五步:针对Mac OSX 10.5的安装Rake等命令
- 第六步:安装Rails 3.0 pre命令
- 第七步:检查安装软件版本命令(可选)
- 第八步:创建Rails应用程序
- 最重要参考资料
- http://medevyoujane.com/blog/2009/12/17/edging-your-way-towards-ruby-191-and-rails-30pre.html?lastPage=true#comment6623823
- http://wonko.com/post/how-to-compile-ruby-191
- http://cardarella.blogspot.com/2009/04/ruby-18-and-19-living-together-on-mac.html
- http://oscardelben.com/articles/2009/12/06/how-to-test-rails-3.html
- 参考资料
- http://ftp.gnu.org/gnu/readline/
- http://www.macosxhints.com/article.php?story=20090731080242407
- http://www.slideshare.net/arrrrcamp/ruby-19-and-rails-30
- http://www.ruby-lang.org/en/downloads/
- http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x
- http://blog.futureshock-ed.com/2009/06/installing-ruby-19-on-mac-os-x-105.html
- http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/13cd5dec18dfd859
- http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x
- http://www.macosxhints.com/article.php?story=20090731080242407
- http://www.idg.co.kr/people/blog/view.do?paramDomain=mimul&postId=230195
- http://blog.vinceliu.com/2009/11/compiling-ruby-19-from-scratch-for-mac.html
- http://sdruby.org/video/075_rails3.m4v
- http://lindsaar.net/2008/1/18/installing-ruby-1-9-on-mac-osx
- http://www.slideshare.net/bradly/ruby-19-introduction?src=related_normal&rel=2537131



