r/ruby • u/Intelligent_Role_824 • Aug 10 '26
Question Beginner starting from scratch: Is the Ruby ecosystem worth learning over Python?
Hey everyone!
I have zero programming experience and I’m looking to pick up coding as a hobby. My main goal right now is to understand how the web works under the hood, specifically building and consuming APIs (like fetching data from public APIs and working with JSON).
I’ve been reading a lot about Ruby (and Rails) recently, and its syntax looks very clean and human-readable. But I have a few honest questions before I dive in:
Is Ruby beginner-friendly for total newbies?
Can I actually grasp core concepts like HTTP requests, REST APIs, and database connections using Ruby without getting overwhelmed?
How is the Ruby ecosystem doing?
Is it still active and well-maintained for beginners? Or is it mostly supported by legacy systems?
Ruby vs. Python for a hobbyist:
Is Python just the objectively better choice because of its massive popularity, or does Ruby offer a smoother/more enjoyable learning experience for web-related stuff?
My long-term goal is just to enjoy building cool side projects, but I want a solid, fun starting point.
Would love to hear your thoughts, especially from anyone who started learning with Ruby recently! Thanks!
Edit: I'm not looking to get a job or change careers with this! Programming is purely a hobby for me. I just want to build cool personal projects in my free time and have fun along the way.
34
u/Randy_Watson Aug 10 '26
It depends. I love Ruby. It's the first language I learned and I wish I still worked in it. If it's just to build side projects, it's great. If you're trying to get a job, I would go with Python. There's more out there. That being said, I didn't find python hard after learning Ruby and I use it more now because of what I'm doing. I think you can't go wrong with either. I think the one thing that can get frustrating with python when starting out is indentation as termination instead of actual termination clauses.
7
u/TommyTheTiger Aug 10 '26
IMO ruby has some nice syntactic sugar for working web response data structures that sometimes have nested JSON data. The default Net::HTTP library for ruby is probably not the most intuitive, but there are copious gems that make is a bit easier to interface with. And I think that Ruby's Enumerable module is a great way to dip your feet into functional style coding, chaining map/filter/reduce, you can have lazy iteration which is an interesting thing to know about with these languages. Python by comparison gives you list comprehensions and itertools, kind of worse lambda/block syntax for passing around functions as data, which a core component of functional programming that ruby embraces with blocks being so core to its identity.
> Can I actually grasp core concepts like HTTP requests, REST APIs, and database connections using Ruby without getting overwhelmed?
Yeah, I think these things you listed are some of the most ideal use cases for Ruby. If you were trying to do some scientific computing, computer vision modeling, then python libraries are going to drastically outshine Ruby. But anyway learning either well will make learning the other basically trivial.
BTW I would probably go with a web framework that has less up front baggage than rails. Yeah rails is sort of batteries included, but the "convention over configuration" standard that rails embraces, well it's good if you're a rails coder and you go to any random rails repo and you'll be able to figure out what it does, but it won't necessarily be the most intuitive intro to web programming, routing etc, since a lot of that happens under the hood by "convention" in rails.
I'd recommend giving Roda/Sequel a try to be honest, I think that's a quite nicely written library.
48
u/let_me_in_QQ Aug 10 '26
Ruby is better than Python by miles IMHO. But somehow unfortunately Python got the upper hand.
Take the blue pill and live happily with Python.
Take the red pill and you'll find Ruby transcendent but you can never go back to Python.
6
u/Amadan Aug 10 '26
The difference between Ruby and Python is minuscule, just one letter. Python is job. Ruby is joy.
3
u/IAmScience Aug 10 '26
I prefer Ruby to Python. If I could always write everything in Ruby, I would.
I think it’s a great language to start with as I think the way it structures syntax is quite sensible and easy to wrap one’s head around. Though, Python has similar benefits. I suppose some of the choice depends on what you intend to do. If you’re looking for a nice sensible smooth learning experience for webapp related development, I think Ruby and Rails are a particularly nice spot to land. That stack is my go to for those kinds of projects. (Python gets my data analysis and stats stuff. Other languages when they’re called for or unavoidable).
Certainly it won’t hold you back, and it’s a fun language to learn and play with.
3
u/nateberkopec Puma maintainer Aug 10 '26
There are two things I would think about:
I can't answer #1 for you, but re #2, personally I think Ruby has the best Web-focused package ecosystem out of any language.
3
u/dvarrui Aug 10 '26
Algo popular no significa que sea lo bueno.
3
u/taw Aug 10 '26
Just a tiny warning. Somehow
net/httpis probably the worst part of Ruby stdlib, and everyone uses a different replacement instead.That's a downside of all the languages being 30 years old and having to live with questionable choices from early years.
3
u/full_drama_llama Aug 11 '26
You're asking this in a Ruby subreddit. Of course everyone will say Ruby is better. There's not value in that exercise TBH. Try asking on /r/learnprogramming or something for more balanced (maybe) answers.
2
u/l_tonz Aug 10 '26
with a smaller community it will be easier to get
your name out there.. and will probably look good on your resume when getting hired
2
u/minusplusminusplus Aug 10 '26
I have gotten jobs primarily because I had ruby experience. YMMV.
2
u/AshTeriyaki Aug 10 '26
I’ve started referring to Ruby as “better Python”. I wrote primarily Python for years and picked up Ruby maybe 2/3 years ago and never looked back. It’s my favourite language and despite not being on the same scale, the gem ecosystem is amazing and the Ruby stdlib (the tools that come with the language) is one of the best around.
2
u/Kerb3r0s Aug 10 '26
They occupy the same basic space but Ruby might be a touch easier to read in some cases. However, because Python ended up the more popular of the two, you will find more SDKs, tools, and nifty integrations in the Python universe.
2
u/_stemps_ Aug 11 '26
Having spent about 15 years in Ruby and about 3 years in Python I would say they are both great languages to learn. So you won’t really go wrong either way.
Python has a strong advantage in ML, data processing, computer vision, etc… but is also very good with web stuff. It definitely has the momentum currently has supports broader use cases.
Ruby’s main strengths are the very frictionless language. I still find Ruby the most effortless code to read and write without taxing your brain doing “translations”. The ecosystem is strong and the community is great (DHH excluded) and very aligned on the same ideas of what makes good practices.
To summarize: for web stuff only it’s a tie. If you want to do data /ML stuff as well, Python is a clear winner
1
u/ngw_nofeed Aug 10 '26
I do both very happily. I believe both are very similar and have a very good ecosystem. For what you want to learn Ruby is fine, Rails is obviously one of the best parts, but it also has a very good web ecosystem, I would look at sinatra for example, I bet you’ll learn HTTP in no time.
1
u/snowyleach Aug 11 '26
Ruby is much more worth it if you're not trying to join the industry . Even if you want to make just a little extra cash from a side hustle like this programming GitHub marketplace is always there so the easier you're work is the funner programming will be.
1
u/Neuro_Skeptic Aug 11 '26
No, to be perfectly honest, it's not.
1
u/vim_spray Aug 12 '26
If you go with Ruby, I recommend Sinatra over Rails, it’ll simpler to use, ave you’ll also understand what’s going on under the hood a bit better; Rails has quite a bit of magic.
If you go with Python, the similar library to use is Flask.
1
u/cavalryjim Aug 13 '26
I loved Ruby, it truly is a beautiful language and if it were 2012, or earlier, I'd recommend it in a heartbeat. But today Python wins on sheer ecosystem size, it dominates data science/ML, it's usually the first language taught in CS programs, and its community dwarfs Ruby's at this point. Great language, just not the best bet for someone starting out now.
1
u/Acrobatic_Umpire_385 Aug 10 '26
Rails is IMO the best developer experience for web development out of all languages and frameworks. It has an active community and large web open source ecosystem.
Employment-wise it has seen better days.
1
u/txdsl Aug 10 '26
You can’t go wrong with either language if you want to learn and have fun. They each have their niche (for lack of a better word) but there is also a lot of overlap.
Ruby and rails, imo, is the best devex you can get when building cool side projects that are web based. There are tons of guides, doesn’t require additional infrastructure, and the abstractions are intuitive. And Ruby is such an elegant language.
You may want to use python if you are more interested in ml/ai/data stuff because the ecosystem there is huge. Python is just as capable for building web apps as Ruby is, and has its share of frameworks.
Avoid frameworks like Rails at first because they abstract away a lot of the underlying plumbing. Build a basic request/response pipeline (forego rack if you really want to go deep). Then start layering on frameworks to experience modern web development in all its glory.
Same goes if you want to learn ml. Learn the fundamentals before reaching for libraries like scikit-learn.
1
u/pizzababa21 Aug 11 '26
Python is just objectively a better option. Ruby is tidy and good for simple projects pre AI but python is a much richer ecosystem with a similar style to Ruby.
0
u/ylluminate Aug 11 '26
Ruby is a far cleaner and more (human) productive ecosystem. Python is a real mess. Having worked in both extensively I always do everything possible to avoid Python.