Photo by Kalen Emsley on Unsplash

I find a lot of times with Elixir that I’m torn between using a library to do something and just rolling my own solution. Often times, the language of Elixir itself and the simplicity of the Phoenix framework lends itself well to just implementing your own solution rather than relying on a 3rd party solution. This is a departure from a not too distant past when working in Ruby, where it was almost a knee-jerk reaction to reach for a gem to do anything and everything. You need attachments? Use paperclip. Authorization? Use cancancan. Authentication? Use devise.

Sometimes, in Elixir…

Photo by Steve Johnson on Unsplash

Lately, I’ve been using the asdf as a tool for managing runtime dependencies. It’s a single CLI that can be used for installing and managing the versions of various runtimes. It’s super useful when you are working on multiple projects that have different version dependencies. It’s similar to `rbenv` in Rubyland, except that its a single CLI for multiple runtimes. I use it for everything from Ruby to Elixir to Node.js to Python and even Yarn.

I’m not going to go into detail on how to install or use asdf. They have great docs. But briefly, you can use asdf

Cameron Carlyle

Developer - Climber

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store