News for hackers. Stuff that matters.
Re:Elixir School by mabufo on Wednesday March 07, 2018 @04:35PM (#16540130)
Can anyone actually explain to me the _exact_ differences between Elixir and Erlang?

What does Elixir offer me that Erlang does not on a LANGUAGE level?

Re:Elixir School by Jedi72 on Wednesday March 07, 2018 @05:40PM (#16540659)
The ecosystem is miles ahead. I started with Erlang and I've never thought the syntax of Elixir was any better, but the developer experience of getting a basic web-app up and running using Phoenix compared to say cowboy or yaws is 10x better
Re:Elixir School by di4na on Thursday March 08, 2018 @02:02AM (#16542838)
In no particular order:

* Proper binary string.

* AST level hygienic lisp like macros.

* Doctests.

* In general easy documentation.

* Tooling in general. Erlang had no reliable package manager before piggybacking the elixir one has an example.

* Protocols for polymorphism.

* You lose nothing from erlang because you can call all of erlang and its library really easily.

* Better errors message.

The better tooling is large. Elixir ship with a great unit testing library, a build tool that works, a package manager that works really well, a way to build documentation etc etc.

The ecosystem is also easier to use imho. Ecto is miles away of most database wrappers and Plug and Phoenix are far more easier to use than erlamg equivalent imho.

Re:Elixir School by Cieplak on Thursday March 08, 2018 @03:47AM (#16543195)
It’s very easy to consolidate multiple erlang modules (files) in a single elixir file. Simple to translate erlang to elixir.

Functional programming is a big win, but don’t forget the virtues of static type systems and compile-time code verification.

https://github.com/cieplak/examples/tree/master/elixir

Re:Elixir School by napsterbr on Wednesday March 07, 2018 @09:16PM (#16541740)
Macros are also another big plus for elixir IMHO (of course you have alternatives, like LFE).

Some may argue that macros should be avoided, but that's a different subject.

Re:Elixir School by cechmaster on Wednesday March 07, 2018 @05:13PM (#16540458)
readability