r/programming • • Feb 24 '13

Ruby 2.0.0

http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
600 Upvotes

193 comments sorted by

View all comments

Show parent comments

3

u/hak8or Feb 24 '13

By more complex, are you referring to more dynamic pages? Why would I use Ruby over PHP/HTML/CSS/JS? Does Ruby essentially combine what I listed before into one language?

11

u/[deleted] Feb 24 '13

Ruby would replace PHP out of that list, not any of the others. For information on why what is different with Ruby over PHP then check out this page.

1

u/[deleted] Feb 24 '13

What wasn't mentioned was the server that runs PHP, which is typically apache. Ruby also manages the HTTP server as well, correct? I.e. no need for apache.

4

u/[deleted] Feb 24 '13

No. Rails ships with a built in web server called WebBrick. Ruby does not. PHP 5.3 ships with a built in web server too. Neither of the servers included with PHP or Rails are intended for production usage. To serve up a rails app you typically use either apache (with passenger aka mod_ruby similar to mod_php for apache), or a dedicated server for ruby rack apps (unicorn, thin, rainbows, mongrel, etc etc).

5

u/thoomfish Feb 24 '13

WEBrick is part of the Ruby standard library, not part of Rails.