
Seems interesting. PHP is open-source having a great community. Then what is the difference between PHP and RoR ?
There are couple of differences between PHP and ROR although both are open-source used widely.
- Firstly we need to understand that PHP is a scripting language where as RoR is a framework based on Ruby. As I had mentioned earlier RoR uses MVC structure where as for PHP you need to explicitly design the architecture to follow MVC structure.
- Also ROR is much more object oriented than PHP.
- Again RoR includes a web-server while developing (the default web-server is WEBrick ) though you can use different web-servers like Mongrel , Apache, nginx , lighttpd , etc . But for PHP you need to install the web-server separately.
- In comparison to PHP, RoR is remarkable for its use of javascript libraries for Ajax.
- RoR coding is very simple because of its easy syntax and simple implementation since the framework is based on Ruby and it inherits the property of Ruby.
- RoR is a rapid application development tool. Developing a website using PHP is fast and it is easy to learn PHP. But a new PHP developer can't develop an application in PHP in faster and secure manner. But in case of Ror a new RoR developer can do the same . This is because of RoR structure, coding style and features .
In real sense RoR is a truly rapid application development tool.
Good write up Asish.
ReplyDeleteAsish, Nice explanation on RoR.
ReplyDeleteNice information about RoR.
ReplyDeleteAll required information under one roof.
ReplyDeletevery nicely documented... :)
Between, I had some issues while starting rails server,
fixed it by
sudo apt-get install nodejs
thanks