-
Notifications
You must be signed in to change notification settings - Fork 5
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
Refactor large files? #15
Comments
I must confess that I have no experience with Rust but other languages. I'd like to learn while contributing with your project in this. That said, I think a better approach to the project structure is:
Util, lib and noise, imho, should be renamed to more related names. |
Before addressing your suggested structure, I will explain the project structure and Rust packaging conventions in a nutshell. The AdbOrc project currently has two separate entities -- a binary (the actual
The Rust package manager, Cargo, refers to each of these two entities as So, if we were to follow Cargo conventions and defaults (which I think we should) the entrypoints (main.rs and lib.rs) should have the same name. I like the idea of having directories for each submodules and the code of each submodule residing inside their respective directories. The problem with that is, if we were to have market.rs code inside We can (and probably should) rename the Apart from the large files, the thing I am not a huge fan of about the current structure -- there is no clear separation between what is part of binary and what is part of library. |
I appreciate your explanations :D. Maybe the lib and cli should be different packages/repos. lib could be a dependency for cli, gui tool and any other project. |
Hey @mobi-nex, I'm working on refactor of CLI module but I didn't have much time these days. |
@mobi-nex this is the branch where i'm working on: https://github.com/fjborquez/adborc/tree/refactor |
As highlighted by @fjborquez in #6 there are a lot of large files in the project currently that can be more easily manageable/readable/navigable if they were smaller. Also, unit testing would be easier. Maybe a refactor of some of these files into smaller files should be considered. This issue is created to track discussions related to above referenced refactor.
The text was updated successfully, but these errors were encountered: