TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Should I learn Ruby on Rails or Python?

6 点作者 anantzoid超过 13 年前
I'm familiar to C and C++ syntax and plan to learn a new and more powerful programming language this winter. Should I go for Python 2.x(since I'll be working on linux)or shall I learn Ruby on Rails? I want a more versatile language since I'll may change platforms.

4 条评论

sathishmanohar超过 13 年前
Its amazing how many people start with Ruby on Rails first.<p>To be clear,<p>Language: Ruby, Framework: Rails<p>Language: Python, Framework: Django etc.<p>So, Language is what you actually write as code, Framework is set of frequently used patterns, that is provided as a package to make app development easier.<p>If you are totally new to frameworks, I recommend going with Ruby on Rails, Coz, It makes many commonly used programming patterns, lot easier (no configurations, as they say). When I say easier, its as easy as one line of code sometimes. Many people say, you don't have to know ruby to start with Rails (which is partly true), but, I recommend learning ruby first before you try rails, because, ruby has many fundamental syntactic differences, that might trip off a lot of people.<p>Another big difference is, if you learn Rails, you can make CRUD Web applications easily. But, not other kind of applications. Ruby can be used to make native applications though, same with python.<p>Both Python and Ruby are cross-platform and available for all major Platforms.<p>Hope this helps.
pheelicks超过 13 年前
As already pointed out, one is a framework (RoR), while the other is a language. As you talk of learning a programming language, I'm guessing you meant, should I choose Ruby or Python?<p>To pick between I would suggest you try and write a couple of simple scripts in both and see which suits you better.<p>You should also think what you would like to use this knowledge for in the future. Do you want to build web apps, manipulate text, write desktop apps? Once you know this, it'll be easier to make the right choice about which tech to use.
phektus超过 13 年前
Uhmmm, ruby on rails is a framework. You should be asking whether to learn Python or Ruby. Why not learn both so you can expand your vocabulary and narrow down once the situation demands it?
Zepplock超过 13 年前
Apples or Oranges? Python is a language, RoR is a framework. Would make more sense to ask your question about Python and Ruby, or Django and RoR.