就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
当前回答
刚开始的时候我也问过同样的问题——希望能得到一个关于学习Rails的规范性指南……我找不到,所以我决定写一篇给那些可能有一天会发现自己处于类似处境的人:)你可以在这里找到它:
学习Ruby和Rails的最佳方法
(它现在实际上在官方Ruby on Rails IRC聊天室中与!learn factoid helper一起返回。)
其他回答
我的公司已经开发了三年的知识管理和决策支持平台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.
哦,我差点忘了。下面是更多的Ruby截屏资源:
SD Ruby——他们在网上有很多视频——我发现他们的Rest演讲SD9和SD10是最好的介绍之一。其他休息演讲假设你无所不知。这些都是非常介绍性和切题的。
Obie Fernandez谈InfoQ - Restful Rails。我也读过他的《Rails Way》一书,发现它内容丰富,但冗长而曲折,质量也有点不稳定。我从这本书中学到了很多东西,但我觉得为了读到好的部分而阅读重复的和不相关的东西有点惩罚人。
Netbeans是一个很好的手把手IDE,如果你有耐心等待它的工具提示,它可以教你很多语言技巧(即使在非常快的机器上,它也是一个非常慢的IDE),你可以使用IDE以图形化的方式浏览可用的生成器和类似的东西。获得最新的版本,甚至还内置了Rspec测试。
波特是一个预先构建的基础应用程序,其中已经插入了许多标准插件。如果你下载并试用它,弄清楚它是如何设置的,你就已经在创建自己的全功能应用程序的半路上了。
任何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
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,并在那个网站上阅读其他人的答案。
我目前正在学习RoR,这是我到目前为止所做的: 1. 阅读并遵循SitePoint的“简单Rails 2.2” 2. 阅读并跟随Oreilly的“Rails, Up and Running”第二版。
这两本书很有教育意义,采用了相同的方法,但风格不同;第二本书更激进一些,如果你有一些RoR知识,这是很好的。
如上所述,在阅读资源时要非常小心,有很多过时的视频和文章。