简体   繁体   English

Ruby on Rails值得学习吗?

[英]Ruby on Rails worth learning?

I use PHP+Zend and Java+Wicket and learn Python (so will have Django available). 我使用PHP + Zend和Java + Wicket并学习Python(因此可以使用Django)。

So I want to know if it is worth learning RoR for rapid web-development . 因此,我想知道值得学习RoR 进行快速的Web开发 Is it much faster building web-apps than with the other approaches or is it neglectable? 与其他方法相比,构建Web应用程序的速度要快得多还是可以忽略不计?

Or let me rephrase it: What are the facts that make RoR much faster in rapid development than the one listed above and so makes RoR worth learning in addition to the others. 或让我改写一下:是什么事实使RoR在快速发展中比上面列出的一个要快得多,因此使RoR除了其他优点外还值得学习。

Thanks 谢谢

ps: make it community wiki or whatever, but imho this is a clear question with not much room for argumentation. ps:使其成为社区Wiki或其他任何东西,但是恕我直言,这是一个明确的问题,没有太多争论的余地。

People are quick at developing things they know. 人们会迅速发展他们所知道的东西。 If what you know solves your problems right now in a reasonable time frame then there's little reason to learn something else because someone else says it's faster or better. 如果您知道的事情现在可以在合理的时间范围内解决您的问题,那么您就没有理由学习其他东西,因为别人说它更快或更佳。

Do what works for you and for your projects. 做对您和您的项目有用的事情。

Yes RoR is worth learning. 是的,RoR值得学习。

If for nothing else that to have more exposure to other things in programming. 如果别无其他,那就是在编程中更多地接触其他事物。 The more experience in other frameworks and languages you have the more it changes your thinking and can lead to better results at times. 您在其他框架和语言中拥有的经验越丰富,它就会改变您的思维方式并有时会带来更好的结果。 Plus it makes you more marketable. 加上它使您更具市场价值。

The best RAD tool kit is the one that you like best, because you will be the most proficient in it. 最好的RAD工具包是您最喜欢的工具包,因为您将最精通它。 Not having to go to the documentation as often, knowing how to layout your project and knowing the strengths and weaknesses will all trump the "ability" of the framework you choose. 不必经常阅读文档,知道如何布置您的项目以及知道优点和缺点,都将胜过您选择的框架的“功能”。 Pick one that you like and learn it through and through. 选择您喜欢的一个,并不断学习。 With someone who knows the frameworks, they all will be about the same (order of magnitude) with regards to both development time and performance. 在知道框架的人的眼中,就开发时间和性能而言,它们都将是相同的(数量级)。 So my advice would be to pick one you like, and stick with it. 因此,我的建议是选择一个喜欢的人并坚持下去。 The one you chose ultimately comes down to your ability level and your tastes... 您最终选择的一个取决于您的能力水平和口味。

You can make other frameworks do basically what Rails gives you for rapid development....so there's no clear "Rails is better than Java or PHP". 您可以使其他框架基本上执行Rails可以为您提供的快速开发。...因此,没有明确的“ Rails比Java或PHP更好”。 After all, it's just a bunch of Ruby. 毕竟,它只是一堆Ruby。 A lot of frameworks (CakePHP, Asp.net MVC, have copied some of the more useful features of Rails). 许多框架(CakePHP,Asp.net MVC,已经复制了Rails的一些更有用的功能)。

However, it is certainly a lot more convenient for doing rapid development if you agree with the Rails philosophies. 但是,如果您同意Rails的理念,那么进行快速开发肯定会更加方便。

Here's the reasons. 这就是原因。

  • Scaffolding - in a command you can generate a table, model, tests, and a bunch of CRUD views and controllers. 脚手架-在命令中,您可以生成表,模型,测试以及一堆CRUD视图和控制器。
  • ActiveRecord - it's the easiest ORM out there to use, all you need is to have a bunch of tables and you can immediately do 90% of the operations you need without having to write any code ActiveRecord-这是最容易使用的ORM,您只需要拥有一堆表,您就可以立即执行90%的所需操作,而无需编写任何代码
  • Ruby - it's a language made with a lot of shortcuts that you let you write code faster in less lines Ruby-这是一种具有许多快捷方式的语言,可让您以更少的行数更快地编写代码
  • RubyGems + Github - there is a lot of code out there that you can start using in a few commands if someone has already solved a problem you're having. RubyGems + Github-如果有人已经解决了您遇到的问题,那么您可以使用一些命令开始使用很多代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM