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

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

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

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


当前回答

我现在正在学习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的语法。

其他回答

http://www.teachmetocode.com是学习Ruby和Ruby on Rails的绝佳来源。这里有一些介绍Rails基础知识的屏幕视频,还有一个由6部分组成的系列,介绍如何使用Ruby on Rails创建Twitter克隆版。

这里有一些很棒的建议!

我将列出的一些资源已经被提到,一些我认为没有。我肯定还不是一个专业选手,我只是在过去的几个月里一直在学习,我的进步速度很快。这是帮助我的顺序:

Why's poignant guide to ruby: excellent introduction to the Ruby language by the infamous _why. Agile web development with rails book: great book with some good in-depth follow alongs Rails tutorial by Michael Hartl (railstutotrial.org): this has been my favorite resource. Hartl's style of walking you through demo apps and explaining everything just made things click for me. Rails for Zombies - ran through this twice, great for reinforcing the basics. Railscasts - I started following this along at first, but they were not helpful until now that I am just really starting to grasp Rails. I would leave these for the end after you have got your feet wet. Think Vitamin's rails tutorials were also pretty good. I followed along these screen casts at first, to feel out the language and then did them again towards the end. The "Learning Rails" podcast, although outdated (Rails 2) was also a good starting resource. I listened to this while driving/working out.

我希望这对你有帮助!我远不是专业人士,但我一头扎进去,尽可能多地从各种资源中汲取。我上面提到的方法是最有帮助的!

哦,现在真正对我有帮助的是制定个人项目和设置特定的任务。跟着做很好,但是当你在没有向导的情况下潜入时,你才能真正学到东西!

毫无疑问

使用Rails进行敏捷Web开发

and

推荐手册

为了好玩

高级Rails食谱

我想链接到另外两个,但Stack Overflow不允许。查看同一网站。

My first suggestion would be to learn a little about symbols first. Rails isn't the smallest framework ever, and while there's definitely lots to learn, most of it will start to make sense if you have at least a little bit of understanding what makes it different ("special") from other languages. As pointed out, there's no exact analog in any of the major languages, but they're heavily used by Rails, in order to make things read straightforwardly and perform well, which is the reason I brought it up. My very first exposure to Rails was also my first time looking at Ruby (well before 2.0), and the first thing that caught my eye was the goofy :things they were passing around, and I asked, "WTF is that?"

另外,看看RubyQuiz,并在那个网站上阅读其他人的答案。