Where would you place app wide methods to be called easily form within iex console?

Your suggestions :slight_smile: thank you.

There are no methods in elixir, only functions.

Iā€™d probably put them in appropriate modules according to the apps structure.

For those I need easily accessible for convenience (which I basically never do), I might defdelegate them from a shell helper module, which I then import from a .iex.exs.


definitely in .iex.exs but you should create it inside your project(app) root directory.

If you have commonly invoked function in SomeApp.Context.User then you can alias that in your .iex.exs file like alias SomeApp.Context.User

So the next time you open your iex you can call User.get_name


This is exactly what I need. Thank you.