PHP v Ruby v Python - The Language Crunch
Written by Mike James   
Saturday, 11 August 2012

Language wars - it defines who we are. But at the moment there are programmers who are thinking hard about the language they use. Should my next one be one of these?

Python and Ruby are probably in the same group, but PHP is something different. Both Python and Ruby are languages of choice in the sense you have to make a positive choice to use them. PHP, on the other hand, is often thrust upon the poor programmer. After all, it is integral to LAMP - Linux, Apache, MySQL, PHP, and many of us just have to work with the delivery system that the hosting service provides as standard, and that means PHP. Of course, you can set up an alternative language, but that involves making a choice.

PHP is often thrust upon you.

 

phprubypython2

 

There is also a very real difference in where PHP and the other two started from. PHP is a language that was put together to solve a particular problem - creating web pages. The other two, Ruby and Python, are "designer" languages. The people who started them were passionate about languages and wanted to design the best language ever invented. Of course they were doomed to failure as there is no such thing and the goal is unattainable.

But the passion is there and it shows in their developer communities and the constant striving for a better version of their pet language. When PHP attempted to try to reinvent itself as PHP 6 developers rebelled and stuck with version 5.3.  Python and Ruby programmers, on the other hand, seem to delight in the new.

So watch the video - it's fast and loud so make sure you have your mouse over the pause button:

 

 

You could say that all that really matters is what the job prospects are, but we in interesting times. The rock solid foundations of Java and C# are no longer as solid as they used to be. Which language should you invest your time in with a reasonable prospect of being able to continue using it into the future? Java is both threatened and invigorated by being owned by Oracle. The .NET languages of Windows that once seemed so promising are now threatened by Microsoft's indifference and its tendency to "re-imagine" everything.

 

phprubypython1

 

The choices are no longer obvious, especially if you are creating apps for the desktop and particularly for the Windows desktop. Of course, you could say that this is an ecosystem that is about to become niche as the big picture moves to mobile. For the moment, however, it is still a rich prospect and the mobile environment isn't any clearer in terms of which language you should adopt or learn - Java, JavaScript, C++ or Objective C? Notice that PHP, Python and Ruby don't appear in this particular list.

phprubypython2

 

As I overheard someone saying the other day, "Only the Web is truly open". Perhaps this makes the choice of your next language JavaScript.


Related Articles

The Top Languages of 2011

Programming Languages - A Map

Why your next language better be C++

JavaScript Inherits the Earth

 

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

Banner


A Tee Is Not Just For Xmas - Top Tees
20/12/2024

Programmer gifts - easy idea, difficult implementation.  Here's our pick of tee-shirts for giving, buying or just wearing at any time of the year.



Kafka 3.9 Adds Dynamic KRaft Quorums
16/12/2024

Kafka 3.9 has been released. The team says this is a major release and the final in the 3.x line. It This will also be the final major release to feature the deprecated Apache ZooKeeper mode. Kafka is [ ... ]


More News

 

Last Updated ( Sunday, 14 June 2020 )