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 Responses

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

owaisqayum
I have a sample string sentence = "Hello, world ... 123 *** ^%&*())^% %%:>" From this string, I want to only keep the integers, ...
New
Fl4m3Ph03n1x
Background A few days ago I was listening to The future of Elixir from Elixir Talks, with Dave Thomas (@pragdave ) and Brian Mitchell. I...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
ricklove
I was just introduced to Elixir and Phoenix. I was told about the 2 million websocket test that was done 2 years ago. From my research, t...
New
Crowdhailer
I’ve been hearing much about the new formatter and it’s something I have been keen to try. I find examples buy far the most illuminating...
248 19204 150
New
CharlesO
Erlang :list.nth simple, but 1 - based nth(1, [H|_]) -> H; nth(N, [_|T]) when N > 1 -> nth(N - 1, T). Elixir Enum.at … coo...
New
IVR
Hi all, I’ve seen a number of related threads in the past, but I’d still be very curious to hear an up-to-date opinion on this topic. I...
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
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
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
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

We're in Beta

About us Mission Statement