r/ruby • u/[deleted] • Jul 01 '22
Why is no one promoting ruby?
I'm quite curious about this.
I got into the world of Ruby about a month ago (I've been a programming hobbyist since 2018, started taking programming seriously around 2020) and coding in it makes me happy. Matz achieved his goal: A language that makes developers happy.
To say I fell in love with Ruby is an understatement,
The thing I don't get is why isn't the language being promoted everywhere? This gem of a language shouldn't just slowly fade into obscurity.
I'm surprised it isn't the defacto language beginner programmers use to learn to code. What gives?
138
Upvotes
23
u/[deleted] Jul 01 '22 edited Jul 01 '22
I came into ruby a year ago and noticed a couple things. The docs were confusing, as in which docs to even use. ruby-lang.org docs or ruby-docs.org ? Eventually I found the ruby official discord (which is fantastic and can be joined here https://ruby-discord.com/ ) to figure this out and was told rubyapi.org is a modern version of ruby-doc.org and ruby-lang.org was The Official Docs.
Cool, started using rubyapi.org which was much more pleasant and get a sense of the base objects.
Then I read a few good books about ruby:
Eloquent Ruby
Polished Ruby Programming
The Well Grounded Rubyist
These helped in many ways like getting a better understanding of duck typing and how it goes hand in hand with TDD which really started making things click, and ruby’s concept of the singleton object (not to be confused with the design pattern). And also the importance of understanding the inheritance structure including
Enumerableand the behavior it endows witheach,map, andselect.It’s a different OO paradigm from other languages is another one of the key pieces of rub success and obscurity. Schools don’t tend to teach a curriculum where you think of objects passing messages, instead you write to an interface for a type. So what many perceive as a “mess” in ruby with this encouragement of duck typing is actually an encouragement to do TDD! This last point is often totally missed by people outside ruby it seems to me, and frankly any ruby code without tests is crap (imo) and you don’t get ruby if you aren’t doing it that way.
There’s likely more reasons dealing with python’s overwhelming popularity (I used to use it until finding ruby and it’s object focus which I love and can’t have in Python which was never designed to work that way) and likely other factors that I’m not smart enough to think of.
But, I do love it.