Django 还是 Ruby-On-Rails?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/846231/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 21:14:07  来源:igfitidea点击:

Django or Ruby-On-Rails?

ruby-on-railsrubydjango

提问by Kapil D

I have been looking at jobs. Most of the companies require RoR or Django experience. I don't know any of the languages. The number of organizations working with RoR is greater than Django. But I prefer django because of python.

我一直在找工作。大多数公司需要 RoR 或 Django 经验。我不会任何语言。使用 RoR 的组织数量比 Django 多。但我更喜欢 django 因为 python。

What do you coders/recruiter suggest me to know?

你们编码员/招聘人员建议我知道什么?

回答by Wesley

My best answer is for you to learn both.

我最好的答案是让你同时学习。

Consider this your end goal, and instead consider your question as, "Which one should I learn first?"

将此视为您的最终目标,而是将您的问题视为“我应该先学习哪个?”

I recommend that you start with Django, especially if you have Python experience. Django's approach, like that of Python itself, is more condusive to learning. Once you've gotten your feet wet, learn Ruby on Rails, because that's the framework that will net you easier cash when you get out into the modern Web 2.0 workforce.

我建议你从 Django 开始,特别是如果你有 Python 经验。Django 的方法和 Python 本身一样,更利于学习。一旦你开始涉足,学习 Ruby on Rails,因为当你进入现代 Web 2.0 劳动力队伍时,这是一个可以让你更轻松地赚钱的框架。

Once you're thoroughly familiar with Ruby on Rails and have been working for a bit, continue learning Django. Refamiliarize yourself with the basics, then start to learn some of the more advanced stuff. Django's inner guts are supposedly easier to dissect than that of Rails. If you ever find yourself faced with a job opening with a surprisingly novel and challenging web platform to implement, you'll find your Django knowledge quite handy.

一旦您完全熟悉 Ruby on Rails 并且已经工作了一段时间,请继续学习 Django。重新熟悉基础知识,然后开始学习一些更高级的东西。据推测,Django 的内在比 Rails 更容易剖析。如果您发现自己的职位空缺需要实施一个令人惊讶的新颖且具有挑战性的网络平台,您会发现您的 Django 知识非常方便。

Here's a bulletized rundown:

这是一个项目符号纲要:

Django

姜戈

  • Great documentation
  • Thorough tutorial to ease you in
  • Fewer files to understand at first (vs. scaffolding in Rails)
  • Built on Python, which you might as well know anyway
  • More similar to enterprise stuff like Java Servlets/JSP
  • Easier to dig into its innards
  • 很棒的文档
  • 详尽的教程让您轻松上手
  • 一开始需要理解的文件更少(与 Rails 中的脚手架相比)
  • 建立在 Python 之上,无论如何你也可能知道
  • 更类似于企业的东西,比如 Java Servlets/JSP
  • 更容易挖掘它的内脏

Ruby on Rails

Ruby on Rails

  • It's what's hot
  • Hot means more jobs
  • You want money, don't you?
  • When you want to make a "traditional" web 2.0 site, its generated code lets you get done really fast
  • Integration with JavaScript libraries
  • Built on Ruby, which you might as well know anyway
  • 这就是热
  • 热门意味着更多的工作
  • 你想要钱,是吗?
  • 当您想创建一个“传统”的 web 2.0 站点时,它生成的代码可让您快速完成
  • 与 JavaScript 库集成
  • 建立在 Ruby 之上,无论如何你也应该知道

Verdict: Django first (do the tutorial), then Rails, then Django again

结论:首先是 Django(做教程),然后是 Rails,然后是 Django

回答by Pavel Podlipensky

I'd suggest you to do some research regarding technologies trends and professionals demand, you can do this by using Google tools, such as Google Trendsenter image description here

我建议你做一些关于技术趋势和专业人士需求的研究,你可以使用谷歌工具来做到这一点,比如谷歌趋势在此处输入图片说明

See more details about technology research here. Happy coding!

在此处查看有关技术研究的更多详细信息。快乐编码!

回答by Chris Jester-Young

If you're more familiar with Python, then you should do Django. Google App Engineis a big user of Django, and you can use that to "sharpen your saw" in Django skills, for a cost-free investment.

如果你更熟悉 Python,那么你应该做 Django。Google App Engine是 Django 的大用户,您可以使用它来“磨练”Django 技能,进行免费投资。

回答by Andre Bossard

Learn both.

两个都学。

Look for a company, where the people (without ties) have fun working there and speak compassionate about there work. This matters far more, than the technology they're working with.

寻找一家公司,那里的人(没有关系)在那里工作很开心,并对那里的工作充满同情心。这比他们正在使用的技术重要得多。

回答by roopesh

If you are low on time, and have to choose one, just choose the one, for which you know how to program. If you know python, learn django, if you know ruby, learn rails. Both have excellent tutorials, and reference materials, RoR rules in screencasts, django rules documentation and tutorials. If you have a lot of time on hand, say 3-4 months, then learn both. What's wrong with that?

如果您的时间不够,不得不选择一种,只需选择一种,您知道如何编程。懂python就学django,懂ruby就学rails。两者都有出色的教程和参考资料、截屏视频中的 RoR 规则、django 规则文档和教程。如果你手头有很多时间,比如 3-4 个月,那么两个都学。那有什么问题?

回答by angel

try ruby...I love ruby over python then I prefer rails over django...but if you try ruby and don't like it your best option would be django...

尝试 ruby​​...我更喜欢 ruby​​ 而不是 python 然后我更喜欢 Rails 而不是 django...但是如果你尝试 ruby​​ 并且不喜欢它你最好的选择是 django...

回答by Yablargo

I think it depends on how much convention you are used to. Coming from MVC4 to Django I like alot of things, but find I am writing more code where django calls for configuration vs convention. I have found that there are alot of generic methods that I am finding that reduce this, so it might be a learning curve issue for me.

我认为这取决于您习惯了多少约定。从 MVC4 到 Django,我喜欢很多东西,但发现我正在编写更多代码,其中 django 调用配置与约定。我发现有很多通用方法可以减少这种情况,所以这对我来说可能是一个学习曲线问题。