I currently have a project and its size is increasing every day. This is the container for api that I provide.
Currently, I have fundamentally all my classes and all interfaces.
I shared my Enums, Contants, etc. into my own folders, but I donβt inherit the folder as part of the namespace, they are just containers to keep them in order.
I was wondering if anyone has any experience here?
Should I also share my interfaces in my own folder (without inheriting the folder as part of the namespace)
Should I also separate classes?
I also have classes that are children of other classes. Those. a class implements it as a property. Therefore, it will never be created outside. So I have to separate them even further and put (for example) a folder called "Products", and inside this folder I will have a class Product, and then my class item and other classes specific to Product?
Again, using a folder as a means of splitting and not inheriting the folder name as part of the namespace.
I would like to hear some feedback.
thanks
source share