What is the difference between php and ruby on rails | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

What is the difference between php and ruby on rails

difference between html and ruby

26th Oct 2016, 12:43 PM
David Kariuki
David Kariuki - avatar
3 Answers
+ 12
Here’s a general overview of both languages: Popular sites using PHP: Yahoo Wikipedia Flickr Facebook Popular sites using Ruby: Basecamp Twitter Scribd Github * Syntax: PHP has a lot of similarities with the Java syntax, with lots of brackets "{}", and plenty other symbols. Some developers claim that C programmers find it easy to learn PHP syntax, too. Ruby developers claim that Ruby code is much easier to write and read. It reduces the use of symbols and has a lot of human-readable built-in methods like "String".includes? "ng", instead of substr("String", "ng"). * Popularity/Community: PHP has been in the spotlight for far longer than Ruby (which was created on 1995, but its boom was in 2005), so it’s a language with a bigger community than Ruby, and far more documentation and tutorials in many languages. It’s also the most used web programming language at the moment. Ruby popularity grew when Ruby on Rails came into the spotlight. It revealed a very friendly language, with a framework that easily incorporated agile web development. Since then the Ruby community has been growing and its use on very popular sites gives it greater credibility, but it is still a tiny community compared to PHP. *Job postings: As seen, given a search on Craigslist for job postings, PHP jobs exceed Ruby jobs by 8 or 9 times. The same happens on Monster.com, with PHP developers in demand far more than Ruby developers. As of December 2011, there are 18,950 "PHP Developers", and 720 "Ruby developers" (according to search statistics). * Performance It is popular belief that PHP has better performance than Ruby, but you can find benchmarks that go either way: * Other It is said that PHP is better for beginners than Ruby on Rails. I hope this helps.
26th Oct 2016, 12:45 PM
David Kariuki
David Kariuki - avatar
+ 1
😫
22nd Aug 2018, 6:01 AM
Merja Shourov
Merja Shourov - avatar
22nd Aug 2018, 12:39 PM
Максим Федичак
Максим Федичак - avatar