使用MVC框架的优点是什么? Drupal构建一个大型网站? [英] What are the advantages of using an MVC framework over e.g. Drupal to build a large website?

查看:267
本文介绍了使用MVC框架的优点是什么? Drupal构建一个大型网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个用于构建新网站的3种技术选项之间的比较:

I am writing a comparison between 3 technology options for building our new website:


  • Wordpress

  • Drupal

  • 一个MVC框架

老板确定我们应该使用Wordpress,网站会很大,有许多部分,子部分,页面和复杂的模板。

The boss is sure we should use Wordpress, but the site will be big, with many sections, subsections, pages, and complicated templates.

我发现比较WP + Drupal很容易,但不是那么容易说明使用MVC框架的额外优点(超过Drupal)。

I'm finding it easy to compare WP + Drupal, but not so easy to state the additional advantages (over Drupal) of using an MVC framework.

到目前为止,我有:


  • 自定义数据存储,内容类型,语义

  • API / REST

  • 分离逻辑/ UI

  • 约定,代码结构

  • Custom data storage, content types, semantics
  • APIs / REST
  • Separation of logic / UI
  • Convention, code structure

(很明显,根据项目类型的不同,

(Obviously some of the benefits will be different depending on the type of project. In this case it will be a large portal for a museum, with potential for some social stuff for visitors)

推荐答案

很难比较一个博物馆的一个大门户,

It's difficult to compare a CMS (e.g., Drupal, WordPress) with an MVC framework because they are in different categories.

要具体回答你关于一个MVC框架在CMS上的优势的问题,你可以使用一个MVC框架的CMS(例如Drupal,WordPress) MVC框架的优点是它允许你从头开始设计你需要的完整的网络应用程序。

To specifically answer your question about the advantage of an MVC framework over a CMS, the advantage of an MVC framework is simply that it allows you to design the exact web app you need from the ground up.

对于你的特殊情况:

使用现有的CMS,如WordPress或Drupal将是一个很好的主意,如果他们满足您的需要。它避免了重复发明轮,节省你的时间,CMSs可以非常用户友好(不同程度)。如果您计划将内容更新的任务委派给非技术用户,那么选择一个不适合新手的CMS而不是使用MVC框架来转换您自己的CMS可能是一个谨慎的做法,可能会导致需要更多技术专长的应用程序

Using an existing CMS such as WordPress or Drupal would be an excellent idea if they fit your needs. It avoids reinventing the wheel, saves you time, and CMSs can be quite user-friendly (to varying degrees). If you plan to delegate the task of content updates to a non-technical user, then it might be prudent to choose a novice-friendly CMS rather than spinning your own with an MVC framework, possibly resulting in an app that requires more technical expertise to maintain.

但是,如果您设想该网站需要大量自定义业务逻辑,这在CMS的约束内难以实现,那么您可能需要使用MVC框架。

If, however, you envision that the website will require a lot of custom business logic that would be difficult to implement within the constraints of a CMS, then you might need to use an MVC framework.

这篇关于使用MVC框架的优点是什么? Drupal构建一个大型网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆