Reasons not to use MVC architecture for web application

后端 未结 12 1721
野的像风
野的像风 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:07

    For certain pages, MVC can be a little overkill:

    • splash pages
    • landing pages
    • marketing pages that are going to be thrown away after one use
    • one-off's

    It's easy to get wrapped up creating a beautiful MVC architecture, when a small page, concisely written, can be OK on these situations.

    MVC may also be impractical if you're in time trouble, and you need something out REALLY fast. Like your marketing team is out at a conference, they're having trouble, and needs something to show in their booth this second before they lose their biggest customer.

提交回复
热议问题