The Big Picture
On the surface, Ruby and Elixir code appear very similar to each other, but make no mistake, they are quite different. It’s best to acknowledge their visual similarities, but don’t dwell on it or get frustrated that things work differently between them.
The most foundational difference between the languages is that Ruby is object-oriented while Elixir is function-oriented. Objects combine data and methods (functions) into a single instance, and objects interact with each other to form your application. Elixir has no objects, so functions must be provided the data that they operate on. You’ll see Elixir patterns and concepts that feel a bit like objects, but don’t be tricked—Elixir doesn’t have objects.
Elixir has fewer features ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access