Nicd's Random Notes

So I have a blog and I sometimes post random notes on it, usually not interesting to this forum. But this time I posted about Elixir configuration because it seems to be a common topic and common question: https://blog.nytsoi.net/2020/05/05/elixir-time-for-configuration

So let me know if you think anything should be reworded. I aimed for a simplified explanation that would make sense for new users. Also if there are links that I should add to the “Other resources” section, please tell. It’s better if we can link these learning resources together.

PS.: That blog is running on Elixir.

7 Likes

I have updated the post now that 1.11 was released to mention the new config/runtime.exs and reword some parts: https://blog.nytsoi.net/2020/05/05/elixir-time-for-configuration

Still eager to hear any feedback.

4 Likes

I wrote a new post about how I use config/runtime.exs to configure my projects: Simple Configuration Setup for Elixir Projects (v1.11+) – Random Notes

Basically:

  • config/config.exs for compile time configuration (mostly)
  • config/runtime.exs for all other configuration
  • .env file for handy configuration value tweaking in development
  • A config helpers module to cast environment variables to the correct datatypes
4 Likes

Long time no Elixir posts. Even the blog is now recreated with a new blog engine written in Gleam.

This time I wrote about how to use Gleam packages in Elixir. Might be interesting to readers here as there begin to be quite a few Gleam packages and many of them could be useful from Elixir too.

6 Likes