(评论)
(comments)
原始链接: https://news.ycombinator.com/item?id=43824153
Hacker News 的讨论围绕着 Simon Willison 的一篇文章展开,该文章提倡将静态 HTML 和 JavaScript 托管在 GitHub Pages 等免费平台上,作为分发免费软件的最佳方式。论点集中在可访问性、易用性和长期稳定性上。一些评论者认为,对于简单的客户端应用程序和让更广泛的受众访问软件来说,这种方法是理想的,但另一些人则认为,对于库、需要离线访问的软件或依赖于复杂服务器端功能的项目来说,这种方法并不适用。还有人担心 GitHub 受微软所有,以及 URL 损坏的可能性(正如一位用户在其旧 GitHub Pages 重定向的经历中所指出的那样)。
讨论还涉及使用 WebAssembly (WASM) 和 Pyodide 在客户端运行 Python 代码,一些人引用了 `lite.datasette.io` 等成功的项目。然而,也提到了 GitHub Pages 无法设置自定义标头以及在本地运行代码相关的安全问题等限制。尽管存在潜在缺点,但跨平台兼容性和无摩擦的用户体验的吸引力被强调为静态 HTML/JS 方法的关键优势。
Nice post! This is only a nit: They did break working URLs at least once sometime between 2020 and 2023. Until 2013, GitHub served GitHub Pages from the USERNAME.github.com subdomains. Understandably, this was a security nightmare, due to which in 2013 they made the switch to USERNAME.github.io for GitHub Pages.
For several years they took care of automatically redirecting something like <http://newmerator.github.com/> to <http://newmerator.github.io/>. But if you click on those links now, you'll find that the former does not work anymore.
You can read more about it at <https://github.blog/news-insights/product-news/new-github-pa...>. The example link I've shared in the previous paragraph has been picked from this article.
In fact, <https://web.archive.org/web/20200000000000*/http://newmerato...> shows that the redirection worked until at least Feb 2020. But by Nov 2023, the redirect was already broken.
reply