dci-python-backend-assignments / tdd-class-social

6 stars 4 forks source link

Restructure the User file into two separate files (controllers and routes) #27

Open petertheprofessional opened 2 years ago

petertheprofessional commented 2 years ago

To follow organizational patterns that we have learned up to this point (NVC)

mathiasbrito-dci commented 2 years ago

What are your suggestions? To have subpackges for controller, routes, and models? Could the models be in one file, or do you think we need to split them also?

petertheprofessional commented 2 years ago

I am only suggesting only splitting the User file into two separate files because the controller and router are doing two separate files. We can break down into further files if we wish but that can be further debated

mathiasbrito-dci commented 2 years ago

We need to understand the advantages of separating the files, I'm in favor of it, but the current style is also a useful one. Splitting files can avoid conflicts if we have different developers working on routes, models, and controllers of the same object/concept of the system. But a system with many models can end up with a lot of files (this is the con). We could think this for the next sprint maybe since people already started working with this structure... what do you think?