Ruby delivers on the promise of being "optimized for programmer happiness." But I think that in order to experience that you have to become fairly immersed. In fact, some of the best parts seem outright offensive at first (question marks in method names?!). No language is perfect. But once you get past the idiosyncrasies, I honestly do think Ruby feels better. That's pretty esoteric, so I'll try to call out some specifics as well. I agree with most of what's already been said, but I'll try to add a few things. In order of most to least significance (for me): The standard library, especially with regard to collection methods. Want to slice/filter/sort/chunk an array/hash in some weird way? Ruby's standard library almost certainly supports it. So many amazing things are built-in across the board. Not relying on indentation for scoping. It's one of my biggest beefs with Python. Yes, of course, code should be indented properly. But goodness....let my linter enforce that, not the interpreter. I don't love ruby's do/end keywords (I prefer curly-braces), but at least having a visual cue for end-block is a vast improvement over python. A more consistent interface. Everything is an object, and you invoke methods on those objects. I think [].size just makes more intuitive sense than len([]). Great readability boosts from things like question-marks or exclamation-points in method names (admittedly that felt gross and wrong at first), trailing if-statements, unless-conditionals, invoking methods without parens (though I only sanction this if not passing args). A more helpful, less snobby community. 100% just my personal experience, maybe I've just had bad luck with pythonistas. No __init__.py nonsense. Maybe that's fixed/improved in python3? But I hate it. In fact, I hate any use of dunders...littering the code with unreadable symbols. Answer from human_tendencies on reddit.com
๐ŸŒ
Reddit
reddit.com โ€บ r/ruby โ€บ benefits of moving from python to ruby?
r/ruby on Reddit: Benefits of moving from Python to Ruby?
May 31, 2022 -

Question from someone who invested much time in Python. What benefits Ruby has to convince to move? Instead continue with Python?

Top answer
1 of 13
34

When it comes to scripting languages, the objective differences are very nuanced. Largely, it depends on what you want to do. Python, for example, is extremely popular in the data sciences. A complementary example for Ruby would be rapid application development with Ruby on Rails, a web framework that allows you to build web applications very quickly. Another example would be building an API using Ruby's Sinatra library. Python also has web frameworks, so it's not as if Ruby has an exclusive claim to this benefit, but many developers find tools like Ruby on Rails and Sinatra very satisfying and beneficial to work with.

My recommendation would be to give Ruby an honest shot. Don't make the mistake of simply trying to write Python code using Ruby. Really dig in to what makes Ruby, Ruby. If you enjoy it, then you've added another language to your tool belt. If you don't, you might walk away with some ideas about development that you can apply to Python.

2 of 13
27

Ruby delivers on the promise of being "optimized for programmer happiness." But I think that in order to experience that you have to become fairly immersed. In fact, some of the best parts seem outright offensive at first (question marks in method names?!). No language is perfect. But once you get past the idiosyncrasies, I honestly do think Ruby feels better. That's pretty esoteric, so I'll try to call out some specifics as well.

I agree with most of what's already been said, but I'll try to add a few things. In order of most to least significance (for me):

The standard library, especially with regard to collection methods. Want to slice/filter/sort/chunk an array/hash in some weird way? Ruby's standard library almost certainly supports it. So many amazing things are built-in across the board.

Not relying on indentation for scoping. It's one of my biggest beefs with Python. Yes, of course, code should be indented properly. But goodness....let my linter enforce that, not the interpreter. I don't love ruby's do/end keywords (I prefer curly-braces), but at least having a visual cue for end-block is a vast improvement over python.

A more consistent interface. Everything is an object, and you invoke methods on those objects. I think [].size just makes more intuitive sense than len([]).

Great readability boosts from things like question-marks or exclamation-points in method names (admittedly that felt gross and wrong at first), trailing if-statements, unless-conditionals, invoking methods without parens (though I only sanction this if not passing args).

A more helpful, less snobby community. 100% just my personal experience, maybe I've just had bad luck with pythonistas.

No __init__.py nonsense. Maybe that's fixed/improved in python3? But I hate it. In fact, I hate any use of dunders...littering the code with unreadable symbols.

๐ŸŒ
Reddit
reddit.com โ€บ r/programming โ€บ ruby vs python for web development
r/programming on Reddit: Ruby vs Python for web development
March 5, 2020 - Ruby and Python work to achieve the same goals in web development, but take different paths in the way. Ruby is designed to be infinitely flexible and empowering for programmers. Pythons primary goal is to make everything visible to the programmer.
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ Python โ€บ comments โ€บ jayqfe โ€บ python_vs_ruby_is_python_better_for_web
r/Python - Python Vs Ruby - Is Python Better For web development?
October 14, 2020 -

Ruby and Python are the two most popular programming languages. Both languages possess different philosophies, came around the mid-90s to address various needs in the programming community. Theyโ€™re both flexible, object-oriented languages, dynamic, and have a lot of different functionalities, required to empower web development.

Both frameworks provide views, controllers, and models to power your web application and an API that offers endpoints to address your needs.

When you are planning your new web development project this 2020, choose a framework that can provide every tool you need. And both Ruby and Python seem to be the perfect answer to these specific web development needs.

In Conclusion

After doing this Ruby Vs Python comparison, one thing is clear that both are equally capable, which language is better for your project, that is the main deciding factor ultimately. In fact, many of the changes and new features in Python are first tested in Ruby.

If you are looking at only building web applications, then consider Ruby on Rails. On the other hand, if you are interested in building web applications but would like to also learn a language thatโ€™s widely applicable and proficient with handling data analytics than Python is the best bet.

Also, when looking to add more features to your web application, like machine learning or other areas, Python is a perfect choice as it has libraries that support other fields.

Ruby focuses on giving developers the freedom to do whatever they want and staying out of their way, whereas Python developers are somewhat conservative and value stability over change. (developments and new features are slowly added)

Both Ruby and Python are fast and simple programming languages. For projects that include a lot of data computing, processing, and analytics, Python is probably the best option. However, Ruby suits projects that are traffic-heavy and involves rapid prototyping.

For A Better overview Check This - https://codersera.com/blog/ruby-vs-python-which-is-better-for-web-development/

๐ŸŒ
Reddit
reddit.com โ€บ r/ruby โ€บ ruby vs python
r/ruby on Reddit: Ruby VS Python
July 16, 2020 -

More than a versus (it's more striking) I would really like to know what things they have in common and how they differ, what their main advantages are compared to the other and of course their opinion of them. One point to take into account is because they believe that python is more used in AI and Machine learning developments.

Top answer
1 of 5
35
I think Python has a bigger community, and that is it's single largest advantage. It has more deployments and more packages. In think ruby has better syntax, better readability, and a more sensible design overall. This makes it easier for greater involvement from the community, there are something like 2x note python devs but not nearly 2x the packages. I also think the ruby community is better at communicating best practices. Consider that the top Ruby packages are testing tools and the top python of are a mix of docker and db stuff. https://rubygems.org/stats https://pypi.org/ I also find Ruby projects to have better engineering. This might just be bias but having tried similar things in both languages maintainability, support, and things working years later (except web API bindings) are nearly magical. The ruby community always seems to try to be doing better, but I guess that is most communities, but I feel like python users just want to be done and damn the tech debt, full speed ahead. EDIT 2 years later - spelling
2 of 5
11
Python was designed with a thing in mind: there is one best way to do something and that's all. Ruby lets you express yourself. There is always different ways to do something in Ruby (or at least I feel like it). It's up to you to decide if you see this as good or bad. Python has a really larger community. Mainly in sciences and data analysis. Probably because scientists that are not programmers found the language well suited because of it's ease of use. And there's a whole lot of scientific libraries. People bring people and so on... On a more personal side, I don't really like python because I don't find it... elegant. I use Ruby for personal projects and scripts as I know how to get things done with this little fella. Disclaimer though: I'm still a college student and don't have that much experience.
๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ learnprogramming โ€บ comments โ€บ 2hbfld โ€บ web_application_startup_python_or_ruby
r/learnprogramming - Web application startup: python or ruby?
September 24, 2014 -

We are looking to start developing our new web app and as our master knowledge falls under the PHP umbrella and a bit of python/django, I am deeply puzzled on what language to choose and start learning in parallel.

As far as I have seen, both languages are great and have their own pros and cons. I am mostly into python but I've seen the 7 out of 10 startups developing in ruby (RoR) and I wonder.. why?

If the application succeed, then I want to look forward and find out what the best will be for the future also. What's your opinion ? We are talking about a social application, with user profiles and all the features a modern application has (tags, likes, follows, messaging, notification, error handling, galleries etc.) which will expand to mobile.

๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ webdev โ€บ comments โ€บ 1wvks8 โ€บ php_vs_ruby_vs_python
r/webdev - PHP vs Ruby vs Python
February 3, 2014 -

I have been working with PHP for the past few months at my job, but ruby on rails and django seem to be gaining popularity.

The comments in a previous thread on programming exploded with opinions on each language, but they didn't really list any pros and cons.

I got a bit of feedback on a previous post, but a bit more would be greatly appreciated. Could I give a bit more detail on why ruby and python may be better languages for web development?

Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ ruby vs python
r/Python on Reddit: Ruby vs Python
August 12, 2013 - Python). ... If you ask me, both programming languages are pretty much equivalent in every significant way. It basically comes down to library support for the thing you want to do.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ [web development] ruby vs python vs php
r/learnprogramming on Reddit: [Web Development] Ruby vs Python vs PHP
March 8, 2015 -

I've started my journey into web development and have been learning the standard front end stuff (HTML/CSS/JS). I want to explore the back end through a server side language. My problem is after a lot of research, I can't seem to find anyone talking about or explaining the differences between the languages I've listed. Everyone says the language doesn't matter but there has to be differences. There has to be a reason Facebook chose PHP and Twitter chose Ruby.

Top answer
1 of 5
13

There has to be a reason Facebook chose PHP and Twitter chose Ruby

You should not neglect the popular reason - developers who started these things simply preferred specific languages because they used them recently and feel more confident. When you are doing some startup, there are two crucial points:

  • choose the more suitable language;

  • choose the language which you know better (because language which you do not know will suit poorly because you surely will kick around many bugs and wrong solutions at beginning).

While these languages are different enough in its syntax and even "paradigm", technically it is almost the same, moreover that nowadays popular approach is to build sites as Rest API + nice javascript client (written in Angular etc.) - for such cases it is even less important which language you will choose - add Node.JS, C# and Java here.

Everyone says the language doesn't matter but there has to be differences.

Surely there are difference. Python is bit more organized compared to PHP, but has two still not merged versions. PHP retains OOP structure closely reminding one of Java and C#. Ruby is "more functional" than both. Node.Js is chosen by those who want to "do all in one language", but sacrificing OOP. It is mostly the matter of personal preferences. Technically all those languages are scripting ones and their performance and features are comparable.

More difference is made when you use some compiled language, like Java / C# / Scala etc. Development with them could seem bit more robust (but more slow and somewhat more expensive). They are often chosen by larger teams for products which are going to be developed and supported during long period of time. Roughly speaking they make you write slower, but debug less (especially others' code). The same was with Facebook's "PHP" - you know they wrote special translator which converts PHP sources into C++ language and then compiles them (if I am not mistaken).

2 of 5
7

I can't comment much on ruby as I have not pushed myself to work on it. Currently I have two ongoing projects, one in PHP and one in python. For python I am specifically using the Django framework. In my opinion Django has been hard to learn and get into but once it clicked I was shocked at the power of it and the endless opportunities. With PHP it has been the opposite, picked it up quite easily but I either run into limitations or get frustrated with errors. I have found the PHP documentation to not be so great.

If you want to get going right now, go with PHP. If you have experience with python or ruby give Django or ruby on rails a shot. You won't go wrong with any of the options and will find the prefect fit as you learn more.

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ what should i learn? python or ruby?
r/learnprogramming on Reddit: What should I learn? Python or Ruby?
October 24, 2023 -

I started learning Python as a hobby some years ago. I really liked to learn it and I also made an app for me using PySimpleGUI to make exams reports (laryngoscopy). Then I saw Ruby and started to learn it and I like it a lot too. I made another app for exams reports using Ruby on rails. Now I want to go further, study harder to work as a programmer, but I really don't know if I go with Python or Ruby. Maybe Python should be easier to find freelances or jobs in the future? Thanks for your help

๐ŸŒ
Reddit
reddit.com โ€บ r โ€บ learnprogramming โ€บ comments โ€บ 8eem1z โ€บ so_ruby_or_python
r/learnprogramming - So -- Ruby or Python?
April 24, 2018 -

Looking to pickup my first language and i'm with the understanding that either Ruby or Python is a great choice and very similar. I am under the impression that Python is somewhat more traditional in terms of syntax, but is easy to understand, while Ruby is about as human friendly as it can be.

I also am under the impression that Ruby is becoming more and more popular for webdev while Python is more for data manipulation. (though i am not entirely sure what this means.)

Is either one better/worse to learn? Is python more similar to other programming languages? Eg. learning python would be a segue into something else while Ruby seems to be its own thing. Besides syntax, are there any clear-cut benefits to either? It appears there isn't from what i've read.

Just looking for your opinions. I am trying to get a good Udemy course while the sale is happening, just not sure which to get.

thanks

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ ruby vs python, for the back end?
r/learnprogramming on Reddit: Ruby vs python, for the back end?
April 14, 2023 -

So , I been thinking deep lately, with a sprinkle of curiousness. With all the hype behind python nowadays, I've noticed most people learn python and ruby is out of question for most juniors. Correct me if I'm wrong, but, if that's the case, Learning solely only python, wouldn't that create more competition for yourself in the job market if you're a junior competing with 90 % of other juniors who also only learned python for back end?? Would learning ruby and going that route / niche be a better option due to less people learning ruby, and an ongoing need to fill ruby positions? What do you guys think. I mean, as a developer, We are worth what the market is willing to pay at the end of the day. Less of a surplus in talented developers in a certain language drives a higher salary point due to lack of talent no? I've done research, and I don't see ruby going anywhere. Sure, anyone can learn both, but I noticed that's not the case. I rarely ever hear someone talking about learning ruby, it's always learn python. But is ruby a good choice for a junior developer trying to land their first job? By junior, I clarify as in, knowing and understanding intermediate to advanced programming concepts. Wouldnt it help you stand out a little bit better considering like I said most bootcamps and juniors learn Python?

Im attaining a software programming degree soon and am looking for a path to full stack, and just looking for some insight Any feedback / perspectives would be appreciated. Thank you guys so much for taking the time to read this post, and happy coding c: .

Top answer
1 of 2
3
Would learning ruby and going that route / niche be a better option due to less people learning ruby The flipside to that double-edged sword might be fewer overall positions hiring for Ruby, gotta go and look at the numbers yourself and so on. Caveats. Also, sometimes it just doesn't work that way with niches. For example, you might see the salaries for Elixir or Scala and think those would be nice to try to break into, but they're almost exclusively in domains like distributed systems and cluster processing, so you're looking at mostly senior jobs. Super unfriendly for juniors, even if you knew those languages deeply. Ruby is not that way from what I can tell, but this is more of a generality. Go with something utterly ubiquitous for maximum odds at junior jobs. JS, Java, C#.
2 of 2
3
If you learn ruby, then you'll really need to learn the full stack, which isn't necessarily bad. But i found that you have to be a complete expert in ruby nowadays to get any decent positions. If your going to exert that much energy you might as well just learn python. I found ruby, especially RoR to stagnate my progress so much I actually regressed. I use to be a badass with sql but after so many years of having it abstracted away I actually feel like a noob now with sql. And that's the problem. A real brutal way to put it is that it's the Fischer Price of programming. I will say though that it might be good to spend a couple weeks learning it purely for the purposes of learning object orientation since it is purely object oriented but that is not really a big deal anymore.
๐ŸŒ
Reddit
reddit.com โ€บ r/ruby โ€บ elixir vs ruby vs python vs javascript | which path to choose?
r/ruby on Reddit: Elixir vs Ruby vs Python vs Javascript | Which path to choose?
December 18, 2023 -

I am completely sure I want to dive into the world of Programming (web dev) and ultimately get a job(in programming) to continue learning to program.

I have to choose a path: to get a Programming job and ultimately support myself.

Why should and shouldn't I choose the Elixir programming path to reach my goal?

I have dabbled into Elixir Programming a bit and I have already started to like it.

I have to choose a language and it's confusing. I like Elixir but I don't know where it will lead me, the other is JS, and Python which seem to have a lot of opportunities but I never got along well with both.
And then there is Ruby, which in terms of Job Opportunities seems similar to Elixir.

My Background: I am from a Commerce Background. Know basic Python, MYSQL, and created a few blog sites using WordPress and managed their backend by myself (cloud hosting), which gave me an understanding of configuring the NGINX webserve.

๐ŸŒ
Reddit
reddit.com โ€บ r/cscareerquestions โ€บ moving into web development: learning java vs python/ruby
r/cscareerquestions on Reddit: Moving into web development: Learning Java vs Python/Ruby
March 31, 2014 -

tl;dr: Trying to decide between learning Python or Java to break into professional development. I like Python, but Java seems to be in more demand. Thoughts?

Hi all! In a nutshell, I earned a bachelor's degree in a field completely unrelated to IT in 2011, but I got into tech support shortly after and wandered into some basic infrastructure stuff. I'm really enjoying it, but I know that, long term, the only thing that's going to be able to hold my interested is development.

I know HTML/CSS, some Grails (long story), and enough PHP to make a functioning website but not an elegant one. My apps work, but most of the time I find I'm coming at tricky stuff with a sledgehammer rather than any kind of nuance. The plan right now is to build up a portfolio of projects and try to eventually get into a development jobโ€”I just don't know which language to commit to first.

  • I'm a fan of PHP and am getting a pretty good grounding in building dynamic sites with it, but I suspect it's only because it's easier to fake a solution than it is in the compiled languages. I'm under the impression that, going forward, this probably isn't a particularly attractive language to set myself apart.

  • Learning Python is at the top of my list right now, and checking out Django only encouraged me further. But...

  • Every job listing I come across is for Java. I try to peruse a few of the standard websites every once in a while to see if I can't glean any insight into what I might try, and Java seems to outnumber the other listings at least 10 to 1. I'm in a pretty big city, so it's not like there are 11 listings total, but there are noticeably more.

In any case, thanks very much for reading this far. I know learning multiple languages for different tasks is the big-picture answer, but I really want to work at understanding the ins and outs of one for starters, rather than learning enough to smash something together and not going any further.

edit: Formatting

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ python or ruby to learn?
r/learnprogramming on Reddit: Python or Ruby to learn?
May 17, 2019 -

I am new to programming and would like to learn a language good for web and app development. I have read python is a great all round language to learn to get started and Ruby is a little more challenging but more powerful in the areas I want to learn.

Which do you reccomend I put my focus in?

๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ which is better for beginning programmers: ruby or python?
r/learnprogramming on Reddit: Which is better for beginning programmers: Ruby or Python?
February 7, 2022 -

Strictly between these two. Excluding their uses (Ruby mostly used for web dev, Python mostly used for AI/ML) which is more beginner friendly for new programmers, considering their syntax and features?

Top answer
1 of 7
7
Python because: The philosophy of " there's one obvious way to do it " means that the language is very idiomatic - lots of different Python programmers would often converge on very similar solutions to the same problem. Perl is the opposite philosophy, it's closer to Perl where there are often several ways to accomplish the same thing. Python errs on the side of "readable" and avoids magic. Ruby is full of magic variables you have to memorize if you want to be able to read anyone else's Ruby code. I disagree that it's used mostly for AI/ML. That may be one of the major uses now, but Python is the world's most popular "second" programming language. Tons of projects are written primarily in one language, but Python is the language behind the scenes that does build scripts, data analysis, random web scraping, and all of the other stuff that isn't part of the user-facing app. That doesn't mean Ruby is a bad language, just that if you had to pick one, I think there are some good arguments for Python.
2 of 7
2
After coding on/off for 20 years at a basic ass level, the ONLY language I've ever went "damn I get this" has been Swift. Yes, it's limited to one ecosystem, but the fact you could write something and run in XCODE or on your device, was just awesome and as long as you can google, S/O something you can build some cool stuff and play with it instantly + upload to the AppStore. In the early days (2002 - 2007) PHP was a good way to get "up and running" pretty quickly as well. Most of the web seemed to be based on this language and it was decent, but sloppy. RE: Ruby. About 10 years ago I did Hartl's Rails tutorial where you built a Twitter clone. It was OK, but never really made me go "wow, I'm using RoR from here on out!" - and Python has been that way as well, though I do like it. I wouldn't freelance with either, though. If I'm doing it all over again and looking for both employability and all-around use for web projects, I'd go JS. In fact, that's what I'll be doing just because it's so useful.
๐ŸŒ
Reddit
reddit.com โ€บ r/ruby โ€บ ruby or python for a first language? (no experience)
r/ruby on Reddit: Ruby or Python for a first language? (no experience)
March 29, 2019 -

Hey so as the title say, I'm really interested in becoming a DigitalNomad and learning how to programme, obviously this is not a viable career untill I'm confident with the language I learn. Just wondering what you guys think would be the best language for a person like me with no experience, I hear both are the easiest languages to learn (not to say they are not hard) If you could tell me some pros and cons of each language and what sort of work i would be looking at with each language (freelance & office) thanks, and sorry if this is not the place to ask!

๐ŸŒ
Netguru
netguru.com โ€บ home page โ€บ blog โ€บ python vs ruby performance: a comprehensive comparison
Python vs Ruby Performance: A Comprehensive Comparison
February 3, 2026 - Python and Ruby are two established ... for developing websites and web apps. In the world of computer programming, Python and Ruby on Rails are popular choices for those looking to build web applications, especially when compared to other programming languages. Both technologies can be used to build and manage sites and applications of any complexity and functionality. YouTube and Google, for instance, were both built using Python. Other major platforms like Dropbox and Reddit also rely ...