arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17193cs.SE
收藏

为HTML优先的网页开发辩护

The Case for HTML First Web Development

Aalto University(阿尔托大学)

Juho Vepsäläinen

AI总结:

本文主张HTML优先的网页开发方法,强调在可能的情况下优先使用HTML,结合超媒体和服务器端逻辑,以提高开发效率和维护性。

摘要:

自20世纪90年代初问世以来,网络已成为全球最大的应用平台。超文本标记语言(HTML)自始至终都是网络的重要组成部分,因为它允许以树状方式定义网页,包括语义和内容。尽管网络从未被设计成应用平台,但自2000年代初以来,随着网络应用框架的出现,它逐渐演变为应用平台。虽然框架的出现使开发复杂应用变得更加容易,但也使HTML被忽视。随着网络标准的提升,尤其是HTML5等里程碑的出现,网络平台与框架之间的差距缩小。HTML优先开发强调这一转变,并强调在可能的情况下优先使用HTML,同时鼓励来自网络早期的极简主义。似乎以HTML为中心的网页开发能为开发者带来明显的好处,尤其是在与互补方法结合时,例如拥抱超媒体和将大部分应用程序逻辑移到服务器端。在htmx项目背景下,观察到向HTML转变可以大幅减少代码库的大小,同时由于概念上的简化而带来维护和开发的益处。基于Holotype的比较显示内容导向网站的性能优势,这一观察也通过小规模案例研究得到验证,即Yle网站转换为遵循HTML优先原则。简而言之,HTML优先方法似乎对网页开发者有明显优势,但仍有开放问题,涉及收益的规模以及与最近AI驱动网页开发趋势的契合度。

英文摘要:

Since its introduction in the early 90s, the web has become the largest application platform available globally. HyperText Markup Language (HTML) has been an essential part of the web since the beginning, as it allows defining webpages in a tree-like manner, including semantics and content. Although the web was never meant to be an application platform, it evolved as such, especially since the early 2000s, as web application frameworks became available. While the emergence of frameworks made it easier than ever to develop complex applications, it also put HTML on the back burner. As web standards caught up, especially with milestones such as HTML5, the gap between the web platform and frameworks was reduced. HTML First development emphasizes this shift and puts focus on literally using HTML first when possible, while encouraging minimalism familiar from the early days of the web. It seems HTML-oriented web development can provide clear benefits to developers, especially when it is combined with comple- mentary approaches, such as embracing hypermedia and moving a large part of application logic to the server side. In the context of the htmx project, it was observed that moving towards HTML can reduce the size of a codebase greatly while leading to maintenance and development benefits due to the increased conceptual simplicity. Holotype-based comparisons for content-oriented websites show performance benefits, and the same observation was confirmed by a small case study where the Yle website was converted to follow HTML First principles. In short, the HTML First approach seems to have clear advantages for web developers, while there are open questions related to the magnitude of the benefits and the alignment with the recent trend of AI-driven web development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑