就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。

你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?

是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?

说真的,任何建议/技巧/咆哮都很棒。


当前回答

我在很久以前看过臭名昭著的“15分钟写博客”视频,当时Rails大概还在1.0版本左右。关于Ruby/Rails世界最重要的事情之一是,鉴于它是一个伟大的社区,与其他框架相比,它的变化速度快得可笑。

今天,Rails与过去相比有了很大的不同,尽管其主要意识形态一直保持不变。尽管在过去的几年里我学到了很多关于Rails的东西,但我仍然在不断地学习关于它的新东西。

对我来说,帮助我发现并跟上Ruby和Rails的最新方法的最有价值的资源如下:

Rails Guides - A nice way of learning Rails itself, edited by the community, moderated by the core contributors. The site has a lot to offer on most of the important main topics around Rails that it can get you up and running very quickly. It covers bot the most recent stable and edge versions of the framework. If you understand the main ideology of Rails than I definitely recommend checking out (and subscribing to) Ryan Bates' Railscasts. Let me just quote from the site itself, I think it's pretty self explanatory: Every week Ryan Bates will host a new Railscasts episode featuring tips and tricks with Ruby on Rails. These screencasts are short and focus on one technique so you can quickly move on to applying it to your own project. The topics target the intermediate Rails developer, but beginners and experts will get something out of it as well. There are also a lot of podcasts around Ruby/Rails, the two that I keep listening to are Ruby5 and the Ruby Show. For more specific questions like API calls etc, I'd recommend APIDock's Rails and Ruby sections where you can get more information on specific methods. If you are getting more familiar with the framework, it's worth taking a look at Rails Best Practices. There's a bunch of short articles on certain issues that most people make in the beginning of their learning curve with Rails. This site is meant to point pot these issues and help beginners finding their way towards writing better and more well thought out code. There's also a gem that you could use which scans your application and points out these issues and offers solutions/workarounds. Pretty neat!

这些资源应该可以帮助您建立和运行Rails。祝您在Rails世界的旅程中好运,欢迎来到这个社区。

其他回答

有一个叫Softies on Rails的网站,是由几个前程序员编写的。NET开发人员可能会有一些用处。他们有一本书叫《Rails for .NET开发者》,将在接下来的几个月出版……

我开始在一个Windows盒子上使用Eclipse的RadRails插件和Dreamweaver的RubyWeaver扩展(回到1。x天的Rails)。从那以后,我换了一台运行TextMate的Mac电脑,再也没有想过回去。

至于书籍,我从《Ruby之路》和《Rails敏捷Web开发》开始。在您开始Rails开发时,构建Ruby背景无疑会有所帮助。

一定要看瑞恩·贝茨的Railscast系列。

任何Rails的uber源都是http://www.rubyonrails.org/,如果站点上没有,你可能不需要它。

一个快速的食谱是Ruby on Rails: Up and Running,你可以从O'Rielly或搜索谷歌获得在线版本。他们带你了解Rails的约定,并使用Instant Rails,这是可以的。

更好的Rails书籍“敏捷Web开发与Rails”,这是Rails的汤到坚果。它会引导你下载和设置Rails、Gems等等。

如果你是一个Java“家伙”,想要一本过渡的书O' reilly有“Rails for Java Developers”http://oreilly.com/catalog/9780977616695/?CMP=AFC-ak_book&ATT=Rails+for+Java+Developers

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.

这门课有一本推荐教材。在这里……但是你可以在网上看讲座和视频。

哦,我差点忘了。下面是更多的Ruby截屏资源:

SD Ruby——他们在网上有很多视频——我发现他们的Rest演讲SD9和SD10是最好的介绍之一。其他休息演讲假设你无所不知。这些都是非常介绍性和切题的。

Obie Fernandez谈InfoQ - Restful Rails。我也读过他的《Rails Way》一书,发现它内容丰富,但冗长而曲折,质量也有点不稳定。我从这本书中学到了很多东西,但我觉得为了读到好的部分而阅读重复的和不相关的东西有点惩罚人。

Netbeans是一个很好的手把手IDE,如果你有耐心等待它的工具提示,它可以教你很多语言技巧(即使在非常快的机器上,它也是一个非常慢的IDE),你可以使用IDE以图形化的方式浏览可用的生成器和类似的东西。获得最新的版本,甚至还内置了Rspec测试。

波特是一个预先构建的基础应用程序,其中已经插入了许多标准插件。如果你下载并试用它,弄清楚它是如何设置的,你就已经在创建自己的全功能应用程序的半路上了。

我发现Obie Fernandez写的《The Rails Way》非常棒,当使用Rails进行敏捷Web开发还不够深入的时候,我经常会参考它。Obie Fernandez也有一个不错的博客。