Suggestions about project structure #964
Replies: 1 comment
-
I agree that grouping the main categories into a few subcategories would be helpful. However, my biggest issue with navigating the codebase is that there are 29 cases of The two worst cases are @love-linger - This makes for some confusion when I'm looking in one of these duplicate-named files/classes. I have a harder time keeping track of the context when it's not obvious from the file/class name itself and must be deduced from its parent-folder/base-class... It also makes searching harder, since there will be many "irrelevant" hits when multiple classes share the same name. Here's the full list of duplicate filenames (along with their "parent" category-folders) :
I would suggest renaming each relevant file and class (even the ones which are not duplicated, where applicable) with a categorizing suffix like (This would be a big refactoring effort to take on, and would put a rebase-conflict burden on contributors, but it would improve the codebase readability and maintainability once completed.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using SourceGit for a few months and really enjoying it. I recently forked the project and started poking around a bit, but I found it difficult to find my way around the codebase.
For
Commands
,Viewmodels
andViews
, I think it would be easier if the files were organized in a few more subfolders, as some of these folders contain 90+ files.For the
.axaml
files, I think it would be easier to read and maintain if more parts were implemented as custom controls. It can be hard to tell which part of an.axaml
file renders which portions of the ui. I know that in WPF implementing such subcontrols should be implemented as custom controls rather than UserControl, because UserControls have too many restrictions. I don't know if this applies to Avalonia as well.Beta Was this translation helpful? Give feedback.
All reactions