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

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

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

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


当前回答

我同意srboisvert的观点。不要在Windows上操作。您可以将Ubuntu (Linux版本)添加到Windows并进行双启动。这需要一些工作,但这比违背常理,试图让所有事情都在寡妇身上工作要容易得多。

Ubuntu, Heroku和Git工作得很出色。要知道学习曲线一开始是陡峭的。从Guru.com或Elance上雇佣一些人来帮助你。

此外,在Mac上运行Textmate是首选的解决方案,所以如果你正在考虑购买一台Mac或有机会使用一台Mac,这是最好的选择。我认为你不需要太多的计算能力……

最后,我最喜欢的书是《Agile Web Development for Rails》。谷歌搜索并不能很好地工作,因为大多数信息来自旧版本的Rails,已经被弃用或不能工作。

其他回答

我认为来自Peepcode的截屏和短书真的很好。他们有一些截图让你开始学习,当你更深入的时候也会有一些。

神奇的决定!在学习Rails之前,先了解Ruby是非常有用的,所以下面是我对学习Rails的最佳途径的看法:

Learn to Program by Chris Pine - You can read this in an afternoon to get a feel for the Ruby language. The Well Grounded Rubyist by David Black - Like the title says it will give you an excellent grounding in the language. Eloquent Ruby by Russ Olsen - This book is sublime, it reads like a novel. Ruby Best Practices by Gregory Brown - By this point you should be ready for the advanced level of this book. Rails for Zombies - Fun tutorial you can complete in an afternoon. Rails Tutorial by Michael Hartl - Fantastic (and free) tutorial and I have heard his accompanying screencasts are amazing. Agile Web Development with Rails by Sam Ruby - By the time you are finished this you are now a completely capable Rails person!

除了书本之外,最重要的是获得对你所做事情的反馈。要做到这一点,我建议花时间在irc.freenode.net #ruby和#rubyonrails。在stackoverflow上发布你正在做的事情或遇到的麻烦也是非常有用的,因为人们提供的评论、解释和不同的思考方式是非常宝贵的。

你也一定要看看Ruby Rogues播客,他们提供了宝贵的信息,评论员都是Ruby社区里非常受人尊敬的人。为了让你的观看和阅读乐趣(按此顺序),请前往瑞恩·贝茨的《Railscasts》和艾菲恩·贝德福德的《Asciicasts》。

最后,我建议在github上寻找不同的宝石,阅读代码,然后为它们做出贡献。你不必过于雄心勃勃,做大量的重新编码,尤其是在刚开始的时候。只要从一些小事情开始,比如编辑和使README文件更容易阅读。

我不使用IDE,但在Railsconf上我看到了Jetbrains的Rubymine演示,它看起来非常棒。

我没有编程背景。我自学了PHP,最近加入了一家专门研究Ruby on Rails的公司。他们有一个全面的Rails培训计划,它足够灵活,可以适应我们想要实现的任何更改。虽然我不是rails专家,但我愿意分享我使用rails的经验。我希望这能有所帮助。

以下是我所遵循的路径(结合我所使用的工具)

Start with a simple ruby guide. It will help a lot, since entire rails framework revolves around classes and objects. Environment and OS are not important. Though I am working on a Mac, I frequently work on Linux and Windows, and I do not face any problems. Start with a good book which explains using a demo app. [I am using Agile Web Development with Rails - By The Pragmatic Bookshelf]. There are many other good books as well. Once you are done with the application, you will have a good idea of the framework. Try to understand the SQL queries generated by Active Record module. Go through the Rails Guides. You will find the framework a lot easier. Keep practicing.

几个关键点

It takes years to learn a language completely. So be patient and do not stop learning. Go through rails api as when required. [While developing your first app] Google the things which you do not understand. People have written great articles on almost all topics. Use Stackoverflow :-) [Only when you are not able to find the solution on your own.] Load railscasts on your phone or video player. Watch 'em while travelling or in your free time. They are of few minutes each. You will learn a great deal of things and also learn the best way of doing things.

工具

Shell[在Mac和Ubuntu中] 编辑器[Mac中的Textmate, Ubuntu中的Gedit和Windows中的notepad++] 安装了Firebug的Firefox进行测试。

最后我有一句话要说“继续努力”。愿一切都好!

我以前在windows上用Java和c#编程。

我赞同这些来源:

IDE:尝试Apatana RadRails 3预览:http://www.radrails.org/3。它是最接近Visual Studio的东西。我偶尔会使用它,但仍然喜欢Textmate的轻盈感。

OS: Mac OS从Ruby社区得到了最多的爱。其他的都被当作私生子对待。

书:

实用程序员指南(十字镐书) 使用Rails进行敏捷Web开发

视频:

Peepcode (pay)是一种快速掌握概念的好方法 Railscasts(免费)是一个很好的方法,每周获取新的宝石和概念增量 Railscasts(专业版)也是一种以相当低的价格获取概念的好方法。

我在Mac OS上使用RoR和textmate编程,这很棒。

我建议“Programming Ruby 1.9”(The Pickaxe Book) for Ruby and Agile Web Development with Rails”来学习Rails,两者都是由Pragmatic Bookshelf出版的。

好运!