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?
24
u/mixandgo Jul 01 '22
That's an interesting observation. I wonder how did you arrive at that conclusion?
There seem to be a ton of resources out there...
16
Jul 01 '22
The resources are excellent. Most of the gems I've looked at so far have good documentation. If you need ruby resources, you will find them.
What I mean by lack of promotion is that, outside the realm of ruby, there is practically no content telling people why ruby is amazing and why they should use it.
I discovered ruby by luck. There was practically no content about ruby that I've seen online. Unless I was specifically searching for ruby, it didn't show up.
This isn't the case for other languages. I am primarily a js guy and I see lots of content online for lots of other languages like elixir, go, python, and php. I've never touched go or php and its been a while since I fiddled with elixir or python. Yet I still see content around those languages.
I never once saw content around ruby that made me want to try it.
I think this is primarily why ruby looks "dead" to those who haven't used it. They never see any content around ruby online. So, they make the assumption that ruby is "dead".
Its a really, really sad reality.
The type of content I'm referring to is stuff that would appeal to someone who has never touched ruby. example blog posts that would fit this criteria might be something like:
"How I made a twitter clone with rails in 4 days"
"Complete guide to making CLI tools with Ruby"
Stuff like this. as far as I know, there just isn't enough content of this sort when it comes to ruby. Someone did make a youtube series creating a twitter clone with rails 7 and another guy talked about his transition from node.js to ruby.
The only other kind of content that is likely to show up to outsiders looking in is another "is ruby dead?" article. This saddens me.
35
u/xc68030 Jul 01 '22
After being a Ruby dev for 10 years, I’m now entrenched in Python. What bothers me most in the Python community is the complete unawareness of Ruby and its elegance. You get a lot of comments like: Python is the best language because look how easy it is to do x [something that is actually more concise and readable in Ruby]. In fact I almost started a blog to surface these things and show the Ruby equivalents.
7
Jul 01 '22
This is basically my situation, I'm wondering why all the js guys don't know about ruby...
10
u/fedekun Jul 01 '22
Coming from Ruby to Python as well, it surprised me the amount of bad, click-baity content they have. They focus a lot on selling courses and beginner stuff.
This is very apparent when you google. When you search for something Ruby, 99% of the time you get a link to either StackOverflow or GitHub. For Python, you get a lot of advertisement-filled websites trying to promote their stuff, with 2 pages of buzzwords only to give you a 4 lines of code snippet at the end. You can, if you search deeper, find proper resources, like a Stackoverflow post or a decent blog, but it's buried in all that crap. Not like it's Python's fault, it's only because it's very popular, but still sucks :p
2
2
u/ThunderHeavyIndustry Jul 07 '22
100% agree with your experience. Python feels so half baked and clunky to me compared to ruby.
1
u/CharmingLawfulness49 Jul 07 '22
Yeah, I thought Python was the shit, and was endlessly annoyed that Ruby did not have syntactic sugar for decorators until I actually found out how to build decorators in a Rubesque way, how much more elegant it is, but not only that it looks better it simply is better no need to wrap double layer for passing arguments...
17
u/mixandgo Jul 01 '22
I'm trying to do that here: https://www.youtube.com/mixandgo
If you have any suggestions on how to improve, and/or make more, or make it louder :) please feel free to say so.
12
Jul 01 '22
Its me again, I'm kinda clutterring your notifications but I have another thing to point out on your channel.
A lot of your videos use the first minute to give an intro about yourself. An intro shouldn't take that long.
To check how much this actually effects your videos go to yt analytics and check the retention graphs. I bet you'll see a lot of people skipping that section or just leaving the video.
Cut those sections out from your older videos.
2
8
Jul 01 '22
I want to applaud you for creating that channel. Your content is exactly the kind of stuff we need! I tried starting a channel before and making good videos is so damn hard. You're a hero.
If people have a perception they will not change it. I can't remember the exact name of this law but its mentioned in the 22 immutable law of marketing.
I would change the video on the home tab. Right now it fights with the outsiders perception of ruby.
When you say "ruby is still great" (which is the basic premise of the video) you'd modify it to be:
"Ruby has transformed and is now great!"
This doesn't create a perception conflict in the outsiders' mind. When you say ruby is still great the outsiders' mind says: "no its dead".
But when you position your video so that its premise is: "Ruby used to suck, but is now amazing" then the outsider is more likely to not completely ignore you because the opposition with his perception isn't as strong.
I probably explained this really badly. Guess that's why you're the guy making the videos :P
If any of this isn't clear just ask and I'll do my best to clarify. Cheers!
5
u/mixandgo Jul 01 '22
Oh wow, that's really insightful. I'm familiar with the idea but haven't thought about the video through that lens. So thank you for that.
I love making the content, gives me such a different perspective, and it forces me to put my thoughts in order.
3
Jul 01 '22
Marketing and sales would be really simple if everyone just followed and never forgot the basic rules. (Don't fight perceptions, frame things in terms of benefits, create a tribe, etc,etc,etc)
Imagine not needing marketing/sales departments because everyone understood the basic rules of sales/marketing and followed them all the time.
1
8
u/postmodern Jul 02 '22
Most of your content seems focused on Rails, Hot Wire, and web development. The Python community really loves How To Automate Boring Stuff With Python which just covers basic POSIX system programming tasks, working with files/directories, sockets, parsing text, etc. Since there isn't a lot of Ruby content dedicated towards doing basic system tasks, I feel like you could gain a lot of views simply by showing how to build similar programs from How To Automate Boring Stuff With Python.
4
5
u/Wattswing Jul 01 '22
Your design patterns section is awesome. Definitely something I'll look upon, thanks for your work 👍
3
8
u/katafrakt Jul 01 '22
I think this is kind of a chicken-egg problem related to what /u/shanti_priya_vyakti noted. No one is hiring junior Ruby devs, so there are no junior Ruby devs, so it makes less sense to create content targeted at junior Ruby devs than content for experienced devs.
But there are also other things. For example, there are blogging communities like dev.to or Hashnode, and they are generally dominated by JavaScript content. You write about JS - you get a lot of reactions and feedback, no matter which seniority level is the article for. I think the same kind of happens for Python around data science communities, as I see a lot of entry-level articles coming from it. Ruby just lacks this kind of place/community. There is Ruby-related content on both Dev and Hashnode (more on Dev, as it's written in Rails), but it's usually the same 3-4 people reading it.
And just for the record, it used to be very different when I started with Ruby 11 years ago. It changed with time. Maybe it's natural, because Ruby fell off the hype train, but I think there might be more to it.
3
Jul 01 '22
Excellent observation!
The thing you gotta realize is that we HAVE to get new people into ruby. Otherwise it'll just die off.
Look at this discussion.. I'm getting the impression that the people here are much older than the average developer I see and there is no new blood flowing in.
This makes drawing a conclusion pretty simple: When all the current ruby guys retire, ruby dies
sudo kill -9 rubyThis essentially means that ruby might have 5-15 years left at most. Right now its already bleeding. SO survey in 2017 stated that 7% of respondents use ruby.. now its 3% after 5 years...
Ruby quietly fading just isn't an outcome I can sit with.
4
u/katafrakt Jul 02 '22
The thing you gotta realize is that we HAVE to get new people into ruby. Otherwise it'll just die off.
Well, I do realize that. Still, it's not like there is a simple cure for this problem.
Especially given the general condition of Ruby community nowadays - when any problem around Ruby is mentioned, people generally react with strong denial. Not exactly the best environment to try to change something.
4
u/that_which_is_lain Jul 01 '22
You may find that a lot of content like "how to make x in y days" was done 5 years ago, which is why it's not popular to do. People seldom want to retread old ground.
I wish I had time for it.
4
Jul 01 '22
You'd be surprised.
I'd suggest you take a look at python/js content. There is a metric fuckton of content that is like that.
In general people tend to think that you can't repeat yourself online. Ever. The truth is that you need to repeat things over and over and over AND OVER again for them to stick. coke ads come to mind. If coke shut off all their ads they would die. and I don't care how many billions of coke cans are consumed per day coke would die in record time.
Repeating yourself is necessary if you want to get an idea to stick in peoples heads. Why do landing pages have a lot of buttons that essentially do the same thing?
I've repeated myself a dozen times in this post alone... If you think about it, its basically just me repeating the same few ideas over and over.
2
u/that_which_is_lain Jul 01 '22
I know. I'm already tired of it.
If you want to do it and have the time then go for it.
23
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 Enumerable and the behavior it endows with each, map, and select.
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.
16
Jul 01 '22
I agree with you. Python being used as a primary language in universities definetly did supercharge its growth.
We could make a website called "ruby-roadmap" or something that helps people get past the starting hurdles. I definetly got stuck on the documentation thing too.
The thing is, unless someone here knows and can influence a dozen universities to adopt ruby, then that isn't a viable path to getting new blood into the ruby community.
Where I believe ruby has a shot at reemerging (is that a word?) into the programming world is with more content. If 10 people promoted ruby full time then it would be enough to get that snowball rolling downhill.
2
Jul 01 '22
I've had similar thoughts with making a site to document my last year and make it less painful, because it was more painful than it should have been.
But, I maintain an OS project which means I'm understaffed and overworked already, along with doing the math I like on the side and building a site for that as well already.
I'd be glad to try and help if that was something a group of us decided on.
What about just sprucing up this subreddit to have a sidebar for all this too? I don't know much about the mods here, but there's not really much to this subreddit compared to others I've seen.
8
u/xc68030 Jul 01 '22
Since you mentioned some good books, I highly recommend POODR as as a must-read after one has the Ruby basics down.
1
Jul 01 '22
Great book! I already have it and study it. Thanks for throwing that up too, it's a must have as well that I'm ashamed to not have mentioned ;)
7
u/pabuisson Jul 01 '22
The docs were confusing, as in which docs to even use. Ruby-lang.org docs or Ruby-doc.org? Eventually I found the ruby official discord (which is fantastic!) 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.
interesting. Since you looked into this, do you know why all these documentations co-exist, and if there are plans to keep only one of them, that would be up-to-date and nice to use? do you know why/how we ended up with the regular version, the official version, and a nicer-to-use version? (I believe rubyapi.org is a third party project?)
4
Jul 01 '22
Great question. Simple answer: it's open source, so anyone can fire up docs.
Better answer, the team behind ruby-docs.org (from what I understood) is the one behind rubyapi.org and it is an attempt to migrate the docs into a modern looking frontend that also works on mobile.
The official docs are generated automatically and derive straight from the code, while the above are more curated and have slightly different wording, and nice things like if you select
find_allit just takes you toselectto try and cut down on some redundancy in the method names.But, in general I was told use rubyapi.org unless you really want to stick with the ruby-lang.org docs for all you do (which is fine) or to dig more into some object hierarchy, etc.
3
u/pabuisson Jul 01 '22
Thanks for the reply. That's tricky, and what's really annoying is that most developers must type "ruby enumerable" in their favorite search engine, and land on whatever site got ranked higher. Meaning sometimes you'll land on one of these documentation sites, or another one, in a more or less random fashion.
Which, for everyone but even more for newcomers, is confusing (I got into a debate recently on twitter about the quality of Ruby documentation, and clearly, it was not highly regarded by developers from other ecosystems).
rubyapi.org is great but I rarely land on it when searching, unless I use my history and intentionally want to go there.
4
Jul 01 '22
Yeah, completely agree! I'm annoyed with the docs for the same reasons and I don't think it's friendly to a newbie at all because of that.
My hope is by spreading the word for rubyapi.org and getting more users directed there it helps the page rank.
Actually, can we get that added to this subreddit in the sidebar somehow? This sub should maybe try to do a better job of helping with all this.
Links to the discords, links to the docs, explain them a bit more, make it a place to come and get all this context.
3
u/rubinick Jul 03 '22
fwiw, the ruby core and stdlib docs seem to be going through a (slow, long overdue) very big overhaul right now. the official docs still aren't half as pretty as rubyapi, or even most other languages official reference docs. But it is changing! I've made it my personal goal (half-year's resolution, ha!) to send in at least two ruby rdoc PRs per month, even if it's just fixing a typo or two.
2
u/rubinick Jul 03 '22
eg take a look at https://docs.ruby-lang.org/en/master right now. and compare it to https://docs.ruby-lang.org/en/3.1/ from six months ago or https://docs.ruby-lang.org/en/2.6.0/ from 3½ years ago. There have been big changes even in the last few weeks. And so much work still to be done.
3
u/_noraj_ Jul 02 '22
Just use https://devdocs.io/ for every languages.
2
Jul 02 '22
Great resource! I sponsor them and would also suggest using them for many languages. Plus, they have a dark mode for those pesky languages that don’t feel the need to add that to their docs.
36
u/01az Jul 01 '22
For me, to make ruby more attractive, we need to promote it on other
tools built with ruby and not only rails. For example:
metasploit, puppet, bolt, chef, kubes, vagrant...
6
u/katafrakt Jul 02 '22
This is a good notion, however, as /u/postmodern noted, most of these tools are rather dated and generally superseded by more modern tools. There were quite a few tools written in Ruby few years ago, even a tiling wm for Linux (I don't remember the name). But not a lot is going on in that area lately.
One problem that is known and was never really addressed is that there is no easy way to distribute tools written in Ruby. If you want to use them, you usually have to manually install Ruby in your system, perhaps even manually install dependencies. And this is simply not the experience most people want these days.
3
2
u/postmodern Jul 02 '22 edited Jul 02 '22
One problem that is known and was never really addressed is that there is no easy way to distribute tools written in Ruby.
I mentioned that we should be focusing on current solutions instead of trying to re-solve the old problems with old solutions like we're trying to slay some old dragon; I've been guilty of falling into this mental trap. In the past Rubyists would say "just use RubyGems", but in order to install something from RubyGems you first need Ruby installed. Another even older solution to this dependency problem is to package your software as
.deb,.rpm, or add a homebrew formula to your repo. The current solution to this problem (AFAIK) is to use Snap or FlatPack. It would be awesome if there was some sort of tool that could easily get a Ruby project converted into a snap or flatpak package and handle the heavy lifting.8
u/postmodern Jul 02 '22
One slight problem with that approach is that many of those tools are quite old and implement dated solutions, and things like Puppet and Chef have a negative reputation among non-Rubyists (this is because DevOps tools are always complex, poor documentation, and non-Rubyists having to learn Ruby syntax on-the-job). We should be focusing on building new tools that implement current solutions and meet 2022 standards.
Full Disclosure: I am actually working on refactoring one of my older and larger projects to bring it up to current standards.
1
7
u/heathm55 Jul 02 '22
Having programmed in C, Perl, PHP, Ruby, Python, Java, Go, lisp, C#, a bit of Rust, Javascript, Groovy, Scala, and probably a language or two I'm forgetting over my 25+ year career I can tell you what my personal "why it's not that popular these days" take is, but it will involve some history.
When I first used Ruby, I really appreciated Ruby's improvements on Perl -- which is where it really first came into being -- to make a better (for the programmer) Perl, just like Python. Despite Perl still being much faster than either of them, Perl has lost a large segment of it's programmers mostly due to cryptic syntax that slowed new adoption and a lack of forward progress (redesigning something by committee and all).
Ruby's adoption and initial popularity of course came with 2 major frameworks (for most people I know who used it at least) -- solving the enterprise style web application (Rails), and addressing the first iteration of what would become devops automation workflow (chef and puppet). Not much wide-spread adoption traction has been made in Ruby outside of these I would argue.
Fast forward to today, and neither of these things are popular anymore for solid reasons. Enterprise apps are harder to horizontally scale, so they've been broken up into microservice and web app (2 separate code bases). At the same time, a trend for configuration as code took root with projects like Terraform, Cloudformation, and other similar yaml / json expressed functionality. Both of these trends left companies in the position where Ruby didn't have the same need in their enterprise / cloud anymore. There wasn't stand out libraries and frameworks that HAD to be used over more mature and supported projects in other languages.
As an architect I look at how many contributors and how active a project is before ever consider buying into it (Not a lot of ruby projects out there are dominant in what they do industry wide -- Rails is about it.). I look at a languages profile for speed of development (very good in Ruby). I look at a language for it's performance profile and Operational cost of ownership (Honestly Ruby has one of the poorest profiles for this, and it's a shame because it's a nice language). I look at how secure it is, and how secure it's ecosystem is (To be honest, only Rust isn't horrible here, but there are some Ok, and some really neglectful languages). I weigh if it's suitable for the problem at hand (does it need to scale horizontally like a web application should, does it need near real time communication, is it installed on a mobile device or in a container, etc.
In order to consider ruby for a project I'm going to only really use it on a problem that is mostly backend, native, or a web app that doesn't have high scalability because it would cost me much more than other languages operationally. At this point your probably ready to call B.S. on me because you love your language and it's fun to program in, but at the end of the day when Rust / Go / Java Vert.x all outperform Ruby by 50x or more and requires 35-40x less resources to run... it's going to get expensive over time to choose Ruby. Used to be people would argue, "Development costs are more for writing X in language Y"... and this was and is still true. However, those costs have greatly come down over the past 20 years. I can write the same microservice in Rust today as I can in Ruby and it will maybe take me 2 more days using a framework like Rocket. Similarly all the other languages have their modern "faster development / faster performance framework". Async / Await combined with worker thread pools and magical concurrency sugar for any modern language is a given these days it seems. My example for that is this: I worked creating a simple microservice that did user crud operations on a product in Java Vert.x framework (we wrote it in 10 days). It did roughly the same exact thing as the microservice we built at another company a few years later in Python (we wrote it in 9 days). The Java version we had 2-3 servers at any given time under a steady load. The Python version we had 45-48 servers on average for slightly less load. From what I have seen benchmark wise on just the language runtime alone, Ruby would be even slower and take up more resources. Since the industry has gone microservices and cloud costs are monitored closely, this is a common thing I hear about not wanting to use the slower scripting languages.
I use Ruby still today. It's just for niche things, mostly that are old and already written in ruby. And it is enjoyable, but it's just a language... I wouldn't use a nail gun to unscrew my door knob.
1
Jul 02 '22
I'd like to thank you for taking the time to write this detailed explanation.
My work is a bit different. I do freelance client work for people and so far my biggest project autoscaled to 20 servers in total.
Essentially, the things you mentioned boil down to: "ruby is out of the question for the enterprise". What about everything else?
No one ever disputed the fact that ruby isn't really going to enter enterprise land.
2
u/heathm55 Jul 02 '22
Oh it will scale for sure, that's not what I was trying to say. It scales at a higher cost, and it is harder to scale horizontally (you have to be stateless and plan for it, which many off the shelf solutions people use in Rails won't work. I've scaled Grails the same way as well until it became a major cost and we moved it to something more built for this. Enterprise / cloud / mobile / data science / distributed computing / embedded software Ruby has no legs today when you sit down and evaluate it for these things. Mostly it's a matter of a huge lack of projects in those areas, work done to optimize the language and make it fast enough, or companies investing in it. The reason I mentioned Enterprise is most open source projects that are big have a handful of corporations behind the scenes who have committed paid resources to the project to insure it's success. IBM, Google, Microsoft, all do this. But there has to be a corporate interest sometimes. Ruby needs an open source project that catches some interest there in order to get sponsored more not become Perl in the next few years.
I'm an emacs fan, I love elisp, as a hobby I like to write it for my own tooling, but I have a pretty good idea it will only ever be for my own tooling unless I found some kind of crazy project with it and get the hype train going. People would judge me as a professional for using elisp to solve a problem that's already robust, faster, and well designed in another language.
17
u/overmotion Jul 01 '22
Tech is all about the new hotness, it’s about what’s new, not what’s best … and Ruby isn’t new
8
Jul 01 '22
Its about promotion. React is 7 years old but no one says react is old. It is being constantly promoted and so it looks sexy and hot.
12
u/menge101 Jul 01 '22
It is being constantly promoted and so it looks sexy and hot.
I am curious as to what your life situation is. This simply isn't a real thing, imo. This is the lie of marketing.
Ruby isn't marketed because the people who make and use it, don't market it.
There is no monied interest in Ruby, where as React (and Angular for that matter) are made by FAANG companies constantly wanting to find new blood to exploit in their tech sweatshops.
These companies have recruitment budgets bigger than many company's entire budgets.
4
Jul 01 '22
Well as far as my life situation I'm not elon musk so I can't by a shit ton of ads to advertise ruby. Unfortunately.
There doesn't have to be a monetary incentive to market ruby. Its a great tool and I think more people should know about it and so I'm investigating ways to market it.
4
u/menge101 Jul 01 '22
I'm investigating ways to market it.
IMO, start building stuff with Hotwire. Especially if you did like Hotwire + Sinatra or Roda, and start showing you can do web stuff without rails.
That still leaves it stuck in the web world, but c'est la vie.
Solve one problem at a time.
3
Jul 01 '22
Good point! Another realm where I can see ruby dominating in is cli tools. I'm currently in the process of rewriting a few ugly bash scripts into ruby.
3
u/ignurant Jul 01 '22
Just wondering, have you checked out the book “Building Awesome Command Line Apps in Ruby 2”?
I frequently cite that and “Text Processing in Ruby” as my favorite non-web Ruby books.
1
Jul 02 '22
Thanks for the recommendation! I'll check them out. So far I haven't read any ruby books but I'm excited to do so when the opportunity presents itself.
4
u/menge101 Jul 01 '22
Well as far as my life situation I'm not elon musk so I can't by a shit ton of ads to advertise ruby. Unfortunately.
I asked this because you are super concerned with the marketing of something, which to me, when I see something marketed its a good sign I don't want to use it.
That means someone is trying to convince me to use it for their own interests, not for mine.
It's a perspective that I believe comes with age, but that could just be my own conceit.
7
Jul 01 '22
Nah, its a tech community thing. We have very low tolerance for marketing we recognize as marketing. The thing people don't realize is that all forms of content are marketing.
all forms of content are in a sense made to change or add to our thoughts. Thats basically what marketing is... Kind of.
My basic assumption is that ruby doesn't get more people because no outsiders hear about ruby. If this assumption is true then things become pretty simple: Get people to hear about ruby and a portion of those people will check ruby out.
Over time enough people will get into ruby so more content gets produced and you get an infinite loop with the end result being an upward spiral of more users.
I'm hyperfocused on marketing because as I get older, the more I believe that marketing is the make or break factor when it comes to a projects success, that's why I tend to fixate on it.
3
Jul 01 '22
There is certainly monied interest in ruby. Shopify is a billion dollar business that is interested in ruby, they work on the JIT.
Similar for GitHub.
1
u/menge101 Jul 01 '22
Monied interest in promoting Ruby, not a monied interest in using it or improving it.
But maybe Shopify/Github/et all are that as well. /shrug
I'm fine with being wrong about it.
1
Jul 02 '22
Take a look at react/angular. Google/facebook promoted them so people got excited and now they have contributors. I'm not saying someone is doing it for ruby right now but I am saying that its possible for someone to do it.
3
15
Jul 01 '22
Python is a fair few years older than Ruby.
7
Jul 01 '22
yeah but ruby never had the equivalent xkcd comic for it.
I honestly believe that is why it took off in comparison.
5
u/postmodern Jul 02 '22
I also wonder this. It seems almost as if Rubyists are too humble about Ruby, where as the Python community is overly enthusiastic and are more than happy to preach how awesome Python is. Yet Rubyists seem to downplay the strengths of the language or overly focus on the known bad parts of the language/stdlib/ecosystem. Why this strikes me as odd, is that Python and Ruby share many of the same core dynamic language features, both have popular MVC web frameworks, etc, yet the Python community does a better job of promoting it's language compared to the Ruby community.
2
Jul 02 '22
Its a beginner thing. Those guys who got into python will bolster the python bandwagon in order to feel better about themselves. Rubyists don't have these insecurities. Amusingly, this "flaw" is why python nad node gets more people. Its a self fulfilling prophecy.
In The Everything Store - a biography of amazon - Brad Stone mentions a time where Jeff Bezos was worried about the stock market killing amazon just because they were getting bad press. His idea was essentially: "If enough people believe amazon is in bad shape they will sell and stock will plumet..." Weather that was true or not we can't tell but Brad believed that amazon was in good shape at the time.
So it is with ruby. Its in good shape by my estimate but the rest of the world believes otherwise.
3
u/derek901128 Jul 01 '22
Writing/learning Ruby always puts a big smile on my stupid oriental face :)
2
6
u/CornishRedneck Jul 01 '22
As a beginner myself I have to agree Ruby is very hard to get into as a self learner.
I completed the odin project fundamentals and wanted to go Ruby on rails.
After a weekend of searching for online communitys there just isn't any active or welcoming for someone like me. Even this subreddit and rails are not very active. Then searching jobs, it's all about python.
I went back javascript route and will rethink Ruby or python at end. However I feel python is a new better version of Ruby from my limited research
2
Jul 01 '22
Are you new to programming in general or just to ruby?
If you are new to programming then sadly, you'll have to go learn something that will put food on the table (or start freelancing because then you can use whatever you like... Most of the time...), then focus on Ruby.
If you're just new to ruby then picking it up isn't a big deal. I've only been at it for a month and I'm pretty sure I can make any site/app I made with node in ruby.
4
u/jrochkind Jul 01 '22
Plenty of ruby jobs. Have you had trouble finding a ruby job?
2
Jul 01 '22
I'm a freelancer and I'll use ruby for client work.
I probably didn't look hard enough but a few searches on popular local job sites turned up only 1 rails job submitted about 3 months ago (it only got 3 applications though... Possible opportunity?).
This does provide an opportunity for local people. The main language for technical stuff is english so someone could set up a rails blog in his native tongue (assuming it isn't english) and set himself up as the go to person for rails in his area.
But if you're going for a remote job i guess the local scene might not matter much.
Things definitely look bleek if you're going for local jobs. I did hear that ruby is popular in the us/london though...
2
u/CornishRedneck Jul 01 '22
New to programming yes, did a month of python for everyone then started odin project. Im just finishing up the admin dashboard for intermediate html, css in the javascript route.
I wanted to do the Ruby on rails but after a weekend decided as you said to focus on my javascript etc to get employable before going Ruby or python. Also figured better as complete beginner to understand javascript better first.
1
Jul 01 '22
Your falling into a trap here. You need to focus on one stack and get good at it. I only really started getting good at programming when I stuck to js, postgres, and react and didn't learn ANYTHING ELSE. till I got good at those. (this is around 2020). The 2 years up to that point where I was "learning to code" was really me running around like a chicken with its head cut off.
1
u/CornishRedneck Jul 01 '22
I'm following odin project.
After fundamentals you choose between Ruby on rails or javascript adv for the main course, I initially choose Ruby path but then switched after a weekend to the javascript path, half the reason is what you said. Second half was the lack of Ruby promotion online
6
u/mindaslab Jul 01 '22
Read my book https://cliz.in/ilr
3
u/01az Jul 01 '22
Awesome book, will you enrich it with ruby 3 ?
3
2
u/_noraj_ Jul 02 '22 edited Jul 02 '22
The direct link: https://i-love-ruby.gitlab.io/
2
u/mindaslab Jul 02 '22
cliz.in doesn't track too, this is the file served by https://cliz.in/ilr :
https://gitlab.com/cliz/cliz.gitlab.io/-/blob/master/ilr/index.html
Cliz is a free software project and its a static URL shortner, so one can see what HTML is served.
1
3
Jul 01 '22
Please check out https://ruby-discord.com/
There's plenty of activity there.
Python is not a newer version of ruby just FYI, in fact python was not originally designed to be OO, Ruby was from the get go. This is why you can chain methods in Ruby, and not in python.
This is why in ruby you can see iteration right from the start with
obj.each { |x| puts x }but in python or other languages that tried to bolt on iteration later ended up withfor x in obj; print xwhich may read nicer for some people, but they are the same thing, just a different syntax. My background is math, and ruby syntax makes way more sense to me though.Python likely will give you more job opportunities, but the work with Rust and Ruby and the JIT and web-assembly has me very curious what the next 5 years looks like because JS sucks total ass in ways that it hasn't been asked to work yet, but with AR coming on the horizon (apple especially) it is going to start to feel those limits quickly.
1
u/katafrakt Jul 02 '22
in fact python was not originally designed to be OO
... and it's painfully obvious and visible when you have to write in it. For that reason, I insist on calling languages like Python or C++ "languages with objects", not "object-oriented languages" ;)
1
u/abiw119 Jul 12 '22
I am at the point of choosing which pathway to take. This has given me food for thought .
0
Jul 01 '22
[deleted]
3
Jul 01 '22
The tight coupling that ruby has with rails really isn't as big of an issue as people might think. First step is to fix the general perception that ruby is dead.
I could go into detail about why ruby/rails coupling isn't a big deal but I don't anyone wants to read that..
1
u/anaraqpikarbuz Jul 01 '22
What do you think about Rails 7 + hotwire? Javascript fatigue is real, so I'm thinking there's potential for Rails to be "trendy" again (not having to install nodejs is pretty sweet).
1
Jul 02 '22
At the risk of making people want to hang me for the sin of mentioning marketing again....
This could work if you set things up like so:
"javascript is what slow developers do. Rails is what real developers who want to get things done use."
Rails being promoted this way would get peoples' attention.
6
Jul 01 '22
[removed] — view removed comment
1
u/CornishRedneck Jul 02 '22
I'm not experienced enough to make any comments on the language or python, but the ML stuff is what I would say is pushing python ahead. From my understanding 'the odin project' is slowly getting me ready for back end stuff and offers Ruby on rails or javascript. The power of python/Ruby is what drew me into getting serious about programming so I naturally wanted to take Ruby on rails as it looks like python from a new view (I did a good month on python first, followed PY4E that was really good!)
However getting more serious these last few months and actually building stuff and actually enjoying css that idea of get a job to progress further really kicked in.
Then actually getting to the path choices and researching job prospects (have been for awhile out interest for my area) Ruby seemed a bad choice. Everyone wants javascript. Even thou the Ruby path is supposed to be better structured it feels right to continue the javascript and solidify that knowledge finish the odin course and then go back to Ruby on rails path or python etc.
Big props to The Odin Project and PY4E courses, both very good.
3
Jul 02 '22
[removed] — view removed comment
1
Jul 02 '22
Can confirm the js functional tendencies.. During my first days with ruby all I did was pass methods around...
1
Jul 01 '22
[removed] — view removed comment
1
u/CornishRedneck Jul 01 '22
I did 3days of it. While also doing my own research into what it is and trying to find communities etc for beginners as I did with html, css, javascript.
Hence my newbie beginner opinion on that it really is not advertised or as welcoming / beginner friendly in my opinion / limit time delving into it. (compared to javascript etc, there is plenty of readily available discord, subreddits, tweets etc)
Job aspects as well seem to be a lot more specific and specialised with python being advertised and pushed over Ruby.
Infact a post here not so long ago highlighted this as well about how Ruby devs are a rare thing so companys tend to not go that route or something. Basically you never see junior Ruby positions or such
4
u/Slawagn Jul 01 '22 edited Jul 01 '22
If something so pleasant was also popular, that would be surprising
1
Jul 01 '22
Could you elaborate please? Maybe I'm not the smartest guy around, but that wikipedia page isn't clear.
3
u/noname8317 Jul 01 '22
Sturgeon's law states that 90% of everything is crap.
My interpretation is that if Ruby is pleasant, that will put it in the 10% of Sturgeon's law. And if it is also popular, that's another 10%.
10% of 10% equals 1%, which is quite rare and surprising.But I disagree with the statement because that is based on the assumption that being pleasant and being popular are independent of each other. i.e., no correlation between the two, which isn't the case.
1
Jul 02 '22
I think this hamster wheel of the "ooh new technology. I must use!" our industry suffers from is because people don't realize that good software is boring.
It has to be sexy fancy and hot and everyone needs to be using it or its a piece of garbage.
^ I could be completely wrong but I'm definitely getting this impression when I go and look at beginner programming communities.
14
u/tomatotomato Jul 01 '22
I think Rails turned into Ruby’s blessing and a curse. While Ruby is far more consistent, well designed and aesthetically better language than Python, Ruby programmers were mostly attracted by Rails. At the same time, most highly popular libraries were being developed in Python because it got the role of a more universal language.
Look at the vocal enthusiasts who jumped from Rails to Phoenix. It’s always “Elixir and Phoenix” to them. Those 2 words are never used separately. To them, Elixir barely exists outside of Phoenix framework. The same happened to Ruby and Rails.
3
u/katafrakt Jul 02 '22
There's plenty of things happening in Elixir outside of Phoenix, for example Nerves, LiveBook, Nx... These are projects that are often mentioned in the community, are very much endorsed by the core team and show up regularly at conferences.
2
u/Santos_m321 Jul 10 '22
Hello! Here's a Python developer.
Why do you think Ruby is more consistent than Python?
19
u/jrmehle Jul 01 '22
It's because Tenderlove got obsessed with making cheese and sausage. Doesn't have time anymore.
6
Jul 01 '22
because human civilization is capitulating around JS which will be the end of civilization too. go homesteading in Alaska
4
u/ffrkAnonymous Jul 03 '22
Have you seen the DragonRuby game toolkit? https://dragonruby.itch.io/dragonruby-gtk
/u/amirrajan is promoting ruby. I'm a pro subscriber because I believe in it. (and of course I'm promoting it with this comment)
/r/tic80 just added ruby support for the 1.0 release
1
u/razenha Jul 01 '22
I think it's the advent of front-end frameworks, newer startups are more willing to bet on a platform that makes it easier to have full-stack developers by using the same language and development tools across the board.
1
Jul 02 '22
I, believe that this is a lie. If you know 2 languages well enough swapping between them isn't a big deal.
Though having "one language for backend and frontend" would appeal to businesses. The reality is that if a person is competent with one language then he can pick up another reasonably well within a month.
I'm basing this on my own experience (learning ruby as a side project). Except the new hiree would pick up another language even faster because he'd be pressured into doing it.
1
u/FiduciaryAkita Jul 01 '22
Some people hit on this a bit but it seems like frameworks were both the life and death of the language. Both Jekyll and Rails were/are extremely popular and gave a lot of people a reason to get into Ruby, but they’re also quite opinionated frameworks that do some things well and others very not well. From an enterprise standpoint architectural necessities have really shifted to horizontal scaling which is one of the things Rails doesn’t handle really well. As for SSGs there’s now a ton of options so Jekyll doesn’t always make a lot of sense, and I think too the gap between the ease of deploying and developing static sites and dynamic sites has really lessened with the React ecosystem, Firebase, and even Svelte imo. So there’s not as many reasons to pick those frameworks and thus get into Ruby since those are kinda the draw. It becomes a question of why pick Ruby and be limited to a few excellent frameworks when you can have a ton of variety and use case fits with Python, Go, and JS/TS
1
Jul 02 '22
You can't really pitch ruby against python or node if you compare them based on libraries available. What you'd have to do is attack the problem from different angles.
If I was selling an enterprise on ruby I'd talk about the reduction of their churn rate and I'd talk about how ruby would make them more productive and happier, thus the enterprise won't need to worry about getting and keeping developers so much.
All objections can be overcome if you come at them from the right angle.
Before someone yells at me, This example has lots of holes and I'm only using it for illustration. I know the "pitch" in its current form wouldn't work.
3
u/JanSordid Jul 04 '22
No one brought up the best thing that happened in Ruby yet:
_why the lucky stiff's https://poignant.guide (click on the book to read it online)
This got me hooked, I also used Rails, but Ruby persisted beyond that for me... maybe because I learned Ruby not only to use Rails
2
u/No-Cover4152 Jul 02 '22
Hi.. I am a beginner and started with python initially.. came across this video on ruby and switched.. found it more intuitive some how in certain aspects .. I think the question should be done what can we do to promote ruby much more? Although I am not sure that we can.. even something like cs 50 which would have c as it’s primary lang for teaching has shifted to python..
3
u/_noraj_ Jul 02 '22
Same for me, used Python for 1 year because it's what schools teach you and every one says "it's the easiest language" but then tried Ruby. It has been 6-7 years now and I'm using only Ruby for everything. For me Ruby is like Python but better, no indentation bullshit, more readable, better flexibility, more elegant, better encoding support, etc.
0
u/No-Cover4152 Jul 02 '22
Active ruby users should see what we can do to improve its standing.. can we move the discussion to that.. also how can each member regardless of experience levels contribute..
1
u/chrisatlee Jul 01 '22
Great question.... I wonder this as well.
I've been working with Ruby professionally now for almost two years, after spending more than 10 working with Python.
There's lots to love about Ruby as a language, and in many ways I prefer it to Python.
Where other languages like Python have an edge IMO is documentation and library support. Ruby's core documentation is often quite sparse, and doesn't help you understand a particular module well. Documentation for gems is often limited to just a simple listing of what the APIs are. Gems providing some functionality I'm looking for are often stale (years since last commit or release), or not mature projects. Granted, you can find libraries like this for Python too, but in my experience it's a more frequent frustration with Ruby.
3
u/ignurant Jul 02 '22
Ruby's core documentation is often quite sparse, and doesn't help you understand a particular module well. Documentation for gems is often limited to just a simple listing of what the APIs are.
It’s interesting, because to me the Python docs are absolutely dreadful to use. You have to read a novel, and things I would expect to be grouped together are not (how to do stuff with collections, notably). I feel like the consistency of message passing to objects in Ruby advocates for that API style documentation more naturally. “What can I do with this object”: “here’s a list”.
I recognize this is subjective, and have seen your sentiment often enough to recognize that some people are more comfortable with the Python style docs. But it’s not for me!
2
u/ThunderHeavyIndustry Jul 07 '22
Agreed, the example method calls in ruby docs are often all I really need to determine if it's thing I need. Often times it seems like one has to dig in the the python docs to get a clear example
1
u/ignurant Jul 07 '22
/u/christalee - my curiosity is piqued. I’ve seen your sentiment expressed enough to know it’s relevant, but help me understand how the documentation is at least subjectively worse? What do you prefer about the Python docs specifically? I have significantly less experience navigating them, but when I have, I rarely find what I’m looking for and instead have to go diving into blog posts and stack overflow.
1
u/ignurant Jul 07 '22
I've been browsing both sets of docs myself this morning to help form my own opinion more clearly. The thing I prefer about the Ruby docs is that each class has a page with a list of methods you can quickly scan on the left side, and the content of this page describes the class at a high level, and lists all of those methods along with examples in most cases. Additionally, included methods from mixins are linked, so it's easy to jump around to see everything you can do.
I think I'd be a lot more comfortable with the Python docs if each class had their API presented in an easy-to-reference format, including focused examples, rather than reading like a text book. And I suspect that the opposite of that is true from the "Ruby docs suck!" crowd, wishing it presented more like a progressive lesson, as in a text book?
1
1
u/ignurant Jul 01 '22 edited Jul 01 '22
I wonder what the modern day Rails for Zombies would look like. That project was brilliant. It was a great capitalization of pop culture at the time.
1
1
u/elithecho Jul 03 '22
Ruby is boring and boring is great. Nobody talks about WordPress but they're wver me everywhere.
1
u/Santos_m321 Jul 10 '22 edited Jul 10 '22
Hello!, here's a Python programmer.I was playing with ruby about a month ago and have found some things that I love.For example, the possibility of being able to define exclamation or question marks to give contexts to the methods.However, other things annoyed me a lot:- The lack of types.- Versatility when making calls to functions (that parentheses are not necessary).- The lack of need to write a return.
This means that many libraries may contain bugs that are not easy to find.To put it in some way, the system is contaminated. Clearly, the ecosystem of Python or JavaScript was also initially, but alternatives were emerging to deal with this.Python now supports types and there are many tools that are adding it. Several tools also emerged for JavaScript, including TypeScript.I think ruby is a language to write fast things, it feels easy and fast, honestly.But at the same time, it feels very tricky.I got the feeling that I wouldn't try to build a robust or secure system using it. I feel like I should pay twice as much attention to the things I do to make sure there are no bugs (beyond adding tests, of course). I think this takes away the magic and "happiness" that language gives you, and, on the contrary, it can give you headaches at large systems.
1
u/abiw119 Jul 11 '22
I am doing the Odin Project, and am leaning towards Ruby/Rails. I have heard that it's difficult to get a job as a junior developer with this language and framework. I may just have to stick with JavaScript and node to begin with
1
u/it_burns_when_i_php Jul 21 '22
Ruby is promoted by the 5-10 LinkedIn messages I get a day begging me for a 5-10 minute call.
-2
u/agent007bond Jul 02 '22
I don't like Ruby because you have to be some kind of magician or wizard to write code in it. And like any good magic show, only other magicians understand the trick.
I'm no magician, I'm just a regular guy. I'll stick to my Python, C# and Java.
1
u/factcondenser Jul 08 '22
Paolo Perrotta's Metaprogramming Ruby book really helps with understanding the magic. All I needed was the chapter on the Ruby Object Model and I've been smitten ever since. The ROM is so elegant. I write mostly PHP, Objective-C, and Python for work now, but I still do all my side projects in Ruby.
-22
u/shanti_priya_vyakti Jul 01 '22
Poor and shitty community that onlh hires dev with experience no one wants to hire new joiners
Not like js community
7
Jul 01 '22
You have a point, but this isn't something that we can influence directly. Only solution is to get new blood flowing into the community.
Also, in the future try and focus on how you say things. You make a good point but odds are everyone will ignore your comment due to how its phrased.
-1
u/shanti_priya_vyakti Jul 01 '22
Mate how is anybody gonna come when the community has this high standards.
I have never seen a community that never hires new joinees.
You can get half the world's dev learn ruby or rails but you still would find rails job with min 2 years of experience.
Now there are some chances some tech recruiter in first world country really know about his stuff and get you shortlisted on skills.
BUT IF YOU ARE IN A THIRLD WORLD COUNTRY CHANCES ARE YOU ARE BETTER WITH JS , SPRING OR DJANGO. BECAUSE JS DEVS ATLEAST HIRE NEW PEOPLE , PYTHON IS WIDELY ADOPTED AND JAVA IS USED A LOT .
TRUTH HURTS ,WHEN YOU ARE DEVELOPING A COMPANY OR PRODUCT, YOU CAN START WITH ONE STACK BUT IT'S YOUR JOB TO HIRE NEW PEOPLE TOO, THAT KEEPS THE TECH ALIVE.
I AM SORRY ,THERE IS NOTHING LUCRATIVE , I LEARNED RUBY AS A LANGUAGE OUT OF MY COLLEGE CURRICULUM,AND I WAS LUCKY A CEO WAS DESPERATE TO HIRE RAILS DEV. SO I WHO WAS HAVING ENOUGH KNOW HOW OF RAILS GOT AN INTERVIEW ARRANGED , AND SO I AM EMPLOYED RIGHT NOW.
NOT EVERYONE HAS THAT OPPORTUNITY.
YOU ARE NEVER GONNA GET THE LANGUAGE GET ADOPTED IN MASSES. IT'S A LANGUAGE KILLED BY COMMUNITY ITSELF.
2
19
u/menge101 Jul 01 '22
At the root of it, there isn't a big monied interest in Ruby to pay for marketing.
Ruby is a really poor experience on Windows, so right there is a problem. (At least it was, I haven't used windows in some time)
It also does a lot for you out of the box, which makes it too easy to do things like data structures and algorithms. You aren't going to learn the important lessons about data structures if you have an array that automatically resizes itself, for example.
I see what you did there ;)