When deciding what program language to use it comes down to this.
Elixir vs ruby syntax.
Iex is elixir s interactive shell.
Functional actor concurrency macros.
Yet under the hood elixir is all about erlang.
A dynamic interpreted open source programming language with a focus on simplicity and productivity.
If you are like me and prefer to have a console session open.
Ruby vs elixir it s a bit of an unfair comparison as elixir though it has a kinship with ruby sits on top of an actual platform otp with a vm beam which is profoundly different from ruby s.
Elixir is a functional language whereas ruby is naturally object oriented although it also supports functional programming.
It takes time for most developers to make the transition to functional programming.
Run it within your elixir project using the command.
If you re building a simple app you need to get to market quickly and you already know ruby go with ruby.
Elixir is heavily inspired by ruby s syntax which many people love.
The familiar syntax has definitely helped the language win the hearts of the broader developer community.
Despite sharing similar syntax by ruby and elixir the latter is a functional programming language which makes it completely different from object oriented ruby.
The following is a guide to help compare elixir and ruby syntax and implementations.
Wrapping your head around the difference in approach to programming in this way can be an obstacle.
It is designed around the concept that a process will crash and worst case scenario you ll just restart that process and the life of your distributed.
I say almost because as much as you want it to be elixir is not ruby.
Without as steep a learning curve of prolog based syntax.
Elixir and ruby comparison.
Elixir leverages the erlang vm known for running low latency distributed and fault tolerant systems while also being successfully used in web development and the embedded software domain.
Ruby gives us the interactive ruby shell irb or irb.
Iex s mix the s tells iex to execute the mixfile mix exs which handles configuring the project.
Syntax is similar to ruby making it familiar for people used to oop all of the benefits of erlang.
Unlike irb you will have to hit ctrl c twice to exit instead of ctrl d.
Slack bot tutorial how to develop a slack bot with elixir and phoenix.