前3名的理由不发展"博客系统"产生上飞的aspx文件理由、文件、系统、博客

2023-09-03 06:40:51 作者:丢了爱情失了心

在此question OP的暗示,他希望基地的博客系统,他正在开发自动创建.aspx文件,每一个新的博客条目。在我回答他的问题(这是关系到别的东西),我告诉他,我会鼓励他使用这种方法,但没有给出任何真正的理由。他现在想的原因为什么它是不是一个好主意,我使用的是DBMS用这个问题,看看社会能拿出的原因,他用另一种方法令人信服的足够的列表,如一体,code-重用,URL重写,MVC,什么不是。

In this question the OP implies that he wants to base the blog system he is developing on automatic creation of .aspx files, one for each new blog entry. In my answer to his question (which is related to something else), I told him that I would discourage him from using such an approach, but without giving any real reasons. He is now wanting reasons why it is not a good idea, and I'm using this question to see if the community can come up with a compelling enough list of reasons for him to use another approach, such as one using a dbms, code-reuse, url-rewriting, MVC, and what not.

推荐答案

有两大类型的CMS发布平台:

There are two broad kinds of CMS publishing platform:

这些谁生成内容静态。一些发布平台静态生成的内容。在这种情况下,所生成的文件不是动态的,应该是HTML文件。系统必须具有再生一切的能力,例如,如果一个模板改变。曾经有一段时间时,这种解决方案有一定的优势: 安全:安全性是在文件系统级别管理 搜索:全文搜索很容易,因为一切都基于文件的 性能:使用较少的CPU。 互动:不可能 内容传播:现在唯一的理由建立或选择这样的平台,如果内容需要通过其他渠道网络传播,例如: CD,可下载的杂志,等等。 Those who generate the content statically. Some publishing platform generate the content statically. In this case the generated files are not dynamic and should be HTML files. The system must have the ability to regenerate everything, for instance, if a template changed. There was a time when this solution had some advantages: security: security is managed at the file system level search: fulltext search was easy because everything was file-based performance: uses less CPU. interactivity: not possible content dissemination: the only reason now to build or choose such platform is if content need to be disseminated through other channel than the web, e.g. CD, downloadable journal, etc.

这些谁呈现内容动态地。对于网站来说,最简单的方法是动态渲染页面。 安全:安全性可以使用复杂的方案等进行检查 搜索:搜索系统已经演变,现在与异构源很好地集成:可以在数据库的全文,文件等。 性能:这不再是一个问题。 互动:这是很多更灵活:内容可以适应来访的用户,人们能率的页面,添加注释等。 内容传播:必须是在线课程的, Those who render the content dynamically. For web site, the easiest way is to render the page dynamically. security: security can be checked using complex scheme, etc. search: search system have evolves and integrate nicely with heterogeneous sources now: can be full text in database, files, etc. performance: this is no more an issue. interactivity: this is a lot more flexible: content can be adapted to the visiting user, people can rate the page, add comment, etc. content dissemination: needs to be online, of course

一个混合动力系统为您生成静态文件,该文件将被动态渲染(的.aspx)对我来说是一个无感 - 它既有的缺点

A hybrid system were you generate statically file that will be rendered dynamically (.aspx) is to me a non-sense -- it has the disadvantages of both.