Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby and Python

Name: Anonymous 2011-03-20 23:19

Legitimate question, /prog/: why would someone choose Ruby over Python?

Is it just a subjective personal preference or are there objective advantages/disadvantages?

Name: Anonymous 2011-03-20 23:34

>>1
They are both crippled, it's preference.

Name: Anonymous 2011-03-21 0:02

I'm currently using Python to teach someone else programming, for the lack of a better language. The first thing I did was teach the person what lexical scoping is, and show how broken it is in Python. Things seem to be going pretty well. Currently we're doing recursion (with pretty advanced problems) and I still haven't explained what for does.

Name: Anonymous 2011-03-21 0:33

- Ruby has a more elegant syntax
- Ruby is slow as fuck
- Python has a more elegant ``IDLE''
- >>2

You pick your poison.

Name: Anonymous 2011-03-21 8:13

Javascript. No joke, it's pretty sweet outside the browser with no DOM crippling it.

Name: Anonymous 2011-03-21 9:22

Ruby has better OO

But OO is an enemy of your freedom anyway

Name: Anonymous 2011-03-21 9:23

I hear Ruby is more like Perl. As someone who enjoys Perl, I'd probably choose Ruby for what little familiarity I could get.

Name: Anonymous 2011-03-21 9:31

Legitimate question, /biol/: why would someone choose cow excrement over horse excrement?

Name: Anonymous 2011-03-21 9:55

>>8
fetish

Name: Anonymous 2011-03-21 10:00

>>8
It's sloppier

Name: Anonymous 2011-03-21 16:09

The current Python runtime is probably "objectively" faster than the Ruby one, but realistically, you won't use either if you care much about speed.
The choice is more likely to come down to wanting to use frameworks or libraries from one of the other, which again is based a lot on personal preference.
I'd say Python is better suited as an introductory language, because it is a fairly small, simple and regular language, but that's my personal preference shining through. Ruby on the other hand inherits some sugar and spice from Perl, which might appeal to a Perl programmer who for some reason didn't want/get to write in Perl proper.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List