Skip to content

Instantly share code, notes, and snippets.

@entrity
Last active June 26, 2018 00:28
Show Gist options
  • Save entrity/41c76fbf272ce1d517fe4bd887583f9c to your computer and use it in GitHub Desktop.
Save entrity/41c76fbf272ce1d517fe4bd887583f9c to your computer and use it in GitHub Desktop.
Python vs Ruby

In favour of ruby

  • Ruby allows lambdas that are longer than a single expression
  • Ruby doesn't have semantic whitespace. (Especially an issue when working in an interactive session.)
  • Ruby functions always return something, so more functions lend themselves to easy, legible chaining
  • Ruby doesn't require unnecessary specifications of both self and class to designate a member function
  • Ruby interpreter looks for rc files to customize your startup

In favour of Python

  • Python's numeric types are 64 bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment