Hacker News new | ask | show | jobs
by alskdj21 2555 days ago
As someone who's new to web dev, is there any incentives in going for Elixir than using those established languages(i.e. Node, Ruby)? Any book/sources recommendations?
2 comments

This is anecdotal but I have inadvertently created FAR fewer bugs in Elixir/Phoenix than I ever did in Ruby/Rails. A lot of that has to do with the immutability guarantees and the pattern-matching and the fact that everything is explicit without being wordy... everything in this language seems designed to make it easy to grok what the code is doing, and that means fewer bugs produced.
I used to work with rails before. While it is fun to build stuff with it, it comes with a set of bothersome headaches:

- too much magic

- slow and painful to scale

- too much metaprogramming

- no compilation, makes it easy to hide syntax errors

- concurrency is absent

- frameworks like rails are too bloated

All these are addressed on the elixir platform, and there are more pros:

- immutability

- mostly purely functional

- well defined modules with good documentation