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

查看:28
本文介绍了使用 MVC 框架比使用 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
  • 约定、代码结构

(显然,根据项目的类型,一些好处会有所不同.在这种情况下,它将成为博物馆的大型门户,为游客提供一些社交活动的潜力)

(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)

推荐答案

很难将 CMS(例如 Drupal、WordPress)与 MVC 框架进行比较,因为它们属于不同的类别.

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

为了具体回答您关于 MVC 框架相对于 CMS 的优势的问题,MVC 框架的优势在于它允许您从头开始设计您需要的确切 Web 应用程序.

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.

至于你的具体情况:

如果能够满足您的需求,那么使用 WordPress 或 Drupal 等现有 CMS 将是一个绝妙的主意.它避免了重新发明轮子,节省了您的时间,并且 CMS 可以非常用户友好(在不同程度上).如果您打算将内容更新的任务委托给非技术用户,那么谨慎的做法可能是选择对新手友好的 CMS,而不是使用 MVC 框架自行开发,这可能会导致应用程序需要更多的技术专业知识才能完成维护.

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 框架比使用 MVC 框架有什么优势?Drupal 建一个大型网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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