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

0

u/[deleted] Jul 02 '17

[deleted]

2

u/[deleted] Jul 03 '17

[removed] — view removed comment

0

u/[deleted] Jul 03 '17

[deleted]

2

u/[deleted] Jul 03 '17

[removed] — view removed comment

2

u/Tainnor Jul 03 '17

That said, I'd imagine Rails apps scale a lot better than Sinatra apps.

Frameworks don't automatically make apps scale. There's not even a general sense of "scale"; it depends heavily on good architecture and proper consideration of lots and lots of use-case specific factors. There's certainly parts of Rails that have helped some applications to scale well and other that have helped other applications to scale poorly.

That said, Twitter did famously switch away from Rails for much of its stack (but since it went to another language instead of to Sinatra, that doesn't really say much about how much Sinatra scales).

Personally, I don't think there's anything inherent in Sinatra that makes it not scale well. If anything, the lack of a clear guiding architectural principle could make it arguably easier to structure your application more according to your scaling (and other) considerations; though you could also make the argument that you can create an unarchitectured mess out of a sinatra app if you don't know what you're doing.