AstonJ

AstonJ

Why Elixir?

It’s been a couple of years since we’ve had a thread like this, so here’s the 2018 edition :blush:

  • Why are you using (or loving!) Elixir in 2018?
  • Which resources do you recommend that do a good job of highlighting the benefits of Elixir?

Most Liked

AstonJ

AstonJ

I’ll start with something that is fresh in my mind - the opening chapter (and preface) to Programming Phoenix :heart_eyes:

It made the hairs on the back of my neck stand up!

You can read both the preface and the introductory chapter for free!

Here are some of the topics it covers:

  • Rails Developers Seeking Solutions
  • Dynamic Programmers Looking for a Mature Environment
  • Java Developers Seeking More
  • Erlang Developers Doing Integrated Web Development
  • Heat Seekers

And…

  • Speed
  • Concurrency
  • Beauty
  • Simple Abstractions
  • Effortlessly Extensible
  • Interactive
  • Scaling by Forgetting
  • Processes and Channels
  • Reliable

Obviously these are with Phoenix in mind - but then, Phoenix itself is the perfect tech to showcase the draw and power of Elixir :003:

If you’ve not read these chapters you are truly missing out!

Read them for free here:

10
Post #2
dwahyudi

dwahyudi

Why are you using (or loving!) Elixir in 2018?

  • Power of Erlang (functional, BEAM, OTP).
  • Joy of Ruby (friendly syntax, Phoenix framework).
  • Pipes (Believe me or not, Elixir helps me write better Ruby code as well, as ‘transforming data’ really makes me think in better intent to separate codes into more approriate subroutines, I no longer writes tons of codes in a single subroutine in the first try, Rubocop and Credo make more sense to me now).
  • Optional typespecs.
  • Developing Phoenix Framework app is crazy fast, tests run like F1 racing cars. If you code Rails before, you know this is a game-changer.
  • Not specific to Elixir, but FallbackController in Phoenix is really nice to have.

Which resources do you recommend that do a good job of highlighting the benefits of Elixir?

Every videos from Elixirconf.

Qqwy

Qqwy

TypeCheck Core Team

The main reason for me to love Elixir (and use it in Production!), is that Elixir is built with developers in mind:

  • In Elixir, the way to maintainable code usually coincides with the path of least resistance. (in many other languages, the path of least resistance would result in duct-tape solutions everywhere).
  • Elixir and most of its libraries have top-notch documentation.
  • Elixir has one of the best testing-stories out there.
  • Did I mention that hot-code-reloading is a lot of fun? ^.^

And secondarily, the ability to reason about concurrency and distributed systems by using the BEAM’s implementation of the Actor Model and supervision trees means that:

  • The parts of the system that depend on one-other and have to execute sequentially are made explicit.
  • The parts of the system that cannot function without one-other are made explicit.
  • Failure-handling is set up, such that the system is able to restore to a prior consistent state, and able to provide partial functionality until the system is repaired.

Where Next?

Popular in Discussions Top

jswny
I would like to better understand what the advantages/disadvantages of umbrella applications are compared to structuring your app as as s...
New
blackode
Elixir Upgrading is so Simple in Ubuntu and It worked for me Ubuntu 16.04 git clone https://github.com/elixir-lang/elixir.git cd elixir...
New
mikl
I wanted to capitalize a string, and tried using String.capitalize(). That generally works well, until you try to capitalize a word like...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New
AstonJ
Are there any Elixir or Erlang libraries that help with this? I’ve been thinking how streaming services like twitch have exploded recentl...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New
axelson
Decided against including more info in the title, but the gist is that Plataformatec sponsored projects will continue with the assets bei...
New
paulanthonywilson
I like Umbrella projects and pretty much always use them for personal Elixir stuff, especially Nerves things. But I don’t think this is ...
New

Other popular topics Top

siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31194 112
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31307 143
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement