就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
就目前而言,我是一名Java和c#开发人员。我对Ruby on Rails看得越多,我就越想学习它。
你发现学习RoR的最佳途径是什么?在Windows上开发会更容易吗,还是应该在Linux上运行虚拟机?
是否有一种IDE可以与Visual Studio的健壮性相匹配?有什么程序可以给我们一个很好的开销吗?有什么好书吗?
说真的,任何建议/技巧/咆哮都很棒。
当前回答
我没有编程背景。我自学了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进行测试。
最后我有一句话要说“继续努力”。愿一切都好!
其他回答
IDE: NetBeans Book: Agile Web Development With Rails Installation: Instant Rails
现在有一个关于NETTUTS的非常可靠的正在进行的系列,您可能会感兴趣。
试试这本书http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
找一个附近的Ruby用户小组并开始参加。我发现,这是一个很好的方法,可以结识许多对开发充满热情并愿意教书的人。
我现在正在学习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的语法。