oliverandrich

oliverandrich

Naming your phoenix application/module

Hi, I am currently learning Phoenix and Elixir quiet intensively by building some smaller applications. To ease my life when creating a new project with my necessary default dependencies (Tailwind, various small libs, and so on), I want to rely on a tool like degit for creating a fleshed out project.

Now to my rookie question. Is there anything wrong to always name the modules App and AppWeb in my projects? I don’t see any problems, but maybe I miss something or missed advice.

Any advice is highly appreciated.

Most Liked

NobbZ

NobbZ

If all your applications share the same module name then they can’t live within the same instance of the VM. If this is a problem for you, you need to know on your own.

Anyway, personally I prefer to have each app to live in their own “module namespace” as it is easier for me to distinguish projects if their toplevel name differs.

derek-zhou

derek-zhou

There is nothing wrong, however, you don’t name your children as Thing1/Thing2, so why don’t you spend a couple of minutes to come up with a meaningful name for your pet project?

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New

We're in Beta

About us Mission Statement