摘要:这两天在CSDN的文档区翻到了一篇翻译的文章,《在ASP.NET中实现Model-View-Controller模式》,这篇文章是摘自鼎鼎大名的ESP,我想.NET程序员很少没有看过这本书的,说它是.NET程序员的Must-Read毫不为过(另一篇Must-Read是AppArc,即Application Architecture for .NET: Designing Applications and Services)。回到这篇文章上来,原文在这里,Implementing Model-View-Controller in ASP.NET。我当初在看这部分的时候就相当疑惑,这里所描述的实现能否准确的称为MVC?先看看大家熟悉得不能再熟悉的MVC的图示:再看看ESP中对MVC模式的描述(如果感兴趣,可以看看最“正宗”的SmallTalk中MVC模式的描述,点这里):It is important to note that both the view and the controller depend on the model. However, the model depends on neither the view nor the controller. This is one the key benefits of the separation. This separation allows the model to be built and tested independent of the visual presentation. The separation between view and controller is secondary in many rich-client applications, and, in fact, many user interface frameworks implement the roles as one object. In Web applications, on the other hand, the separation between view (the browser) and......[
阅读全文]