[REPO] Code organization/refactoring #5
AdsanTheGreat
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
|
Yes sure... this would help so much for the continuity of the project. I've built some Telegram bots in the past and your suggestion is pretty similar to that structure, which is really nice. Do you have Discord? Maybe we could continue there? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the crate's structure is very monolithic - only themes are extracted from main, and main is over 2300 lines long. It's hard to get a grasp of the project right now, and it would also get exponentially harder to work on it as it grows. I think for maintainability, it should be split into separate files - rendering does not have to be in the same place as input handling (which should probably be extracted from the main function), cli, or any utility functions that might appear along the way.
While I could propose such a layout in a PR, I think such refactorings should be left to @hanebox as the owner and original author.
Beta Was this translation helpful? Give feedback.
All reactions