I’ve been learning Ruby, just for fun so far (no current projects require Ruby). I like it fine, but I also like PHP. I know it’s a pointless, and often-asked question to “compare Ruby to PHP.” That’s not what I’m asking. Rather, I’d be curious as to examples of when one language makes sense over the other. It’s all about having the right tool for the right job, after all, and I’m trying to get a better sense of what the “right job” for Ruby is.
I’m not as interested in points such as the size of the community or ease of deployment – I imagine as Ruby grows in popularity this will be less of an issue vs PHP. Rather, in the world of getting things done online, what kinds of jobs does Ruby naturally work as a more appropriate solution than PHP? Also, just to be clear, assume PHP5 written in a object-oriented manner 🙂
Thanks.
I found this slide pretty interesting about Ruby and Ruby on Rails, I suggest you check it out
http://www.slideshare.net/dosire/when-to-use-ruby-on-rails-1308900
it even said Ruby is 2x slower than PHP
Honestly though, it is really good that you are liking both PHP and Ruby, Nice Assets to have.