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

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

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

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


当前回答

我很惊讶为什么很少提到Ruby指南。Why可能已经不在了,但是这个指南很容易在网上找到(谷歌点在这里),它是一个非常简单的阅读,提供了我对Ruby的介绍。

在这份指南之后,我将推荐其他人推荐的书籍之一,或者跟随学习Rails的系列视频,这是我如何学会足够多的Ruby on Rails的。一旦你完成了学习Rails系列。你想用Rails做的事情将开始与一般的教程有所不同,这就是Railscasts成为一个很棒的工具的地方。Railscasts在某些方面没有涉及到Rails可以做的事情。

其他回答

在我的职业生涯中,我已经从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播客的积压,它们提供了许多主题的精彩见解,甚至是关于一般的软件开发。

我的建议是开始——选择一个你通常用来学习mvc风格语言的小项目(例如,一些数据库,可能是一些基本的工作流),然后当你需要学习一个概念时,使用其中的一个(或两个!)

使用Rails进行敏捷Web开发 或 铁路之路

了解它是如何工作的,然后尝试一下。

敏捷Web开发的问题在于它已经过时了,并且场景运行的时间太长,以至于您真的不想只构建一次;Rails方式可能很难遵循,因为它是从参考到学习的跳跃,但如果它是好的,它比敏捷Web开发要好。

但总的来说,它们都是好书,都有利于学习,但它们都没有提供你想要遵循的“教育”路径。所以我读了前者的几章(足以获得基本概念并学习如何引导第一个应用程序——也有一些在线文章可以帮助这一点),然后就开始了,然后每隔几天我就会阅读一些新的东西,或者我用书来理解一些东西。

还有一点:这两本书都是Rails方面的书籍,而不是Ruby方面的书籍,如果您打算编写干净的代码,那么尽早花一天时间学习Ruby语法是值得的。Why's Guide to Ruby是一本很好的书,还有其他的。

我没有编程背景。我自学了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进行测试。

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

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

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.

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