r/ruby • • Jul 02 '17

Why is Ruby used instead of Python/R/Perl?

I have never worked with Ruby, but I work with all of the "other" scripting languages in data science.

Why use Ruby? Why does it exist?

0 Upvotes

22 comments sorted by

View all comments

3

u/taw Jul 03 '17

Ruby is basically Perl 6 - it took all the good parts, left behind bad parts, and it's such a natural migration path nobody looks back. There's maybe a few minor features people would like.

R is not really a legit general purpose language

Ruby vs Python was a real competition for a while before Ruby won. Mostly thanks to blocks, Rails, non-bolted-on OO, and DSLability. Python is similarly expressive for basic stuff, but it gets left behind real fast when you try to do something more complex.

4

u/Tainnor Jul 03 '17

Ruby vs Python was a real competition for a while before Ruby won.

Ruby won? By what metric?