Top "Elixir" questions

Elixir is an open-source, dynamic, compiled, general purpose functional programming language.

How do I run a beam file compiled by Elixir or Erlang?

I have installed Erlang/OTP and Elixir, and compiled the HelloWorld program into a BEAM using the command: elixirc test.…

erlang elixir
Why I got #Ecto.Association.NotLoaded?

I have teams and each team has users, so there is a join table to link users to teams as …

elixir phoenix-framework ecto
Count the Number of Entries in an Ecto Repository

Whats the quickest way to see the number of entries in my database? I'd like to see the number of …

elixir phoenix-framework ecto
Are Elixir variables really immutable?

In Dave Thomas's book Programming Elixir he states "Elixir enforces immutable data" and goes on to say: In Elixir, once …

immutability elixir
Where does Elixir/erlang fit into the microservices approach?

Lately I've been doing some experiments with docker compose in order to deploy multiple collaborating microservices. I can see the …

architecture erlang docker elixir microservices
How can I make Mix run only specific tests from my suite of tests?

How can I make Mix run only specific tests from my suite of tests? When running mix test all tests …

elixir
Elixir: How to get last n items in a list?

I have a list: a = [1,2,4,5,6,7,8,9,9,88,88] In Python, it's simple to get last n items: a[-n:] Whats equivalent in Elixir?

elixir
Default datetime with Ecto & Elixir

I've just started working Elixir & Phoenix today, i am trying to add Ecto as a mapper, but i'm having …

postgresql elixir ecto
How do you create and load modules dynamically at runtime in Elixir, or Erlang?

The basic scenario is this: I need to load text from a database, and then turn that text into an …

dynamic module erlang elixir
How to get a variable value from Environment files in Phoenix?

I'm deploying my first Phoenix Application, and I've specified the values of a variable in my Environment Files (dev.exs …

elixir phoenix-framework