从 Python 学习 Ruby;异同 [英] Learning Ruby from Python; Differences and Similarities

查看:31
本文介绍了从 Python 学习 Ruby;异同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

灵感来自 从 Ruby 学习 Python;异同点.

我正好相反——我非常精通 Python,但我需要尽快开始学习 Ruby(稍后再学习 Rails,但那是另一个话题).我链接到的问题稍微解决了这个问题,但是还有其他资源可以为已经有 Python 经验的人教授 Ruby 吗?(换句话说,有编程背景但还不知道 IRB 将正确执行的代码和正确的 Ruby 代码之间的区别的人.)

I'm in the exact opposite boat - I'm pretty well-versed in Python, but I need to start learning Ruby soon (and Rails later, but that's another topic). The question I'm linking to addresses this a bit, but are there any other resources out there that teach Ruby for someone who already has Python experience? (In other words, someone with a background in programming, but who doesn't yet know the difference between code that IRB will execute properly and proper Ruby code.)

编辑:我不只是在寻找两种语言之间差异的列表 - 我想知道是否有任何指南/演练是针对教 Python 程序员编写惯用语红宝石.我知道存在用于从其他语言迁移 Python 的类似指南,但我不了解 Ruby.

EDIT: I'm not just looking for a list of the differences between the two languages - I'm wondering if there are any guides/walkthroughs that are directed towards teaching Python programmers to write idiomatic Ruby. I know similar guides exist for migrating to Python from other languages, but I don't know about Ruby.

推荐答案

虽然不是针对 Python 程序员,但您可能会发现 这个 Ruby 道 有用.

While not targeted at Python programmers, you might find this idomatic Ruby talk useful.

(相关,但对于 Python:像 Pythonista 一样代码:惯用 Python)

(Related, but for Python: Code Like a Pythonista: Idiomatic Python)

这篇关于从 Python 学习 Ruby;异同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆