就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
当前回答
阻力最小的路径:
Have a simple web project in mind. Go to rubyonrails.org and look at their "Blog in 15 minutes" screencast to get excited. Get a copy of O'Reilly Media's Learning Ruby Get a Mac or Linux box. (Fewer early Rails frustrations due to the fact that Rails is generally developed on these.) Get a copy of Agile Web Development with Rails. Get the version of Ruby and Rails described in that book. Run through that book's first section to get a feel for what it's like. Go to railscasts.com and view at the earliest videos for a closer look. Buy The Rails Way by Obie Fernandez to get a deeper understanding of Rails and what it's doing. Then upgrade to the newest production version of Rails, and view the latest railscasts.com videos.
其他回答
我发现http://railstutorial.org/book是学习Rails的一个很好的资源
我现在正在学习Rails,如果你正在使用Windows(假设使用c#开发),如果投资Mac不是一个选择,我强烈建议你学习Linux。
如果你不想在你的硬盘上为Ubuntu创建一个单独的分区,我建议你看看Wubi,一个Ubuntu的Windows安装程序。Rails在Ubuntu上的体验远没有在Windows上那么令人头疼,我认为它类似于OSX开发环境,只是没有那么多的应用程序支持。我目前正在使用一个alpha文本编辑器Redcar,它允许你有一些textmate的功能,流行的OSX编辑器。
我读过的关于Rails的好书是Cloves Carneiro Jr和Rida Al Barazi写的《Beginning Rails 3》。还有Noel Rappin的《Rails测试处方》,关于用测试驱动的方法进行开发。
我最喜欢的是Ryan Bates的Railscasts,它让我从业余爱好者变成了行家。他通常在每周一左右发布一个关于Rails精华的视频,或者最近的Sass、SCSS、Coffeescript以及与Rails 3.1相关的技术。
我觉得对于任何初学者来说,必读的是why's(尖锐的)ruby指南。不幸的是,当我开始接触Ruby时,_why消失了,但他的内容仍然分散在各种来源。它有奇特的幽默,到最后你会很好地了解Ruby的语法。
I have got up to speed with Ruby on Rails fairly quickly via this free online course which is currently being offered by UC Berkeley - Software as a Service - Engineering Long Lasting Software with instruction by Armando Fox and David Patterson. I can't speak highly enough of this course... it really was a privilege to learn Rails from these guys. And there is an active community on the course forums if you run into difficulty along the way. The first offering of the online course has now finished (as of 25 March, 2012) - the next time it will be run will be sometime in September of 2012.
It assumes you are a fairly competent developer and gets you started on ruby in the second week, then Rails runs from the third week up to the end of the course (five weeks). Your assignments are marked by an auto-grader. You get provided with a pre-built Ubuntu VM image with everything you need for development pre-installed on it (e.g. Ruby, Rails, Rake, Gems, RSPec, Cucumber, etc). All you have to do is start up the VM inside the (free) VirtualBox software which runs on MacOSX, Windows and Linux.
这门课有一本推荐教材。在这里……但是你可以在网上看讲座和视频。
刚开始的时候我也问过同样的问题——希望能得到一个关于学习Rails的规范性指南……我找不到,所以我决定写一篇给那些可能有一天会发现自己处于类似处境的人:)你可以在这里找到它:
学习Ruby和Rails的最佳方法
(它现在实际上在官方Ruby on Rails IRC聊天室中与!learn factoid helper一起返回。)
对于像我这样从PHP转到RoR的人来说,这看起来是一个很好的资源
http://railsforphp.com/还有一本书《Rails for PHP Developers》