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

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

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

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


当前回答

和你一样,我是一名java/ c#开发人员,试图学习更多的Ruby On Rails。

我正在学习免费的在线课程《Ruby on Rails Programming with Passion》,这是一门很好的入门课程,可以去看看。

我们使用NetBeans作为IDE (win/mac/linux/solaris),如果你习惯Eclipse或Visual Studio,你很有可能会喜欢它。

其他回答

在guides. Rails .info上阅读所有的指南,从Getting Started with Rails开始。它们写得很好,组织得很好,而且是最新的。

再等几个月,Simon St. Laurent和Edd Dumbill的《Learning Rails》将于11月问世。那一系列的书是惊人的,这本书将涵盖Rails的最新版本。

我的公司已经开发了三年的知识管理和决策支持平台mavenlive.com。在过去的几年里,我们学到了很多关于rails的知识,下面是我的一些建议。

Switch to Mac! The tools that are available to you and the development environment on Mac allows you to be far more productive than on Windows. railcasts.com has a wealth of informative screencasts from beginner to expert. You can always find new and more efficient ways of doing things from Ryan's posts. Scaling Rails screencasts coupled with NewRelic has provided powerful insight into the performance of our application and allows us to develop effectively while keeping our eyes open for future scalability issues.

在我的职业生涯中,我已经从c#转向了Ruby和RoR,在我的个人生活中,我发现linux对开发来说更有吸引力一些。特别是现在我已经开始使用git,在linux上的实现更加清晰。

目前我正在双启动,接近于全职运行Ubuntu。我在开发环境中使用gedit和各种插件。从2010年底开始,我开始推动使用Vim进行开发,甚至在OS X上使用Textmate。

大量的Rails开发人员正在使用mac,这实际上让我开始思考这个方向。

虽然我还没有尝试过,但是Ruby in Steel为您提供了一个Visual Studio世界中的Ruby IDE,如果您感兴趣的话,IronRuby是Ruby的. net版本。

就书籍而言,Pragmatic Programmers的《Programming Ruby》(也被称为Pickaxe)是学习Ruby的实际教材。我咬紧牙关,买了那本书和《Rails敏捷Web开发》;这两本书都很棒。

窥码截屏和PDF书籍也很适合入门;每次9美元的截屏费用很难出错。我其实买了五瓶装的。

还可以查看以下内容:

官方铁路指南 Railscasts railsapi.com或Ruby on Rails - APIdock 红宝石秀 面向僵尸的Rails Softies on Rails -面向。net开发者的Ruby on Rails Rails播客 Rails最佳实践

在过去的一个月里,我已经浏览了Rails和Rails Envy播客的积压,它们提供了许多主题的精彩见解,甚至是关于一般的软件开发。

神奇的决定!在学习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演示,它看起来非常棒。