网站和网络应用程序?
(从用户的角度来看,而不是它是如何构建的或在 Visual Studio 中选择了哪个选项)
...“网站”和“Web 应用程序”之间有什么区别?
有区别吗?
两者有什么共同特征吗?
(From the point of view of a user, not how it's built or which option is selected in Visual Studio)
...What is the difference between a "website" and a "web application"?
Is there a difference?
Are there characteristics that characterise the two?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
软件应用程序是旨在帮助用户执行特定任务的软件工具。 Web 应用程序只是通过 Web 界面提供软件应用程序。将 Google 文档视为典型示例,但网络应用程序可以简单得多。
另一方面,网站可以被视为相关数字资产(文档、图像、视频等),相对于常见的 URL。
Software applications are software tools designed to help the user perform specific tasks. Web applications simply provide a software application through a web interface. Think Google Docs as a typical example, but web applications can be much simpler.
On the other hand, a website can be regarded as just a collection of related digital assets (documents, images, videos, etc), relative to a common URL.
(注:我从 Wikipedia 中获取网站的定义,并从中推导出 Web 应用程序的定义(或者更好的是,定义两个概念之间的差异)。所有粗体字的意思是,放在一起,构建Web 应用程序的定义。)
从基础知识开始:Web 应用程序是网站的子集吗?根据丹尼尔·瓦萨洛 (Daniel Vassallo) 在他的回答中给出的维基百科对网站的定义,网站是同一 URL 下的一堆文档。这也遵循剑桥词典中的定义。
另一方面,Web 应用程序是一堆基于 Web 的动态 HTML 和 JS 文档,以及图像、CSS 文件和其他文档,它们很可能(但不完全)位于单个 URL 下。 Web 应用程序的目的如下所示。
因此我们可以说:如果一个 Web 应用程序仅位于单个服务器上,而不使用客户端跨域技术或广泛的本地存储(我想在这里将其定义为标准 cookie 和默认缓存之外的所有内容),那么它也是一个网站。
推论:可以有网络应用程序,但不是网站。
因此,我们必须扩展Web应用程序的定义:Web应用程序在某些情况下是一个网站,是一组交互式文档。交互式意味着用户可以做的不仅仅是跟随超链接从一个资源到另一个资源。她可以积极地、以明确的方式改变资源的状态。 对于此任务,Web 应用程序并不局限于单个服务器,或者根本不限于服务器端。
现在我们还必须定义 Web 应用程序在哪里结束以及其他任何东西开始。因此我们声明:Web 应用程序始终有一个位于网站的入口点。如果它有多个入口点,它们必须一起成为同一个网站的一部分。
qed
对于如何完善这一史诗般的智慧以满足现实的要求,我愿意接受任何建议。 ;-)
澄清:
这个答案绝不是对问题的不尊重。然而,我采取了一种半严肃的方法,我的意思是,所提供的定义可能适合也可能不适合人们对 Web 应用程序与网站的比较的个人想法,但是(这是严肃的部分)是基于根据(可能是随机的)事实集合推导出来。
澄清 2: 此答案与 Visual Studio 无关。
(Note: I take the definition of a website from Wikipedia and deduce a definition of web applications from that (or, better, define differences between the two concepts). Everything in bold face is meant, put together, to build the definition of a web application.)
Starting with the fundamentals: Is a web application a subset of a website? Following Wikipedia's definition of a website, that Daniel Vassallo has layed out in his answer, a website is a bunch of documents under a common URL. This also follows the definition in the Cambridge dictionary.
A web application, on the other hand, is a bunch of web-based dynamic HTML and JS documents, together with images, CSS files and other documents, that is most probably, but not exclusively located under a single URL. The purpose of a web application comes below.
Hence we can state: If a web application is located on a single server only, without using client-side cross-domain techniques or extensive local storage (which I'd like to define here as everything beyond standard cookies and default caching), it is also a website.
Corollary: There can be web applications, that are not websites.
Hence we have to extend the definition of web application: A web application, under certain circumstances being a website, is a set of interactive documents. Interactive thereby means, that the user can do more than just follow hyperlinks to get from resource to resource. She can actively and in a well-defined manner change the state of resources. The web application is, for this task, not confined to a single server, or to the server side at all.
Now we yet have to define, where a web application ends and quite anything else starts. Therefore we state: A web application has always an entry point, that is located at a website. If it has multiple entry points, they must all together be part of the same website.
qed
I am open for any suggestion on how this epic piece of wisdom could be refined to meet the requirements of reality. ;-)
Clarification:
This answer is in no way disrespectful to the question. However, I took a semi-serious approach, by which I mean, that the provided definition may or may not fit into one's personal idea of what a web application is compared to a website, but (and that is the serious part) is based on and deduced from a (possibly random) collection of facts.
Clarification 2: This answer has nothing to do with Visual Studio.