DEV Community

Cover image for Why and How I Replaced RVM with RBENV

Why and How I Replaced RVM with RBENV

Kurt Bauer on August 30, 2019

The Gist My morning started out like most people's, as I sat down at my computer while eating a bacon-egg-and-cheese on an everything ba...
Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

rbenv is great. Have you considered asdf? I recently swapped to asdf because it works almost identically to rbenv, but allows me to manage all of the languages I like to play with!

Collapse
 
krtb profile image
Kurt Bauer • Edited

omg another coding rabbit hole! And I just installed rbenv this week 😂😭

But it does sound really cool, so it's a replacement for rbenv right, it's doesn't wrap around rbenv? Is this the repo you were talking about?

asdf-ruby

Collapse
 
jacobherrington profile image
Jacob Herrington (he/him)

github.com/asdf-vm/asdf is the parent repo!

It follows the same pattern as rbenv, but allows you to manage any language by using the extensions like asdf-ruby.

Collapse
 
ssimontis profile image
Scott Simontis

Thank you for sharing your misadventures, I'm proud of you for fighting through it and getting everything to work! I have been using rbenv primarily, and I sometimes run into odd behavior. I can't think of an example off the top of my head, but there was always a plugin or a resolved issue that pointed me towards the right direction.

Next on my agenda is automating rbenv deployment with Chef to make life even easier :)

Collapse
 
krtb profile image
Kurt Bauer

Haha, I actually just read how you just were getting the hang of Chef. I've love to read a post on that from you, I feel like a way devs can help out other devs it showing them where the blind spots are.

Collapse
 
ssimontis profile image
Scott Simontis

My way of learning is taking an insane amount of notes, so I would love to do a series. I've been delaying a lot of writing because I keep telling myself to hold off until I make my own blogging site. I never get around to finishing it and have totally forgotten what still needs to be done on my Hugo site, so I think I might just say screw it and set my ego aside and use Wordpress or something else that just works so I can focus on writing instead of trying to prove to the world that I can write the most unnecessarily complex static site.

Thread Thread
 
krtb profile image
Kurt Bauer

Oh I know what you mean, I got my own personal site up with Gatsby.js to have something worth showing too. But I also had to scrap my idea of integrating my blog posts for the time being. I was actually looking at the Dev.to API docs and they seem super easy to understand. Although I'm currently working on getting my rails/react app on Heroku and reading into how to get my PostgreSQL DB on there. I know how you feel about the anxiety of needing to circle back. Balancing life is hard enough, and then balancing all the moving parts in multiple leaning demos, projects, and work...well, that's why I started looking into Zen Buddhism 🧘🏽‍♂️. How do you keep your notes organized!? I tried that with OneNote but lost track of things. I've actually started this list approach were I dump all my tasks in one list and pick the top 3 I need to move my career forward in another, also have an ideas and current projects list.

Forbes: Five Best To-Do List Tips

Wunderlist has been an awesome app and this article helped me start this new list path.

I like the minimalist approach to tasks, having to many things to juggle gets chaotic to say the least. Almost like kanban boards.

Thread Thread
 
ssimontis profile image
Scott Simontis • Edited

I discovered an app called InkDrop. It's like 5 bucks a month or something, but I really like the way it organizes notebooks and subnotebooks. Here's what it looks like below. It has a pretty solid Markdown parser and a great plugin system, so one of these days I would love to add support for Emacs ORG mode or asciidoctor markup.

They naturally get out of order, sometimes I will take an hour to consolidate stuff and clean up. Before this I was using Emacs org mode, with I thought was the pariah, but I ended up managing to break my configuration once a week at least or baffled trying to perform a basic task and I realized I was spending more time getting dismissed by Lisp experts and bug reports which were never going to get fixed and I gave up.

I really want something that lets me add code snippets that are executable, like Babel in org mode. Tidleywiki looks cool but I can't figure out how to turn it into something remotely useful. I am playing around with MedleyText right now too.

I got really excited about Notion and thought it would solve all my PIM needs, but I was really disappointed. I'm probably not their target audience, a super power user who wants total control over things. I have told them numerous times that if they want to open source the app I would gladly donate hours to perfect it into my vision, but that isn't going to happen. It does everything you could imagine at like 70% effectiveness. I just got frustrated after a while, especially with the lack of a Linux client for an Electron app.

Mac has some cool options. I'd love to try Bear and Quiver, but my MacBook Pro is from 2012 and it's not going to live forever. I don't want to buy a program for $45, get my data locked in, and then have my Mac die and that be the end of that because I can't afford a new one...I blew all my money on a homelab instead!

As you can see, I have put a lot of thought into this. I've thought about making my own tool, but it's pretty low on the list. Inkdrop is definitely the most elegant solution in my opinion.

Img Inkdrop maybe?

Collapse
 
amalmostthere profile image
Abhi Mahabalshetti

Great post! Really appreciate the detailed steps when you ran into walls.

Lot of devs around me use rbenv and I am still on rvm. I always wondered was it really worth the effort to switch from one to another and spend painstaking hours if something goes wrong in the uninstall/install process. You did bring up a good point about RVMs lack of changelog, but how often does one need to update RVM? Most of the times, I install it once and don't look back for months or even years. Am I wrong in not updating it frequently?

Also, as a personal choice, replace bacon on the everything bagel with chorizo. Mind == blown! 😉

Collapse
 
krtb profile image
Kurt Bauer

Yeah, the person that pointed out the changelog issue was relating it to a production environment I think. I think you posit a good question, I try not to update packages in a project I've let go by the wayside but I think if you're looking for security patches or improvements on the codebase you'd want to update frequently. And one thing I've learned coding is no one is ever truly wrong, "first make it work, then fix it" is what an instructor of mine would always say when we were running through code challenges. So you haven't had any issues not updating for years at a time?

Also I moved up to New York from Florida and saw people asking for kethup on their BE&C too, that really made me scratch my head. But it's also pretty good, I actually had one this morning and asked for extra ketchup haha. I love trying out new foods, so I'm gonna get that chorizo one next week! Thanks for the tip (:

Collapse
 
amalmostthere profile image
Abhi Mahabalshetti • Edited

Security patches are probably the only reason I might even consider updating my current RVM setup. Apart from that, no issues.

#chorizoforlife

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

Here's my number one reason with sticking with RVM.

Native extensions.