mvc简介的英文文章

来源:百度知道 编辑:UC知道 时间:2024/05/27 17:29:11

If you read up on the Model-View-Controller (MVC) design pattern, you might find yourself a bit confused. In fact, I found myself confused by it when I first started reading about it, because there are plenty of resources out there to describe it, but so many of them seem to have different flavors of MVC and different diagrams explaining how data flows that it’s no wonder that programmers are bewildered about it. Fully believing that I don’t want perfect to be the enemy of the good, I’ll show a few practical implementation details of one way of looking at MVC, primarily focused on the Web needs.

The primary thing you need to know about MVC is how logic can be distributed:

Model
Business logic goes here
View
Presentation logic goes here
Controller
Application logic goes here
Just like HTML is moving to a separation of structure (semantic XHTML) and presentation (CSS), so should your applications be geared to understanding the