TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

NodeQuery is a realtime server-side DOM API

104 点作者 funthree超过 13 年前

7 条评论

scarmig超过 13 年前
Are there examples of this paradigm for another framework or in another language?<p>We think of js as being of paramount importance in web development because it's the only way to interact with the DOM, so we've mostly come to terms with it and its flaws (which are manifold, even though I happen to think it's a nice language in lots of ways). But if we put all DOM manipulation on the server-side with a very thin client-side javascript communication and manipulation layer, this isn't necessary.<p>You could write your entire application in Ruby, Haskell, Forth, whatever floats your boat, against a standardized, cross-browser, and improved DOM.<p>This is powerful and intriguing.
评论 #3241285 未加载
评论 #3239883 未加载
kylemathews超过 13 年前
Why would you want to add 100-500ms of latency to every single DOM manipulation? Realtime means I click on something and something else happens, immediately, not a 1/2 second later.<p>All this to just save having to load jQuery in the client? Not sure I get the advantage.
评论 #3240422 未加载
评论 #3240522 未加载
clickerly超过 13 年前
This appears to solve a major problem with web apps - exposing your entire front-end code to everyone. Very exciting.<p>Is it production ready? (Edit: Duh, says "beta")
pedalpete超过 13 年前
can somebody provide a real-world example where you'd want to manipulate the DOM from the server?<p>I'm not sure I really see the benefit of this. Not to say it isn't cool, just wondering where it would be useful over client-side DOM.<p>My understanding of node is that the benefit is in the lack of thread locking, not specifically that it runs javascript.
评论 #3238997 未加载
评论 #3239004 未加载
评论 #3241215 未加载
评论 #3239040 未加载
jessedhillon超过 13 年前
Initial reaction: issuing server-side calls to manipulate client-side DOM is a gross violation of the principles of separation of logic/duties. Why is this desirable?
评论 #3240052 未加载
评论 #3240281 未加载
equark超过 13 年前
What is limiting this to be jQuery/Zepto specific? Is it possible to write a generic server-side remote control so that other libraries can be used?
jonpaul超过 13 年前
Thank you for this. jsDom was the only other server side DOM implementation, and it's garbage (buggy).
评论 #3239087 未加载
评论 #3239148 未加载