Alex Rivera | Logout

what is ruby used for BESIDES rails?

Asked 2009-09-04T00:01:07.050
42

Ruby on Rails has become a new competitive face in the server programming industry, along with php, asp.net, jsp, python, and a few others. But is ruby used for anything BESIDES rails? Does it owe all of its success to the rails framework? More questions here are tagged ruby-on-rails than ruby. However, I supposed PHP isn't used for that much outside of server stuff,

thoughts?

Edit
Report

4 Answers

58

Firstly, PHP was built to be a server language, first and foremost. That's one of the primary reasons it's not usually used for anything other than web applications - it's not designed for it and therefore can't match up to the requirements of, say, a scripted desktop application.

Ruby was designed as a general-purpose scripting language, and thus has a wide support for a number of different applications. It has been used across the board for everything from web applications, to web servers themselves, to intelligent graphing libraries, to picture recognition engines, to threaded database servers, to low-level system utilities. It has a wide spectrum of use throughout computing.

Rails has most certainly boosted the popularity of Ruby by a huge amount, brought it up into the forefront of scripting languages, spawning 40+ books, 18 conferences, distribution with nearly all the major operating systems and 7 different implementations to boot!

To begin with, all of Rails' internals are written in Ruby itself, but all of the Rubygems, libraries, snippets or anything else that is used by Rails developers is written in Ruby too, and is most likely built to work outside of the Rails stack.

Having said that, the popular web framework is not the reason why Ruby is popular. Sure, it has helped bring much-needed attention to the language, but it's not the reason why people use it day to day. It's used for everything from web applications to desktop GUI applications because of it's simple, elegant syntax, it's clean, sensible and complete standard library, it's wide ecosystem of community code, support and toolchains.

Ruby is used because it rocks.

answered 2009-09-04T00:17:16.110
15

But is ruby used for anything BESIDES rails?

Oh my gosh yes. Look at RubyForge, which predates Rails and the even older RAA for examples of non-Rails stuff. At work, besides the inevitable Rails-based intranet apps, I use ActiveRecord standalone for database work, scheduled backups, XML parsing, FTP downloads, CSV parsing, manipulating Excel workbooks and just about any other ad hoc scripting job that turns up. But I'm old - I started playing with Ruby before Rails was an apple in DHH's eye.

At home, I've done all kinds of strange things, some successfully, some rather less so. All, however, were fun and very few were related to Rails.

Does it owe all of its success to the rails framework?

No. Some, but not all. It's also true to say that Rails owes much of its success to Ruby, without which it would be a different beast.

Rails has undoubtedly increased the acceptance of Ruby, taking it to some sort of critical mass where a large enough proportion of developers - regardless of their opinion - have now heard of the language and have some idea of things for which it can be used.

And yes, it rocks.

answered 2009-09-04T08:00:10.423
3

Rubystein - Wolfenstein game clone using the Gosu library :)

answered 2009-09-04T14:34:40.900
2

It's used to write all sorts of applications. Often used to write small script applications like python is.

Check out ruby forge.

answered 2009-09-04T00:09:08.140

Your Answer