I think the main thing is to make sure you don’t lose the ability to search (grep) for the full module name and have all the places where it is used to show up:
defmodule My.Module.Name do
end
defmodule My.OtherModule.Name do
end
defmodule Some.Other do
# This is a bad alias because if I search for `My.Module.Name` this wont show up
alias My.Module
# This is fine, but not always neccessary - you can use the fully qualified name
alias My.Module.Other
# In the case of conflicting final names, this is preferred, because I can still search
# for `My.OtherModule.Name` and have this show up.
alias My.OtherModule.Name, as: OtherModuleName
end


















