I’m a proud PHP user. I won’t lie – I’ve never really considered Ruby as a replacement for PHP (until now). I’ve started to do research and I’m starting to come to the conclusion that Ruby may be a better choice than PHP, or at least a good skill to have.
This one is pretty straight forward – would you make more coding PHP or Ruby? There are a few factors that could determine the answer to our question.
Freelance or salary job
There is a large difference between freelancing and working a salary job. First, let’s talk about freelancing.
From my point of view, it’s much easier to find freelance jobs when coding PHP. At the moment, I only see around 25 Ruby jobs on getafreelancer.com. Only around 5 actually seem to involve Ruby. For the rest, it just seems like someone threw on the extra tag because they were unsure if a coder could use Ruby. On the other hand, there’s around 1000 PHP jobs on getafreelancer.
It could be debated that although there are many PHP jobs, the competition for those jobs is much more intense, even to the point where you wouldn’t be able to get any jobs. I don’t think so. I’m pretty sure that from 1000 jobs you could land at least one.
PHP might be the winner when it comes to freelancing, but Ruby owns PHP when it comes to salary jobs. Let’s compare a few graphs from PayScale:
The average salary for a Ruby programmer seems to be around $80,000. This is just an estimate. This graph isn’t exact, as you can probably tell. Ruby hasn’t been around for 10-19 years, so no one can have 10-19 years of experience with it.
The average salary for a PHP programmer seems to be around $60,000. This is just an estimate. This graph isn’t exact, as you can probably tell. Ruby hasn’t been around for 10-19 years, so no one can have 10-19 years of experience with it.
As you can see, Ruby is the winner here. These stats may not be completely accurate, but the general trend is that Ruby jobs pay more than PHP.
Ease of use
I can’t really write about this at the moment. I haven’t used Ruby, so I can’t compare.
I’m pretty sure that I’m going to try Ruby soon. More specifically, I might go for Ruby in Rails. I hear that it’s pretty similar to CakePHP, a framework that I use with PHP.
I didn’t plan on making this a mini-series, but I guess that it’s hard to avoid that now. I’ll be comparing the languages in my next post, and then probably comparing frameworks. Stay tuned so that you don’t miss either of these posts! Thanks for reading!
What do you think?
Which do you prefer: PHP or Ruby? Do you have any experience that can prove or disprove my theory that Ruby pays more than PHP? Please leave a comment!
Like this post? You can find many more like it by subscribing to my feed.