3 ms·
you thinking too easy, as a project grows you actually need to run seperate and now you have a problem, either you group per component (something like addressha
by merb 11y ago
you thinking too easy, as a project grows you actually need to run seperate and now you have a problem, either you group per component (something like addresshandler) so that you have
component/Controller
component/Model
component/View
Or you group by enity, something like customer_management, where you put all your customer related controllers:
customer_management/View1
customer_management/View2
customer_management/View3
customer_management/Controller1
customer_management/Controller2
customer_management/Controller3
now you introduce subfolders:
customer_management/Controller/Controller1
customer_management/Controller/Controller2
customer_management/Controller/Controller3
customer_management/Model/Model1
customer_management/Model/Model2
customer_management/Model/Model3
Both have their ups and downs and still are related to MVC.
However you've still outgrown MVC a little bit since now your so big that actually some things doesn't make sense, so you add a datalayer on top of your models or a service layer, etc. things get really messy now, when you don't change.
That's why programming is hard. Correctly or logical separation of code changes as your application evolves but people don't change it so they blame the separation concept.