PHP vs Ruby on Rails

Robert Granlund
Robert Granlund used Ask the Experts™
on
Questios: Is Ruby on Rails better than PHP? Why would you use one over the other? Is one better than the other, etc...
I'm just wondering.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016
Commented:
Yes, Ruby on Rails is better.  It's a truly object-oriented language that favors convention over configuration, making the programmer's task much simpler.  It's often used for initial mockups of web sites because it is so much faster to create when compared to PHP scripts.

You would use Ruby on Rails when you want to get something going fast.

You would use PHP if you already knew PHP and did not know Ruby on Rails, or if you were a novice to programming and the principles of computer science.  PHP has a much lower "learning curve."
I did not find that ruby or "Ruby on Rails" was a good fit for me and my framework "expectations", however "Ruby on Rails" is a very different language for use and syntax than PHP and the other server side languages. Some say that you can develop web sites "Faster" wid "Ruby on Rails", but that depends on the web site,  the database setup and the developer (you). If you have not used either before, I would recommend going with PHP, but "Ruby on Rails" does have it's advantages and very many enthusiastic users. Try it out to find if you like it, or which is mo-better for u. As all things are not the same (or even close) for all the different web developers out there.
Fixer of Problems
Most Valuable Expert 2014
Commented:
I believe that the Ruby programming language has to be installed at the OS level.  That means you can't just add it to your hosting package.  It must be supported by your host before you can use Ruby on Rails.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial