Reasons not to use MVC architecture for web application

后端 未结 12 1719
野的像风
野的像风 2021-02-07 12:01

In the past I have primarily built all my web applications using an N-tier architecture, implementing the BLL and DAL layers. Recently, I have started doing some RoR development

相关标签:
12条回答
  • 2021-02-07 12:19

    Personally, I would rate it based on the complexity of the target application. MVC (or more structured approaches in general) lend themselves very well to large scale applications where design consistency and segregation of code is a benefit outweighing the cost of supporting the design.

    If its a small site, or very few pages/controls, I would avoid sticking to strict design patterns. But that is just my preference.

    As one poster said, you also have to consider the state of any existing applications, and your development team skills / experience.

    0 讨论(0)
  • 2021-02-07 12:20

    For me? the only reason I'd not use MVC is because the application I'm working on was already started in web forms. I'm not a big proponent of scrap/rewrite, but anything new I do is in MVC.

    0 讨论(0)
  • 2021-02-07 12:26

    We have already use the MVC for the Windows application,Now we need to convert that thing in the Web application we don't have any problem in any thing. We are using the Web service and every Business Logic is in the Web service. So you can use the MVC in the web application. M-Model(Functions and Procedure which communicate with Business logic) V-View(Design) C-Controller(Form Logic) so that is no connection in the DAL,BLL and in MVC. you can define your Business logic and use in it any where in the MVC. That's my point of view MVC is very useful for Re-usability i prefer if your application is big then you must use MVC.

    0 讨论(0)
  • 2021-02-07 12:26

    You can refer to following

    http://blogs.msdn.com/b/webtopics/archive/2009/09/01/asp-net-mvc-what-is-it-and-should-i-use-it.aspx

    and http://msdn.microsoft.com/en-us/magazine/dd942833.aspx#id0080017 refer "Undisputable Facts".

    0 讨论(0)
  • I don't think your options are mutually exclusive. You could perfectly use MVC while using BLL/DAL for your model logic.

    You can implement the M part of MVC as you prefer, there is no restriction about that. Using BLL and DAL would be a valid option.

    0 讨论(0)
  • 2021-02-07 12:29

    I wouldn't use MVC pattern only in the case when I have an existing desktop application built with MVP and I have to convert it to a web environment. That's because I already have written logic for presenter.
    In any other case I would use MVC.

    0 讨论(0)
提交回复
热议问题