4 ms·
In Elixir you never have to write an iteration, no need to dance the "for-loop-with-counter" dance. Pattern matching makes it easy to bind variables and valida
by dudul 10y ago
In Elixir you never have to write an iteration, no need to dance the "for-loop-with-counter" dance.
Pattern matching makes it easy to bind variables and validate their values in one line (so no needs for if statement).
In Elixir, you usually don't catch exceptions, you let it crash. So all the code to handle failures/errors doesn't exist, it is handled by OTP.
No need to write any communication layer since it's built-in OTP that implements location transparency.
These are kind of the low hanging fruits on top of my head. I'll point out that fewer lines of code doesn't automatically translate to increased productivity. Also, transitioning to a brand new stack is not always justifiable/possible even with the promise of significant increased in productivity, it's really not that simple.