Introduction to MVC and OOP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.