Renaming the root folder from `lib` to `app` -- is this a bad convention?

dopatraman
Thu, 17 Sep 2020 22:22:38 +0000
Chat / Discussions

The standard project structure is something like this:

~/
  lib/
    app/
      data/
      service/
    web/
       controllers/
       endpoint.ex
    application.ex
  test/

I’d like to rename the top directory to app instead of lib – to me it just makes sense that the top level folder is the application, and lib (library modules) are underneath it.

The Elixir community seems opinionated about this, so I wanted to start a discussion about it. What are some arguments against doing this?

18 posts - 10 participants