🔤Elixir
Also known as Elixir Language, Elixir Programming
A language for apps that run many small jobs at once and must not stop.
Think of it like
It is like a beehive. Thousands of tiny bees work at once, and one bad bee does not stop the hive.
Example
A chat app written in Elixir keeps each user's connection in its own tiny process. One crash does not take down the rest.
Why it matters
Some systems must keep running through errors. Elixir is built around that from the start.
Definition
Example code
elixir
[1, 2, 3] |> Enum.map(&(&1 * 2)) |> IO.inspect() # [2, 4, 6]Common mistake
Key takeaways
- 1Tiny processes. Thousands run at once.
- 2Let it crash. Supervisors restart failures.
- 3Functional. Data does not change in place.