Code Wars: Ruby vs Python vs PHP [Infographic]

Just as the Japanese, Spanish and French languages are uniquely different, programming languages also have their variations, some more popular and easier to use than others. With the recent introduction of some new ones, there is a ‘war’ of modern day languages.

What’s easier and faster to use is not always the best option.

Below we highlight three of today’s most popular programming languages. Whether you’re looking to learn PHP, grab that hot new Python class, or finally learn Ruby and conquer Rails, this infographic compares how they differentiate, who uses them, and their popularity.

Think you know who reigns? You may be surprised.



Watch a video version!

Did you decide to learn PHP, learn Python, or learn Ruby?


  1. Kris Tremblay says:

    Thank you for this article, it was very helpful :-) I’ve been toying with the idea of picking up Python lately to expand my repertoire and I think this was the nudge I needed.

  2. Well, you did get me to second think Ruby, and give it a try. I already program in the other 2 languages.

  3. Maybe I should try my hand at Python.

  4. Kevin Mark says:

    "Usability" and "Ease of Learning" is completely subjective and should be labeled as such.

  5. Victor Olex says:

    How to make a video like this?

  6. Wow I should try some python then, see how it goes.

  7. Justin Self says:

    Just want to point out that Twitter actually stopped using Ruby about a couple of years ago; now they are a JVM shop.

  8. Mukesh Agrawal says:

    PHP is the most preferred language, which most of the websites are built on today.

  9. Mark Ciccarello says:

    If any one language were "most" of the 29%, it wouldn't have been lumped in with the 29% in the first place.

  10. Would be useful if you determined what server you used for the benchmarks. The move the NGINX with PHP-FPM makes it considerably faster. Considering I can run a full featured API that can do a round trip in less than 10 ms which performs session authorization, to call processing, to data fetching, to processing and returning to client. Its all in how you build the code.

  11. Although I am surprised they missed how talked about C# is. If I had to take a guess, and this is only based off of 23 years personal programming and only 6-7years professional, but I would say, when it comes to web-backend-code, PHP and C# are the most discussed online and the easiest to find information on. I always saw RoR and Python as "platforms" for PHP, but not a "whole nother language". Seems to me, that would be like calling the .Net library or jQuery "independent" languages. All in all, I think this comparison chart is just bad. IT's like comparing meats to vegetables, where is the comparison really at?

  12. Python is Probably my preferred … until NOW! Node.JS is blowing it completely out of the water with its "live" syncability and front-back-end-same-coding-language! And who doesn't love the flexibility of JavaScript. I've coded in every language in the Western Hemisphere, and JS is hands down, the most fun and easiest to manipulate. To be able to use that one, very free, very open language on both server and client code and to have constant live updating without long-polling … I see no better options! Winsockets sux!

  13. True, in the commercial market. However, if you want in the medical or government market, you better learn C# and Sharepoint. The government (namly military) loves Sharepoint and if you can't proggy C#, then you can't help them build apps that connect to their ever precious Active Directory logins. Keep in mind, Doctors and Military personal alike, use AD logins like credit cards and expect their AD login to work "EVERYWHERE!". Even on Lionshare! That's right, they buy Mac Books and then want IT to make their AD logins work on em! It's a nightmare! I know, I've been there! On more than one occasion!

  14. Python is fun and my new 2nd choice (was first), but if you're really wanting to try something new, go to Node.JS. It's extremely young but already taking off strong. It allows you to write JS on both client and server side (no switching codes) and you can have "true live sync" without "long-polling". it's sweet!

  15. As I pointed out in an earlier comment, This chart is kind of useless. It's not really comparing different languages as much as it's comparing languages and libraries to each other, which is a lot like comparing combustion engines to car models, where is the comparison? One uses the other? Thus, it's very obvious some of the information doesn't span the whole of the net today, or even the most popular sites. Several inconsistencies I've seen that I know about from a previous job in 'sales stats' and another in 'military programming'. I wouldn't make any decisions based on this chart. It's very misinformative.

  16. Aftereffects … the only program Adobe makes still worth a shit … Dreamweaver, CRAP! Reader, Outdone by Foxit, Photoshop, just name another editor these days, it's better! Illustrator, just go get Corel Draw! … Nope, Aftereffects the only thing they have left, and if they're not careful, Final Cut Pro will make a windows version and then … there goes AfterEffects!

  17. Google used to use Python, however I think at some point last year they switched to something more like Node.JS, tho I'm not 100% sure about that. I'd have to look, and i'm lazy right now

  18. I don't know why you use Active Directory as an example as any application written in any language will be able to connect to AD, it's just an user repository

  19. Ricky Bobbito says:

    Going to give that a look. I have heard it is good but have never looked into it, how similar is it to PHP.

  20. Ἕκτωρ Γωμεζ says:

    I just prefer C++ (that is my very first programming language that I learn in the Collage), but my web host, does not support CGI thru C++, I just have Pearl, Python or PHP. Seems to be SQL and PHP is the preferred choice for web based database for dynamic web sites, the syntax is very similar to HTML, but in the electronic device called Raspberry Pi, the learning language is Python, very similar syntax to bash in the unix-like O.S. But this article is very nice, because show us strong data about the comparison between this power full languages. I am still do not know which language is better in what case.

  21. Might also want to check the Zend Framework 2 for PHP.

    As a strict OO programmer who is madly in love with C# master race, I find the Zend Framework to be one of the most powerful and flexible (more importantly: extremely maintainable, resilient, and extensible) OOP backend web frameworks I've ever had the pleasure of utilizing.

    I might have to look at this RoR flying spaghetti monster, though. I hear it's all the rage for rapid prototyping, but I wonder how OO it truly is…

    As for Python: I use it to rapidly prototype offline desktop applications before I actually build them in C# unless I want them to be interoperable, then I may stick with Python for the project.

  22. Tomasz Jaskowski says:

    McKinstry Jeremiah On what basis did you "saw RoR and Python as >platforms< for PHP"? Are you aware it is not even close? For (pretty skewed) comparison I could say that I saw "C# as a platform for Java applets".

  23. Based on the ratio of developers to job postings, it looks like Ruby may be best for employment (if Monster and LinkedIn are appropriate sources). PHP: 62 developers per job posting, Ruby: 5, Python: 17. Other factors apply, of course.

  24. If I were to do it all over again, I would've learned Python instead of PHP. PHP is best suited for generating HTML pages, whereas Python is a general purpose programming language, and can be used to build anything from web apps, daemons, crawlers, and desktop GUI programs. Another great tool is Node.JS – It is also worth mentioning, too, since Javascript is undoubtedly here to stay.

  25. So let me get this straight: People are calling Fred a Nerd and talking in non-english on a .. wait for it .. frigging website designed mostly to teach programming and nerdy stuff.

    That's like going to a bar and bashing on people who drink alcohol. Or going to a restaurant famous by its steaks, and shaming people for not being vegans. In other words: It's stupid, attention-whoring, mediocrity-glorifying behavior. That's like those people who are *proud* to be "stupid" or to "suck at maths". They usually follow that with "lol".

  26. Now now, Jugurtha – calm down. I've known these people for some time and we always pick on each other. t's all in good humor. LOL. But it's nice to know you've got my back- programmers unite! M/

  27. Darren- why should developing with Javascript be discouraged when every computing device known to man is shipped with it? It's the only scripting language that interacts with the browser without needing a a 3rd party interpreter such as Flash or Java installed first- and you know how terrible Java is. Having one language running the frontend and backend is zen. Why deny the developer community such a valuable tool?

  28. Jugurtha sounds like loads of fun. Methinks he doesn't understand Facebook.

  29. Kawika Ohumukini says:

    Great series. Thanks! I've had a lot of success with PHP and Python. Besides, there's no R in LAMP. Cheers

  30. McKinstry Jeremiah Man, I wish you could convince me over beer why I'm supposed to like JS. ;-) I've done some SocketIO in both Python (gevent) and Node, and I love the possibilities here. But no built-in concept of "module" and sub-PHP standard library discourage me every time I try to do something bigger in JS.

  31. Oziel Perez says:

    Mike Platt , I bet you this guy gets paid very well for knowing all this stuff. Maybe you should pipe down and show some respect. Be thankful guys like him are the ones building websites and apps for us and making our lives easier.

  32. Mike Platt says:

    Ha! Fred Haegele, thanks for all you do to make my life easier, sugar daddy.

  33. McKinstry Jeremiah Sounds like 23 years wasn't nearly enough. You've got some pretty radical misunderstandings here.

  34. Mark Ciccarello says:

    Slater Tyranus Well according to his Facebook page he believes in "chemtrails" too, so that says about all you need to know.

  35. I confidently know no amount of PHP.

  36. In China you need to know Chinese; in India you need Hindi & definitely English in Great Britain. So don't compare them. See what are your requirements and chose the right platform.

  37. Mike Platt And here goes a comment glorifying idiocracy. What are you doing on Udemy, then… Oh, look.. Another dumb comment from Michelle Platt.. Same last name, I wonder if there's any connection. Genius runs in the family, I suppose.

  38. Loïc Thomas says:

    php object oriented with less lines of codes than python? Would like to see the source code. No braces ( "{}" ) in python, neither for class nor methods definitions… what was your code?!

  39. Looking at the job statistics one could argue that if you are looking for a job, Ruby might be a good asset since (according to the charts) there is 62 Php developers competing for 1 job, 16 devx for 1 job in Python and only 5 Devx for 1 job in Ruby. It's another way to look at things ….

Speak Your Mind