4 ms·
Evaluating Ruby in Ruby (2020)
- bnt 4y agoI tried to install Rails the other day. The amount of issues I had to set it up with Homebrew on macOS is just terrifying. In the end I managed to get the app running but assets weren’t compiling. I gave up. It’s 2022 and getting Ruby and Rails running is as difficult as it was 10 years ago. Compare to Node or even Elixir, this is a no-go for me. I give up on Rails.
- brudgers 4y agoHomebrew suggests the blame is not with Rails.
- petepete 4y agoThe problem is that even if it's not Ruby's problem directly, people who don't know the ecosystem will still get stuck along the way. Every Ruby developer I know users rbenv, rvm or asdf to manage their versions and take the permissions and path woes of competing package managers out of the equation entirely. You need to know this before you start or you're going to have a bad time.
- flomo 4y agoArticle is a deep dive into ruby internals, which is technically interesting but probably beyond the average ruby/rails programmer's routine. And otherwise, certainly not relevant to you. The back button is over there. "ME NO CAN INSTALL RAILS" is an entirely different thing. Lately I've noticed how more technical HN posts often get this "turd in the punchbowl" type first comment. I can speculate that a certain popular site has gone down the toilet to the extent that they show up here and are intimidated by some of the contents.
- deleted 4y ago[deleted]
- celdon25 4y agoI probably could have guessed you were a Node developer even if you didn't say so.
- thunderbong 4y agoRails is not Ruby. You can just install Ruby and run any .rb file. The file can contain something as simple as puts "Hello World!" If you want to install a lightweight web framework, you can try Sinatra [0] or Roda [1] . [0]: http://sinatrarb.com/ http://sinatrarb.com/ [1]: http://roda.jeremyevans.net/ http://roda.jeremyevans.net/
- _odey 4y agoThis comment seems off topic and it's heavily down-voted but there is an element of truth to what this person is saying. Please hear me out. I've been through the process of installing Ruby on a Linux (Ubuntu 20.04) laptop I got for my new job. Here is how it went: 1. I obviously can't just `sudo apt install ruby` as the version used by projects differ, and also differ from the one in the repositories. This has been an issue since forever with ruby on Linux. 2. Tried installing rvm as this was the method I knew from a long time ago (before I started using docker for local development). The one in the repository could not install ruby properly and the one from rvm.io gave gpg errors. 3. Tried installing rbenv, again the one from repositories had problems when installing ruby versions. 4. Installed homebrew on Linux (yes you heard that right, homebrew, a mac tool, on Linux). 5. Finally managed to `brew install rbenv` and `rbenv install $RUBY_VERSION`. 6. Of course, the normal stuff like needing to install `libpq` and `libffi`, and other build packages, because `bundle install` would not finish successfully without them. Error messages for these are still cryptic, you figure out the issue if you read them carefully, but still a pain. So yes, it's not necessarily Rails's or Ruby's fault, but it is a struggle today just as it was back in the day. And I think this problem needs to be acknowledged and worked on by the ruby community. It's a shame since ruby itself brought the world a lot of wonderful tools and practices that I think improved developer experience (it certainly did for me) and seeing it being neglected like this is painful. P.S. Nowadays I do all my development work withing a docker-compose setup, I don't even need ruby installed on my laptop. But I think new joiners in the ruby community need a better on-boarding experience.
- arvinsim 4y agoI also could not setup an old Ruby on Rails project on my M1 Pro machine. Had to resort to Docker to be able to install and run it.
- nomilk 4y agoThis. I think docker could be the 'go to' standard for ruby/rails devs for the next decade. Will save so many system-level setup/config problems, and hence a lot of time. I wonder if there are any good arguments against docker for ruby/rails. Would be interested to hear them if there are. I haven't used docker for ruby/rails yet, but intend to very soon, and really look forward to it.
- CPLX 4y agoI’ve been ramping up learning rails over the past year. When I wanted to set up an environment on my laptop I googled “install rails M1 Mac” and found a guide and it worked first try. When I wanted to set it up on another machine I did the same. It also worked. Then I was pulling down a repo I had been working on and realized I had the wrong ruby version. I knew this because I had an error message that said something like can’t find this ruby version. So then I googled how do I change the active ruby version rails or something. I read the answers and changed the version then it all worked. I’ve been doing some version of digital development of something or other for a living since about 1997. Except for switching from trying to find the right page in a book to typing it into google it’s been basically the same process described above every time. Every year, every language. Not sure rails is special.
- Mikeb85 4y agoHonestly the way to go is to grab the source from ruby-lang.org and compile it. Too much weirdness when package managers install it. Edit - lol downvoted but it's true. Install from source and everything will work. It's also super easy.
- celdon25 4y agoThis is what I had to do to get it to work on Windows (with the dependencies for the project I was maintaining at the time)
- DanielKehoe 4y agoI'd like to hear what issues you had. I maintain a mac.install.guide for Ruby on Rails [0] and hearing about your problems might help me improve the guide for others. Email in my profile. [0] https://mac.install.guide/rubyonrails/index.html https://mac.install.guide/rubyonrails/index.html