model view controller - When is MVC no longer applicable in large projects? -


After using some PHP frameworks as codeinitors and KOha for some small sites, I wonder if MVC It is still applicable for big projects and, if so, what practices do big sites do to prevent the use of caution in order to maintain clean clode? Does Amazon or Flickr code use MVC or some type of it? Is there a guide that has been given a certain problem, shows you how best to implement MVC for big projects?

- Tangent -

On an existing project using Kohana, I started what question should be the role of my model. Many times, a model can only tell a small part of the object that I am trying to make. I.e., requires an object for a user, so I removed my user from the user table using my Users_Model. But each user also has many items in their list, so I also have to use Users_Inventory_Model. But, in each inventory item, other tables are included along with it, and so on, until I feel that there is no need to reach many models to create a single user in my controller. Imagine doing this in different controllers and suddenly I find myself with messy and unnecessary code and very fat controllers.

It motivated me to think that maybe I should work in libraries, in this way, I can have a user library and it can load all the appropriate user data and update, delete, etc. Like most arguments can be run. Is this the development of most MVC projects? Libraries have the ability to interact mostly with the model, while the administrators call the libraries and prepare the data for ideas? Anyway, this is just a question that I have about MVC, which I can not find online. In fact, it is for big projects where all these MVP and MVC really shine. In order to deal with the complexity of the software, all software design patterns "are made" (in addition to the installation of general terminology) "made", are used properly, MVC will be very helpful for you in big projects.

Unlike small apps, which can be hacked with mouse-only approach, but there is a nightmare for support because there is no proper separation nor is they enough.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -