-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Improve module naming and directory structure #163
Comments
There is a link to blog where a guy describes his opinion about files and modules naming conventions. |
Regarding the Hash module, I am thinking of a Utilities subnamespace. Having the core three pillars (Downloader, Operator, Parser) separated from auxiliary modules seems elegant, but an overly complex structure brings its issues too. It would look like this:
Seeing it live, I find a flat structure less confusing: Onigumo.Kernel.Downloader, Onigumo.Kernel.Operator, Onigumo.Kernel.Parser, Onigumo.Kernel.Hash. We can revisit this when more modules are in place, but even with dozens of modules, a flat structure is still clear enough. What do you think, @nappex? |
Thanks for the blog link! It is a good reference, and I find the thoughts on naming the main file for a module with submodules inspiring! |
All things Onigumo need to be inside the Onigumo namespace to avoid name clashes. The Mix project itself is Onigumo.MixProject. No submodules should pollute the global namespace. That results in the following steps:
The text was updated successfully, but these errors were encountered: