18

Inspired by Learning Python from Ruby; Differences and Similarities.

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.)

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.

Community
  • 1
  • 1
chimeracoder
  • 20,648
  • 21
  • 60
  • 60

2 Answers2

11

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

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

moinudin
  • 134,091
  • 45
  • 190
  • 216
7

The Ruby website has a page exactly on this topic. It's a summary list, so other answers with more best-practice style comments are surely a good idea.

Phrogz
  • 296,393
  • 112
  • 651
  • 745
  • 1
    Thanks for that - it's useful - but maybe I wasn't clear with my question. I'm looking for a resource to teach me how to write idiomatic code, not just a list of the differences. There may not even be one out there, but it's worth a shot. – chimeracoder Jan 22 '11 at 18:03