Skip to content

"You should only have one top-level namespace and it should be the name of the application" #151

Open
@Qqwy

Description

@Qqwy

Recently, Eric Meadows-Jönsson noted to me that one of my Elixir libraries did not adhere to the following convention:

You should only have one top-level namespace and it should be the name of the application.

I had not heard this convention before, although I can certainly appreciate its worth (both greatly reducing the chance of libraries conflicting with each other because they happened to use the same names and making it more clear to the users of the library from what library a certain piece of code originates).

Needless to say, I have not adhered to this convention in the past in multiple places, resulting in libraries that I'll now release backwards-incompatible upgrades for.

In any case, I think that it might be good to add this rule to the style guide. (Unless, of course, there are people against it!)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions