MVC and OOP are both programming modes. CurrentProgramThis is the most popular development method.
MVC is the abbreviation of model, view, and control.CodeDifferent implementation functions are divided into three different layers. Such layering is conducive to the cooperation between the program and the front-end, and the maintenance of code later. The MVC framework can constrain the programming style of programmers, develop good development habits, and compile outstanding works. At the same time, you cannot simply write a program using the MVC concept. You must consider performance, convenience, and other factors based on the actual development conditions.
Oop adopts object-oriented programming. This mode uses encapsulation, inheritance, and other methods to develop projects, and presents programs in a modular form. the reuse of added code makes the program structure clear and convenient for program maintenance. However, not only the object-oriented method can be used to compile excellent works, ecshop and discuz are not completely object-oriented development, and even their basic programs are process-oriented, but it does not affect them to become the best products in their respective fields. Only by using the flexible programming mode and using your own methods can you develop good works.
As the official website of a brave Software Website Construction studio, this site is a program written using MVC and OOP. Its architecture is compiled by the station according to its own understanding of programming. In the future, the source code of this site will be open-source, and the program architecture of this website will be introduced one after another. I hope to help my new friends and get more comments to discuss with each other! Introduction to MVC and OOP