Valerie Fahs-Thatc...
Posted Mar 16, 2010 10:20 AM
NerdSearch
San Mateo, CA
Post #: 5
Send an Email Post a Greeting
Are PHP and Ruby developers ever the same animal?
Most of my clients are developing massive scale eCommerce or communication networks and only want PHP.
Where does Ruby come in - for lighter weight, rapid web development?
Does a PHP developer have deeper - or just different - coding ability?

Do you have a good read to recommend on the subject?

Thanks so much,
Val
Geo
Posted Mar 16, 2010 12:39 PM
user 10534703
San Francisco, CA
Post #: 4
Send an Email Post a Greeting
Val,
There are actually 3 points here.


  • Ruby
  • Rails
  • PHP


The issue that happens with rails is that most people introduced to Ruby have been introduced via Rails.
Rails is a framework that utilizes Ruby as language of implementation.

Now Ruby vs PHP. Not that one is better than the other, but PHP has a much more extensive library of extensions and modules, and it's object oriented model has been implemented over time. Ruby on the other hand has been designed from the ground up as an object oriented language, and definitely has a very modern well thought out syntax. Ruby's community and as well as libraries are growing, but it is no where near the number of PHP's. As a language Ruby is slower than PHP, but this is a bottleneck that can be worked around. The real issue is with Rails and its tightly coupled architecture.

Rails, like I said is a framework - a contract on how an applications architecture's base will be implemented. 9 times out of 10 Rubiest think framework first ( Rails ) vs Language first; THEY WERE INTRODUCED TO RUBY VIA RAILS. 9.9 times out of 10 perl,php, and python people think language first. The success of Rails has brought about an implementation of it MVC structure to perl, php, and python which has enabled perl,php, and python use to ADOPT BEST PRACTICES via Frameworks like symfony,zend,cakephp, django, joomla framework ( not the cms ). Now because Rails is such a "turn keyish" type of framework, issues start to occur when sites start to grow, and what happens is that because so much was done for you at the framework level, meaning "Oh, look in Rails you don't have to worry about X, it is handled automatically", that when issues start to occur you are not familiar thoroughly with the architecture ( internals of RAILS) that is becomes extra work to handle high loads. Some, bottle necks in Rails are, ( RAILS FANBOYS, notice how I said SOME):


  • Application startup and bootstrapping
  • Active record and database implementation layer
  • Caching without having the application bootstrap


These issues are also in CakePHP which is the closest implementation of Rails in PHP, they even copied the mistakes! Symfony, Zend, and Joomla Framework are much more loosely coupled, with Zend coming out as the loosest. To deal with very high traffic, TWITTER had to start scrapping away RAILS in certain parts and start developing with scala and even c++. Many Rails fanboys started crying when this happened.

In all, there are very competent Ruby programmers out there that aren't tied to Rails, but nowhere near the amount of PHP.

Geo
Lucian
Posted Mar 17, 2010 2:25 AM
user 6199713
San Francisco, CA
Post #: 2
Send an Email Post a Greeting
Two interpreted languages (PHP vs. Ruby -- Rails is just another MVC framework) to create applications ... whether web or not. I think it's a moot point. You can write a post with all possible combinations of languages used to do the same thing. PHP vs. Perl vs. Java vs. C++ ... all can achieve the same result, it's just choosing the right tool for the job. Yes, there are sites developed almost completely in C/C++ like okcupid.com ...

Just cause clients want something doesn't make it better or worse. Point in case Java ... oh boy now I've let the cat out of the bag ... come back kitty. Damn he always runs away. ;-)
Sean A Corfield
Posted Mar 18, 2010 10:35 AM
seancorfield
Castro Valley, CA
Post #: 3
Send an Email Post a Greeting
Hi Val! Good to see you on this list!

Are PHP and Ruby developers ever the same animal?

Talking to some of my colleagues who work across a lot of languages, I get the impression the Ruby/Rails community has more comp sci background on average than the PHP community.

Most of my clients are developing massive scale eCommerce or communication networks and only want PHP.

Interesting. I'm still seeing a lot of Java interest in that area - but that may just be because my resumé leans that way. Java or Groovy/Grails. And some Ruby/Rails. I don't have PHP on my resumé (despite having built PHP sites on and off for about a decade - I started with PHP3 but quickly moved to PHP4) so that's probably why recruiters don't contact me about PHP :)

Where does Ruby come in - for lighter weight, rapid web development?

Certainly for rapid web development but I don't see it as only suitable for smaller sites. Despite the age of Ruby (almost as old as PHP), it's only been with the arrival of Rails (about five years ago) that Ruby/Rails has moved from a fringe general-purpose programming language to a (fairly) popular web programming system. That means you'll see a lot of buzz about it but in reality, it doesn't have huge market share.

I'd say Ruby/Rails is a strong competitor to PHP, particularly in terms of speed of development and, with JRuby running on the Java stack, access to a lot of enterprise-grade libraries and projects. I personally prefer Groovy/Grails which is more recent and closer to Java in syntax (as well as being built on enterprise standard technology like Spring and Hibernate) while still retaining the speed of development of Ruby/Rails.

Does a PHP developer have deeper - or just different - coding ability?

Given that PHP has only sprouted OO features in an evolutionary manner (and it was only with PHP5, in mid-2004, that it became in any way mainstream) whereas Ruby was designed from day one as an OO language, I suspect that the two communities have very different approaches to problem-solving in general.

I'd draw a parallel to the CFML community. Allaire released Cold Fusion 1.0 a month after PHP1 appeared and CFML didn't get useful OO features until it was rewritten from its early C++ codebase to Java (CFMX 6.0, May 2002 - although CFMX 6.1, July 2003, was the first release where true OO programming was possible). Even today, after three more major releases - and with two free open source CFML engines available as well - CF developers are still only gradually adopting OO practices, unless they've come in from a C++ / C# / Java background and already programmed that way.

Do you have a good read to recommend on the subject?

Unfortunately, no. I tend to have a lot of reference books but my learning style is a lot more hands-on and learning-on-the-job. That's pretty much how I've picked up every language I've used over my 25+ years in IT.

Definitely an interesting discussion!
Powered by mvnForum

Our Sponsors

GameSpot.com

GameSpot.com & CBSi provides the facilities our group uses every month.

O'Reilly User Group Program

The O'Reilly User Group Program provides the great books we get monthly.

Other nearby
Meetups
Why these groups?
x

The Meetup Groups shown here are topically similar to The San Francisco PHP Meetup Group.

Groups are more likely to be displayed here if they:

  • have a Meetup scheduled
  • have a high rating
  • have a group photo
  • are "public" and not "private"
  • have shown they are likely to stick around (older than 30 days)

Log in

  • Not registered with us yet?
or

Log in to Meetup with your Facebook account.

Sign up

or

Join this Meetup Group even quicker with your Facebook account.

By clicking the "Sign up using Facebook" or "Sign up" buttons above, you agree to Meetup's Terms of Service