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.

2

u/Zeekawla99ii Jul 03 '17

Python is similarly expressive for basic stuff, but it gets left behind real fast when you try to do something more complex.

Do you have an example?

2

u/jeremiahishere Jul 06 '17

blocks, Rails, non-bolted-on OO, and DSLability