官术网_书友最值得收藏!

The MVC design pattern

One of the most popular application design patterns is Model-View-Controller (MVC). This defines three layers: the Model layer is in charge of data queries and persistence, such as loading and storing data to a database; the View layer is in charge of the User Interface (UI) and the Input/Output (I/O); and the Controller layer is in charge of business logic, which lies in between the View and the Model:

There are some frameworks that help developers to make MVC easier, such as Struts (https://struts.apache.org/), SpringMVC (https://projects.spring.io/spring-framework/), Ruby on Rails (http://rubyonrails.org/), and Django (https://www.djangoproject.com/). MVC is one of the most successful software design pattern, and is used for the foundation of modern web applications and services.

MVC defines a borderline between every layer, which allows several developers to jointly develop the same application. However, it also causes some negative side effects. The size of the source code within the application keeps getting bigger. This is because the database code (the Model), the presentation code (the View), and the business logic (the Controller) are all within the same VCS repository. This eventually has an impact on the software development cycle. This type of application is called a monolithic application. It contains a lot of code that builds a giant EXE or war program.

主站蜘蛛池模板: 淮南市| 青川县| 锡林浩特市| 河池市| 柘荣县| 镇江市| 浪卡子县| 湖南省| 左云县| 油尖旺区| 西和县| 象州县| 峨边| 临朐县| 东城区| 大田县| 尉犁县| 新昌县| 宜章县| 高碑店市| 义乌市| 靖西县| 葵青区| 黑山县| 麻城市| 富宁县| 玉林市| 田阳县| 淳安县| 广州市| 安阳市| 通许县| 沂水县| 竹溪县| 连江县| 诏安县| 长春市| 绥棱县| 武安市| 晋城| 永昌县|