PHP vs. Ruby on Rails
Tuesday, February 1, 2011 6:28Is it really worth my while to compare Ruby on Rails(RoR) and php? They are completely different technologies. PHP is a glorified scripting language. Ruby on Rails is a frame work for the Ruby language. The question should be Ruby vs PHP or RoR Vs CakePhP/ZEND/Yii.
PHP and Ruby on Rails both have their very dedicated followers. It really depends on what sort of development you would like to do. Having experience with both, anyone can say go with what you are more familiar with, and with what your developers are capable of. It is much easier to find PHP programmers than Ruby/Rails developers. Deployment and server configuration are easy with Php.
Many argue that RoR performs better, but then again Facebook and google uses PHP, so it can’t be that great. My preference lays in favour of PHP, because I prefer the C style syntax, although Ruby has many great advantages in its code (namely many shortcuts for iterations).
It is difficult to compare both but we can conclude “While Ruby on Rails has some great features; the market has already declared the winner to be PHP.”


Gleb Esman says:
April 11th, 2011 at 9:18 am
Python and PHP [and Ruby] are server side scripting languages.
Google does not use PHP that much (or at all?), it uses Python. Python is very suitable for math tasks and implementation of all kind of creative calculations and algorithms. Google is a biggest math company.
PHP was not designed to be object oriented at all, classes were “squeezed in” later on. Python is more object oriented. Ruby is 100% object oriented. Even numbers are objects: 5.times { puts “Ruby is cool. Got it?” }
In layman terms PHP is your “C” language with ‘$’ added in front of variables.
Hence PHP is highly prone to “spagetti” code effect where every developer in the process pushes his own style, ideas, functions, classes and glitches. Complex web applications on PHP tends to quickly get out of control (ex: OsCommerce) unless some framework is used and strict rules are artificially enforced. PHP classes are overused and underpowered. I.e. WordPress plugin developers often “invent” new classes just for the purpose to avoid duplicate function conflicts. This is nonsense.
Ruby on Rails is immune from most of these deficiencies.
Half of well-funded silicon valley startups using RoR to launch new creative web applications just because RoR works so well for WEB and have the shortest time and path for deployment among any existing web technologies today.
Gleb